Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterLookupServiceServer(s grpc.ServiceRegistrar, srv LookupServiceServer)
- func RegisterRegistrationServiceServer(s grpc.ServiceRegistrar, srv RegistrationServiceServer)
- type CreateEndpointRequest
- func (*CreateEndpointRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateEndpointRequest) GetEndpoint() *Endpoint
- func (x *CreateEndpointRequest) GetEndpointId() string
- func (x *CreateEndpointRequest) GetParent() string
- func (*CreateEndpointRequest) ProtoMessage()
- func (x *CreateEndpointRequest) ProtoReflect() protoreflect.Message
- func (x *CreateEndpointRequest) Reset()
- func (x *CreateEndpointRequest) String() string
- type CreateNamespaceRequest
- func (*CreateNamespaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNamespaceRequest) GetNamespace() *Namespace
- func (x *CreateNamespaceRequest) GetNamespaceId() string
- func (x *CreateNamespaceRequest) GetParent() string
- func (*CreateNamespaceRequest) ProtoMessage()
- func (x *CreateNamespaceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateNamespaceRequest) Reset()
- func (x *CreateNamespaceRequest) String() string
- type CreateServiceRequest
- func (*CreateServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateServiceRequest) GetParent() string
- func (x *CreateServiceRequest) GetService() *Service
- func (x *CreateServiceRequest) GetServiceId() string
- func (*CreateServiceRequest) ProtoMessage()
- func (x *CreateServiceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateServiceRequest) Reset()
- func (x *CreateServiceRequest) String() string
- type DeleteEndpointRequest
- func (*DeleteEndpointRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteEndpointRequest) GetName() string
- func (*DeleteEndpointRequest) ProtoMessage()
- func (x *DeleteEndpointRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteEndpointRequest) Reset()
- func (x *DeleteEndpointRequest) String() string
- type DeleteNamespaceRequest
- func (*DeleteNamespaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteNamespaceRequest) GetName() string
- func (*DeleteNamespaceRequest) ProtoMessage()
- func (x *DeleteNamespaceRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteNamespaceRequest) Reset()
- func (x *DeleteNamespaceRequest) String() string
- type DeleteServiceRequest
- func (*DeleteServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteServiceRequest) GetName() string
- func (*DeleteServiceRequest) ProtoMessage()
- func (x *DeleteServiceRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteServiceRequest) Reset()
- func (x *DeleteServiceRequest) String() string
- type Endpoint
- func (*Endpoint) Descriptor() ([]byte, []int)deprecated
- func (x *Endpoint) GetAddress() string
- func (x *Endpoint) GetAnnotations() map[string]string
- func (x *Endpoint) GetName() string
- func (x *Endpoint) GetNetwork() string
- func (x *Endpoint) GetPort() int32
- func (x *Endpoint) GetUid() string
- func (*Endpoint) ProtoMessage()
- func (x *Endpoint) ProtoReflect() protoreflect.Message
- func (x *Endpoint) Reset()
- func (x *Endpoint) String() string
- type GetEndpointRequest
- func (*GetEndpointRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetEndpointRequest) GetName() string
- func (*GetEndpointRequest) ProtoMessage()
- func (x *GetEndpointRequest) ProtoReflect() protoreflect.Message
- func (x *GetEndpointRequest) Reset()
- func (x *GetEndpointRequest) String() string
- type GetNamespaceRequest
- func (*GetNamespaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNamespaceRequest) GetName() string
- func (*GetNamespaceRequest) ProtoMessage()
- func (x *GetNamespaceRequest) ProtoReflect() protoreflect.Message
- func (x *GetNamespaceRequest) Reset()
- func (x *GetNamespaceRequest) String() string
- type GetServiceRequest
- type ListEndpointsRequest
- func (*ListEndpointsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListEndpointsRequest) GetFilter() string
- func (x *ListEndpointsRequest) GetOrderBy() string
- func (x *ListEndpointsRequest) GetPageSize() int32
- func (x *ListEndpointsRequest) GetPageToken() string
- func (x *ListEndpointsRequest) GetParent() string
- func (*ListEndpointsRequest) ProtoMessage()
- func (x *ListEndpointsRequest) ProtoReflect() protoreflect.Message
- func (x *ListEndpointsRequest) Reset()
- func (x *ListEndpointsRequest) String() string
- type ListEndpointsResponse
- func (*ListEndpointsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListEndpointsResponse) GetEndpoints() []*Endpoint
- func (x *ListEndpointsResponse) GetNextPageToken() string
- func (*ListEndpointsResponse) ProtoMessage()
- func (x *ListEndpointsResponse) ProtoReflect() protoreflect.Message
- func (x *ListEndpointsResponse) Reset()
- func (x *ListEndpointsResponse) String() string
- type ListNamespacesRequest
- func (*ListNamespacesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListNamespacesRequest) GetFilter() string
- func (x *ListNamespacesRequest) GetOrderBy() string
- func (x *ListNamespacesRequest) GetPageSize() int32
- func (x *ListNamespacesRequest) GetPageToken() string
- func (x *ListNamespacesRequest) GetParent() string
- func (*ListNamespacesRequest) ProtoMessage()
- func (x *ListNamespacesRequest) ProtoReflect() protoreflect.Message
- func (x *ListNamespacesRequest) Reset()
- func (x *ListNamespacesRequest) String() string
- type ListNamespacesResponse
- func (*ListNamespacesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListNamespacesResponse) GetNamespaces() []*Namespace
- func (x *ListNamespacesResponse) GetNextPageToken() string
- func (*ListNamespacesResponse) ProtoMessage()
- func (x *ListNamespacesResponse) ProtoReflect() protoreflect.Message
- func (x *ListNamespacesResponse) Reset()
- func (x *ListNamespacesResponse) String() string
- type ListServicesRequest
- func (*ListServicesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListServicesRequest) GetFilter() string
- func (x *ListServicesRequest) GetOrderBy() string
- func (x *ListServicesRequest) GetPageSize() int32
- func (x *ListServicesRequest) GetPageToken() string
- func (x *ListServicesRequest) GetParent() string
- func (*ListServicesRequest) ProtoMessage()
- func (x *ListServicesRequest) ProtoReflect() protoreflect.Message
- func (x *ListServicesRequest) Reset()
- func (x *ListServicesRequest) String() string
- type ListServicesResponse
- func (*ListServicesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListServicesResponse) GetNextPageToken() string
- func (x *ListServicesResponse) GetServices() []*Service
- func (*ListServicesResponse) ProtoMessage()
- func (x *ListServicesResponse) ProtoReflect() protoreflect.Message
- func (x *ListServicesResponse) Reset()
- func (x *ListServicesResponse) String() string
- type LookupServiceClient
- type LookupServiceServer
- type Namespace
- func (*Namespace) Descriptor() ([]byte, []int)deprecated
- func (x *Namespace) GetLabels() map[string]string
- func (x *Namespace) GetName() string
- func (x *Namespace) GetUid() string
- func (*Namespace) ProtoMessage()
- func (x *Namespace) ProtoReflect() protoreflect.Message
- func (x *Namespace) Reset()
- func (x *Namespace) String() string
- type RegistrationServiceClient
- type RegistrationServiceServer
- type ResolveServiceRequest
- func (*ResolveServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResolveServiceRequest) GetEndpointFilter() string
- func (x *ResolveServiceRequest) GetMaxEndpoints() int32
- func (x *ResolveServiceRequest) GetName() string
- func (*ResolveServiceRequest) ProtoMessage()
- func (x *ResolveServiceRequest) ProtoReflect() protoreflect.Message
- func (x *ResolveServiceRequest) Reset()
- func (x *ResolveServiceRequest) String() string
- type ResolveServiceResponse
- func (*ResolveServiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResolveServiceResponse) GetService() *Service
- func (*ResolveServiceResponse) ProtoMessage()
- func (x *ResolveServiceResponse) ProtoReflect() protoreflect.Message
- func (x *ResolveServiceResponse) Reset()
- func (x *ResolveServiceResponse) String() string
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetAnnotations() map[string]string
- func (x *Service) GetEndpoints() []*Endpoint
- func (x *Service) GetName() string
- func (x *Service) GetUid() string
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- type UnimplementedLookupServiceServer
- type UnimplementedRegistrationServiceServer
- func (UnimplementedRegistrationServiceServer) CreateEndpoint(context.Context, *CreateEndpointRequest) (*Endpoint, error)
- func (UnimplementedRegistrationServiceServer) CreateNamespace(context.Context, *CreateNamespaceRequest) (*Namespace, error)
- func (UnimplementedRegistrationServiceServer) CreateService(context.Context, *CreateServiceRequest) (*Service, error)
- func (UnimplementedRegistrationServiceServer) DeleteEndpoint(context.Context, *DeleteEndpointRequest) (*emptypb.Empty, error)
- func (UnimplementedRegistrationServiceServer) DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*emptypb.Empty, error)
- func (UnimplementedRegistrationServiceServer) DeleteService(context.Context, *DeleteServiceRequest) (*emptypb.Empty, error)
- func (UnimplementedRegistrationServiceServer) GetEndpoint(context.Context, *GetEndpointRequest) (*Endpoint, error)
- func (UnimplementedRegistrationServiceServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
- func (UnimplementedRegistrationServiceServer) GetNamespace(context.Context, *GetNamespaceRequest) (*Namespace, error)
- func (UnimplementedRegistrationServiceServer) GetService(context.Context, *GetServiceRequest) (*Service, error)
- func (UnimplementedRegistrationServiceServer) ListEndpoints(context.Context, *ListEndpointsRequest) (*ListEndpointsResponse, error)
- func (UnimplementedRegistrationServiceServer) ListNamespaces(context.Context, *ListNamespacesRequest) (*ListNamespacesResponse, error)
- func (UnimplementedRegistrationServiceServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error)
- func (UnimplementedRegistrationServiceServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
- func (UnimplementedRegistrationServiceServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
- func (UnimplementedRegistrationServiceServer) UpdateEndpoint(context.Context, *UpdateEndpointRequest) (*Endpoint, error)
- func (UnimplementedRegistrationServiceServer) UpdateNamespace(context.Context, *UpdateNamespaceRequest) (*Namespace, error)
- func (UnimplementedRegistrationServiceServer) UpdateService(context.Context, *UpdateServiceRequest) (*Service, error)
- type UnsafeLookupServiceServer
- type UnsafeRegistrationServiceServer
- type UpdateEndpointRequest
- func (*UpdateEndpointRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateEndpointRequest) GetEndpoint() *Endpoint
- func (x *UpdateEndpointRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateEndpointRequest) ProtoMessage()
- func (x *UpdateEndpointRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateEndpointRequest) Reset()
- func (x *UpdateEndpointRequest) String() string
- type UpdateNamespaceRequest
- func (*UpdateNamespaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNamespaceRequest) GetNamespace() *Namespace
- func (x *UpdateNamespaceRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateNamespaceRequest) ProtoMessage()
- func (x *UpdateNamespaceRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateNamespaceRequest) Reset()
- func (x *UpdateNamespaceRequest) String() string
- type UpdateServiceRequest
- func (*UpdateServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateServiceRequest) GetService() *Service
- func (x *UpdateServiceRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateServiceRequest) ProtoMessage()
- func (x *UpdateServiceRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateServiceRequest) Reset()
- func (x *UpdateServiceRequest) String() string
Constants ¶
const ( RegistrationService_CreateNamespace_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/CreateNamespace" RegistrationService_ListNamespaces_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/ListNamespaces" RegistrationService_GetNamespace_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/GetNamespace" RegistrationService_UpdateNamespace_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/UpdateNamespace" RegistrationService_DeleteNamespace_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/DeleteNamespace" RegistrationService_CreateService_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/CreateService" RegistrationService_ListServices_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/ListServices" RegistrationService_GetService_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/GetService" RegistrationService_UpdateService_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/UpdateService" RegistrationService_DeleteService_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/DeleteService" RegistrationService_CreateEndpoint_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/CreateEndpoint" RegistrationService_ListEndpoints_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/ListEndpoints" RegistrationService_GetEndpoint_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/GetEndpoint" RegistrationService_UpdateEndpoint_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/UpdateEndpoint" RegistrationService_DeleteEndpoint_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/DeleteEndpoint" RegistrationService_GetIamPolicy_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/GetIamPolicy" RegistrationService_SetIamPolicy_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/SetIamPolicy" RegistrationService_TestIamPermissions_FullMethodName = "/google.cloud.servicedirectory.v1.RegistrationService/TestIamPermissions" )
const (
LookupService_ResolveService_FullMethodName = "/google.cloud.servicedirectory.v1.LookupService/ResolveService"
)
Variables ¶
var File_google_cloud_servicedirectory_v1_endpoint_proto protoreflect.FileDescriptor
var File_google_cloud_servicedirectory_v1_lookup_service_proto protoreflect.FileDescriptor
var File_google_cloud_servicedirectory_v1_namespace_proto protoreflect.FileDescriptor
var File_google_cloud_servicedirectory_v1_registration_service_proto protoreflect.FileDescriptor
var File_google_cloud_servicedirectory_v1_service_proto protoreflect.FileDescriptor
var LookupService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "google.cloud.servicedirectory.v1.LookupService", HandlerType: (*LookupServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ResolveService", Handler: _LookupService_ResolveService_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "google/cloud/servicedirectory/v1/lookup_service.proto", }
LookupService_ServiceDesc is the grpc.ServiceDesc for LookupService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var RegistrationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "google.cloud.servicedirectory.v1.RegistrationService", HandlerType: (*RegistrationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateNamespace", Handler: _RegistrationService_CreateNamespace_Handler, }, { MethodName: "ListNamespaces", Handler: _RegistrationService_ListNamespaces_Handler, }, { MethodName: "GetNamespace", Handler: _RegistrationService_GetNamespace_Handler, }, { MethodName: "UpdateNamespace", Handler: _RegistrationService_UpdateNamespace_Handler, }, { MethodName: "DeleteNamespace", Handler: _RegistrationService_DeleteNamespace_Handler, }, { MethodName: "CreateService", Handler: _RegistrationService_CreateService_Handler, }, { MethodName: "ListServices", Handler: _RegistrationService_ListServices_Handler, }, { MethodName: "GetService", Handler: _RegistrationService_GetService_Handler, }, { MethodName: "UpdateService", Handler: _RegistrationService_UpdateService_Handler, }, { MethodName: "DeleteService", Handler: _RegistrationService_DeleteService_Handler, }, { MethodName: "CreateEndpoint", Handler: _RegistrationService_CreateEndpoint_Handler, }, { MethodName: "ListEndpoints", Handler: _RegistrationService_ListEndpoints_Handler, }, { MethodName: "GetEndpoint", Handler: _RegistrationService_GetEndpoint_Handler, }, { MethodName: "UpdateEndpoint", Handler: _RegistrationService_UpdateEndpoint_Handler, }, { MethodName: "DeleteEndpoint", Handler: _RegistrationService_DeleteEndpoint_Handler, }, { MethodName: "GetIamPolicy", Handler: _RegistrationService_GetIamPolicy_Handler, }, { MethodName: "SetIamPolicy", Handler: _RegistrationService_SetIamPolicy_Handler, }, { MethodName: "TestIamPermissions", Handler: _RegistrationService_TestIamPermissions_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "google/cloud/servicedirectory/v1/registration_service.proto", }
RegistrationService_ServiceDesc is the grpc.ServiceDesc for RegistrationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLookupServiceServer ¶
func RegisterLookupServiceServer(s grpc.ServiceRegistrar, srv LookupServiceServer)
func RegisterRegistrationServiceServer ¶
func RegisterRegistrationServiceServer(s grpc.ServiceRegistrar, srv RegistrationServiceServer)
Types ¶
type CreateEndpointRequest ¶
type CreateEndpointRequest struct {
// Required. The resource name of the service that this endpoint provides.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The Resource ID must be 1-63 characters long, and comply with
// <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
// Specifically, the name must be 1-63 characters long and match the regular
// expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first
// character must be a lowercase letter, and all following characters must
// be a dash, lowercase letter, or digit, except the last character, which
// cannot be a dash.
EndpointId string `protobuf:"bytes,2,opt,name=endpoint_id,json=endpointId,proto3" json:"endpoint_id,omitempty"`
// Required. A endpoint with initial fields set.
Endpoint *Endpoint `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.CreateEndpoint][google.cloud.servicedirectory.v1.RegistrationService.CreateEndpoint].
func (*CreateEndpointRequest) Descriptor
deprecated
func (*CreateEndpointRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateEndpointRequest.ProtoReflect.Descriptor instead.
func (*CreateEndpointRequest) GetEndpoint ¶
func (x *CreateEndpointRequest) GetEndpoint() *Endpoint
func (*CreateEndpointRequest) GetEndpointId ¶
func (x *CreateEndpointRequest) GetEndpointId() string
func (*CreateEndpointRequest) GetParent ¶
func (x *CreateEndpointRequest) GetParent() string
func (*CreateEndpointRequest) ProtoMessage ¶
func (*CreateEndpointRequest) ProtoMessage()
func (*CreateEndpointRequest) ProtoReflect ¶
func (x *CreateEndpointRequest) ProtoReflect() protoreflect.Message
func (*CreateEndpointRequest) Reset ¶
func (x *CreateEndpointRequest) Reset()
func (*CreateEndpointRequest) String ¶
func (x *CreateEndpointRequest) String() string
type CreateNamespaceRequest ¶
type CreateNamespaceRequest struct {
// Required. The resource name of the project and location the namespace
// will be created in.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The Resource ID must be 1-63 characters long, and comply with
// <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
// Specifically, the name must be 1-63 characters long and match the regular
// expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first
// character must be a lowercase letter, and all following characters must
// be a dash, lowercase letter, or digit, except the last character, which
// cannot be a dash.
NamespaceId string `protobuf:"bytes,2,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
// Required. A namespace with initial fields set.
Namespace *Namespace `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.CreateNamespace][google.cloud.servicedirectory.v1.RegistrationService.CreateNamespace].
func (*CreateNamespaceRequest) Descriptor
deprecated
func (*CreateNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateNamespaceRequest.ProtoReflect.Descriptor instead.
func (*CreateNamespaceRequest) GetNamespace ¶
func (x *CreateNamespaceRequest) GetNamespace() *Namespace
func (*CreateNamespaceRequest) GetNamespaceId ¶
func (x *CreateNamespaceRequest) GetNamespaceId() string
func (*CreateNamespaceRequest) GetParent ¶
func (x *CreateNamespaceRequest) GetParent() string
func (*CreateNamespaceRequest) ProtoMessage ¶
func (*CreateNamespaceRequest) ProtoMessage()
func (*CreateNamespaceRequest) ProtoReflect ¶
func (x *CreateNamespaceRequest) ProtoReflect() protoreflect.Message
func (*CreateNamespaceRequest) Reset ¶
func (x *CreateNamespaceRequest) Reset()
func (*CreateNamespaceRequest) String ¶
func (x *CreateNamespaceRequest) String() string
type CreateServiceRequest ¶
type CreateServiceRequest struct {
// Required. The resource name of the namespace this service will belong to.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The Resource ID must be 1-63 characters long, and comply with
// <a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
// Specifically, the name must be 1-63 characters long and match the regular
// expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first
// character must be a lowercase letter, and all following characters must
// be a dash, lowercase letter, or digit, except the last character, which
// cannot be a dash.
ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
// Required. A service with initial fields set.
Service *Service `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.CreateService][google.cloud.servicedirectory.v1.RegistrationService.CreateService].
func (*CreateServiceRequest) Descriptor
deprecated
func (*CreateServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateServiceRequest.ProtoReflect.Descriptor instead.
func (*CreateServiceRequest) GetParent ¶
func (x *CreateServiceRequest) GetParent() string
func (*CreateServiceRequest) GetService ¶
func (x *CreateServiceRequest) GetService() *Service
func (*CreateServiceRequest) GetServiceId ¶
func (x *CreateServiceRequest) GetServiceId() string
func (*CreateServiceRequest) ProtoMessage ¶
func (*CreateServiceRequest) ProtoMessage()
func (*CreateServiceRequest) ProtoReflect ¶
func (x *CreateServiceRequest) ProtoReflect() protoreflect.Message
func (*CreateServiceRequest) Reset ¶
func (x *CreateServiceRequest) Reset()
func (*CreateServiceRequest) String ¶
func (x *CreateServiceRequest) String() string
type DeleteEndpointRequest ¶
type DeleteEndpointRequest struct {
// Required. The name of the endpoint to delete.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.DeleteEndpoint][google.cloud.servicedirectory.v1.RegistrationService.DeleteEndpoint].
func (*DeleteEndpointRequest) Descriptor
deprecated
func (*DeleteEndpointRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteEndpointRequest.ProtoReflect.Descriptor instead.
func (*DeleteEndpointRequest) GetName ¶
func (x *DeleteEndpointRequest) GetName() string
func (*DeleteEndpointRequest) ProtoMessage ¶
func (*DeleteEndpointRequest) ProtoMessage()
func (*DeleteEndpointRequest) ProtoReflect ¶
func (x *DeleteEndpointRequest) ProtoReflect() protoreflect.Message
func (*DeleteEndpointRequest) Reset ¶
func (x *DeleteEndpointRequest) Reset()
func (*DeleteEndpointRequest) String ¶
func (x *DeleteEndpointRequest) String() string
type DeleteNamespaceRequest ¶
type DeleteNamespaceRequest struct {
// Required. The name of the namespace to delete.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.DeleteNamespace][google.cloud.servicedirectory.v1.RegistrationService.DeleteNamespace].
func (*DeleteNamespaceRequest) Descriptor
deprecated
func (*DeleteNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNamespaceRequest.ProtoReflect.Descriptor instead.
func (*DeleteNamespaceRequest) GetName ¶
func (x *DeleteNamespaceRequest) GetName() string
func (*DeleteNamespaceRequest) ProtoMessage ¶
func (*DeleteNamespaceRequest) ProtoMessage()
func (*DeleteNamespaceRequest) ProtoReflect ¶
func (x *DeleteNamespaceRequest) ProtoReflect() protoreflect.Message
func (*DeleteNamespaceRequest) Reset ¶
func (x *DeleteNamespaceRequest) Reset()
func (*DeleteNamespaceRequest) String ¶
func (x *DeleteNamespaceRequest) String() string
type DeleteServiceRequest ¶
type DeleteServiceRequest struct {
// Required. The name of the service to delete.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.DeleteService][google.cloud.servicedirectory.v1.RegistrationService.DeleteService].
func (*DeleteServiceRequest) Descriptor
deprecated
func (*DeleteServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteServiceRequest.ProtoReflect.Descriptor instead.
func (*DeleteServiceRequest) GetName ¶
func (x *DeleteServiceRequest) GetName() string
func (*DeleteServiceRequest) ProtoMessage ¶
func (*DeleteServiceRequest) ProtoMessage()
func (*DeleteServiceRequest) ProtoReflect ¶
func (x *DeleteServiceRequest) ProtoReflect() protoreflect.Message
func (*DeleteServiceRequest) Reset ¶
func (x *DeleteServiceRequest) Reset()
func (*DeleteServiceRequest) String ¶
func (x *DeleteServiceRequest) String() string
type Endpoint ¶
type Endpoint struct {
// Immutable. The resource name for the endpoint in the format
// `projects/*/locations/*/namespaces/*/services/*/endpoints/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. An IPv4 or IPv6 address. Service Directory rejects bad addresses
// like:
//
// * `8.8.8`
// * `8.8.8.8:53`
// * `test:bad:address`
// * `[::1]`
// * `[::1]:8080`
//
// Limited to 45 characters.
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
// Optional. Service Directory rejects values outside of `[0, 65535]`.
Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
// Optional. Annotations for the endpoint. This data can be consumed by
// service clients.
//
// Restrictions:
//
// - The entire annotations dictionary may contain up to 512 characters,
// spread accoss all key-value pairs. Annotations that go beyond this
// limit are rejected
// - Valid annotation keys have two segments: an optional prefix and name,
// separated by a slash (/). The name segment is required and must be 63
// characters or less, beginning and ending with an alphanumeric character
// ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
// alphanumerics between. The prefix is optional. If specified, the prefix
// must be a DNS subdomain: a series of DNS labels separated by dots (.),
// not longer than 253 characters in total, followed by a slash (/)
// Annotations that fails to meet these requirements are rejected.
//
// Note: This field is equivalent to the `metadata` field in the v1beta1 API.
// They have the same syntax and read/write to the same location in Service
// Directory.
Annotations map[string]string `` /* 163-byte string literal not displayed */
// Immutable. The Google Compute Engine network (VPC) of the endpoint in the
// format `projects/<project number>/locations/global/networks/*`.
//
// The project must be specified by project number (project id is rejected).
// Incorrectly formatted networks are rejected, we also check to make sure
// that you have the servicedirectory.networks.attach permission on the
// project specified.
Network string `protobuf:"bytes,8,opt,name=network,proto3" json:"network,omitempty"`
// Output only. The globally unique identifier of the endpoint in the UUID4
// format.
Uid string `protobuf:"bytes,9,opt,name=uid,proto3" json:"uid,omitempty"`
// contains filtered or unexported fields
}
An individual endpoint that provides a [service][google.cloud.servicedirectory.v1.Service]. The service must already exist to create an endpoint.
func (*Endpoint) Descriptor
deprecated
func (*Endpoint) GetAddress ¶
func (*Endpoint) GetAnnotations ¶
func (*Endpoint) GetNetwork ¶ added in v1.11.0
func (*Endpoint) ProtoMessage ¶
func (*Endpoint) ProtoMessage()
func (*Endpoint) ProtoReflect ¶
func (x *Endpoint) ProtoReflect() protoreflect.Message
type GetEndpointRequest ¶
type GetEndpointRequest struct {
// Required. The name of the endpoint to get.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.GetEndpoint][google.cloud.servicedirectory.v1.RegistrationService.GetEndpoint]. This should not be used to lookup endpoints at runtime. Instead, use the `resolve` method.
func (*GetEndpointRequest) Descriptor
deprecated
func (*GetEndpointRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetEndpointRequest.ProtoReflect.Descriptor instead.
func (*GetEndpointRequest) GetName ¶
func (x *GetEndpointRequest) GetName() string
func (*GetEndpointRequest) ProtoMessage ¶
func (*GetEndpointRequest) ProtoMessage()
func (*GetEndpointRequest) ProtoReflect ¶
func (x *GetEndpointRequest) ProtoReflect() protoreflect.Message
func (*GetEndpointRequest) Reset ¶
func (x *GetEndpointRequest) Reset()
func (*GetEndpointRequest) String ¶
func (x *GetEndpointRequest) String() string
type GetNamespaceRequest ¶
type GetNamespaceRequest struct {
// Required. The name of the namespace to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.GetNamespace][google.cloud.servicedirectory.v1.RegistrationService.GetNamespace].
func (*GetNamespaceRequest) Descriptor
deprecated
func (*GetNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNamespaceRequest.ProtoReflect.Descriptor instead.
func (*GetNamespaceRequest) GetName ¶
func (x *GetNamespaceRequest) GetName() string
func (*GetNamespaceRequest) ProtoMessage ¶
func (*GetNamespaceRequest) ProtoMessage()
func (*GetNamespaceRequest) ProtoReflect ¶
func (x *GetNamespaceRequest) ProtoReflect() protoreflect.Message
func (*GetNamespaceRequest) Reset ¶
func (x *GetNamespaceRequest) Reset()
func (*GetNamespaceRequest) String ¶
func (x *GetNamespaceRequest) String() string
type GetServiceRequest ¶
type GetServiceRequest struct {
// Required. The name of the service to get.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.GetService][google.cloud.servicedirectory.v1.RegistrationService.GetService]. This should not be used for looking up a service. Instead, use the `resolve` method as it contains all endpoints and associated annotations.
func (*GetServiceRequest) Descriptor
deprecated
func (*GetServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetServiceRequest.ProtoReflect.Descriptor instead.
func (*GetServiceRequest) GetName ¶
func (x *GetServiceRequest) GetName() string
func (*GetServiceRequest) ProtoMessage ¶
func (*GetServiceRequest) ProtoMessage()
func (*GetServiceRequest) ProtoReflect ¶
func (x *GetServiceRequest) ProtoReflect() protoreflect.Message
func (*GetServiceRequest) Reset ¶
func (x *GetServiceRequest) Reset()
func (*GetServiceRequest) String ¶
func (x *GetServiceRequest) String() string
type ListEndpointsRequest ¶
type ListEndpointsRequest struct {
// Required. The resource name of the service whose endpoints you'd like to
// list.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of items to return.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The next_page_token value returned from a previous List request,
// if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. The filter to list results by.
//
// General `filter` string syntax:
// `<field> <operator> <value> (<logical connector>)`
//
// - `<field>` can be `name`, `address`, `port`, or `annotations.<key>` for
// map field
// - `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
// means `HAS`, and is roughly the same as `=`
// - `<value>` must be the same data type as field
// - `<logical connector>` can be `AND`, `OR`, `NOT`
//
// Examples of valid filters:
//
// - `annotations.owner` returns endpoints that have a annotation with the
// key `owner`, this is the same as `annotations:owner`
// - `annotations.protocol=gRPC` returns endpoints that have key/value
// `protocol=gRPC`
// - `address=192.108.1.105` returns endpoints that have this address
// - `port>8080` returns endpoints that have port number larger than 8080
//
// *
// `name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c`
//
// returns endpoints that have name that is alphabetically later than the
// string, so "endpoint-e" is returned but "endpoint-a" is not
// - `annotations.owner!=sd AND annotations.foo=bar` returns endpoints that
// have `owner` in annotation key but value is not `sd` AND have
// key/value `foo=bar`
// - `doesnotexist.foo=bar` returns an empty list. Note that endpoint
// doesn't have a field called "doesnotexist". Since the filter does not
// match any endpoints, it returns no results
//
// For more information about filtering, see
// [API Filtering](https://aip.dev/160).
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. The order to list results by.
//
// General `order_by` string syntax: `<field> (<asc|desc>) (,)`
//
// - `<field>` allows values: `name`, `address`, `port`
// - `<asc|desc>` ascending or descending order by `<field>`. If this is
// left blank, `asc` is used
//
// Note that an empty `order_by` string results in default order, which is
// order by `name` in ascending order.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints].
func (*ListEndpointsRequest) Descriptor
deprecated
func (*ListEndpointsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListEndpointsRequest.ProtoReflect.Descriptor instead.
func (*ListEndpointsRequest) GetFilter ¶
func (x *ListEndpointsRequest) GetFilter() string
func (*ListEndpointsRequest) GetOrderBy ¶
func (x *ListEndpointsRequest) GetOrderBy() string
func (*ListEndpointsRequest) GetPageSize ¶
func (x *ListEndpointsRequest) GetPageSize() int32
func (*ListEndpointsRequest) GetPageToken ¶
func (x *ListEndpointsRequest) GetPageToken() string
func (*ListEndpointsRequest) GetParent ¶
func (x *ListEndpointsRequest) GetParent() string
func (*ListEndpointsRequest) ProtoMessage ¶
func (*ListEndpointsRequest) ProtoMessage()
func (*ListEndpointsRequest) ProtoReflect ¶
func (x *ListEndpointsRequest) ProtoReflect() protoreflect.Message
func (*ListEndpointsRequest) Reset ¶
func (x *ListEndpointsRequest) Reset()
func (*ListEndpointsRequest) String ¶
func (x *ListEndpointsRequest) String() string
type ListEndpointsResponse ¶
type ListEndpointsResponse struct {
// The list of endpoints.
Endpoints []*Endpoint `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response message for [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints].
func (*ListEndpointsResponse) Descriptor
deprecated
func (*ListEndpointsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListEndpointsResponse.ProtoReflect.Descriptor instead.
func (*ListEndpointsResponse) GetEndpoints ¶
func (x *ListEndpointsResponse) GetEndpoints() []*Endpoint
func (*ListEndpointsResponse) GetNextPageToken ¶
func (x *ListEndpointsResponse) GetNextPageToken() string
func (*ListEndpointsResponse) ProtoMessage ¶
func (*ListEndpointsResponse) ProtoMessage()
func (*ListEndpointsResponse) ProtoReflect ¶
func (x *ListEndpointsResponse) ProtoReflect() protoreflect.Message
func (*ListEndpointsResponse) Reset ¶
func (x *ListEndpointsResponse) Reset()
func (*ListEndpointsResponse) String ¶
func (x *ListEndpointsResponse) String() string
type ListNamespacesRequest ¶
type ListNamespacesRequest struct {
// Required. The resource name of the project and location whose namespaces
// you'd like to list.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of items to return.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The next_page_token value returned from a previous List request,
// if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. The filter to list results by.
//
// General `filter` string syntax:
// `<field> <operator> <value> (<logical connector>)`
//
// - `<field>` can be `name` or `labels.<key>` for map field
// - `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
// means `HAS`, and is roughly the same as `=`
// - `<value>` must be the same data type as field
// - `<logical connector>` can be `AND`, `OR`, `NOT`
//
// Examples of valid filters:
//
// - `labels.owner` returns namespaces that have a label with the key
// `owner`, this is the same as `labels:owner`
// - `labels.owner=sd` returns namespaces that have key/value
// `owner=sd`
// - `name>projects/my-project/locations/us-east1/namespaces/namespace-c`
// returns namespaces that have name that is alphabetically later than the
// string, so "namespace-e" is returned but "namespace-a" is not
// - `labels.owner!=sd AND labels.foo=bar` returns namespaces that have
// `owner` in label key but value is not `sd` AND have key/value `foo=bar`
// - `doesnotexist.foo=bar` returns an empty list. Note that namespace
// doesn't have a field called "doesnotexist". Since the filter does not
// match any namespaces, it returns no results
//
// For more information about filtering, see
// [API Filtering](https://aip.dev/160).
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. The order to list results by.
//
// General `order_by` string syntax: `<field> (<asc|desc>) (,)`
//
// - `<field>` allows value: `name`
// - `<asc|desc>` ascending or descending order by `<field>`. If this is
// left blank, `asc` is used
//
// Note that an empty `order_by` string results in default order, which is
// order by `name` in ascending order.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces].
func (*ListNamespacesRequest) Descriptor
deprecated
func (*ListNamespacesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNamespacesRequest.ProtoReflect.Descriptor instead.
func (*ListNamespacesRequest) GetFilter ¶
func (x *ListNamespacesRequest) GetFilter() string
func (*ListNamespacesRequest) GetOrderBy ¶
func (x *ListNamespacesRequest) GetOrderBy() string
func (*ListNamespacesRequest) GetPageSize ¶
func (x *ListNamespacesRequest) GetPageSize() int32
func (*ListNamespacesRequest) GetPageToken ¶
func (x *ListNamespacesRequest) GetPageToken() string
func (*ListNamespacesRequest) GetParent ¶
func (x *ListNamespacesRequest) GetParent() string
func (*ListNamespacesRequest) ProtoMessage ¶
func (*ListNamespacesRequest) ProtoMessage()
func (*ListNamespacesRequest) ProtoReflect ¶
func (x *ListNamespacesRequest) ProtoReflect() protoreflect.Message
func (*ListNamespacesRequest) Reset ¶
func (x *ListNamespacesRequest) Reset()
func (*ListNamespacesRequest) String ¶
func (x *ListNamespacesRequest) String() string
type ListNamespacesResponse ¶
type ListNamespacesResponse struct {
// The list of namespaces.
Namespaces []*Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response message for [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces].
func (*ListNamespacesResponse) Descriptor
deprecated
func (*ListNamespacesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNamespacesResponse.ProtoReflect.Descriptor instead.
func (*ListNamespacesResponse) GetNamespaces ¶
func (x *ListNamespacesResponse) GetNamespaces() []*Namespace
func (*ListNamespacesResponse) GetNextPageToken ¶
func (x *ListNamespacesResponse) GetNextPageToken() string
func (*ListNamespacesResponse) ProtoMessage ¶
func (*ListNamespacesResponse) ProtoMessage()
func (*ListNamespacesResponse) ProtoReflect ¶
func (x *ListNamespacesResponse) ProtoReflect() protoreflect.Message
func (*ListNamespacesResponse) Reset ¶
func (x *ListNamespacesResponse) Reset()
func (*ListNamespacesResponse) String ¶
func (x *ListNamespacesResponse) String() string
type ListServicesRequest ¶
type ListServicesRequest struct {
// Required. The resource name of the namespace whose services you'd
// like to list.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of items to return.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The next_page_token value returned from a previous List request,
// if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. The filter to list results by.
//
// General `filter` string syntax:
// `<field> <operator> <value> (<logical connector>)`
//
// - `<field>` can be `name` or `annotations.<key>` for map field
// - `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
// means `HAS`, and is roughly the same as `=`
// - `<value>` must be the same data type as field
// - `<logical connector>` can be `AND`, `OR`, `NOT`
//
// Examples of valid filters:
//
// - `annotations.owner` returns services that have a annotation with the
// key `owner`, this is the same as `annotations:owner`
// - `annotations.protocol=gRPC` returns services that have key/value
// `protocol=gRPC`
//
// *
// `name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/service-c`
//
// returns services that have name that is alphabetically later than the
// string, so "service-e" is returned but "service-a" is not
// - `annotations.owner!=sd AND annotations.foo=bar` returns services that
// have `owner` in annotation key but value is not `sd` AND have
// key/value `foo=bar`
// - `doesnotexist.foo=bar` returns an empty list. Note that service
// doesn't have a field called "doesnotexist". Since the filter does not
// match any services, it returns no results
//
// For more information about filtering, see
// [API Filtering](https://aip.dev/160).
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. The order to list results by.
//
// General `order_by` string syntax: `<field> (<asc|desc>) (,)`
//
// - `<field>` allows value: `name`
// - `<asc|desc>` ascending or descending order by `<field>`. If this is
// left blank, `asc` is used
//
// Note that an empty `order_by` string results in default order, which is
// order by `name` in ascending order.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.ListServices][google.cloud.servicedirectory.v1.RegistrationService.ListServices].
func (*ListServicesRequest) Descriptor
deprecated
func (*ListServicesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListServicesRequest.ProtoReflect.Descriptor instead.
func (*ListServicesRequest) GetFilter ¶
func (x *ListServicesRequest) GetFilter() string
func (*ListServicesRequest) GetOrderBy ¶
func (x *ListServicesRequest) GetOrderBy() string
func (*ListServicesRequest) GetPageSize ¶
func (x *ListServicesRequest) GetPageSize() int32
func (*ListServicesRequest) GetPageToken ¶
func (x *ListServicesRequest) GetPageToken() string
func (*ListServicesRequest) GetParent ¶
func (x *ListServicesRequest) GetParent() string
func (*ListServicesRequest) ProtoMessage ¶
func (*ListServicesRequest) ProtoMessage()
func (*ListServicesRequest) ProtoReflect ¶
func (x *ListServicesRequest) ProtoReflect() protoreflect.Message
func (*ListServicesRequest) Reset ¶
func (x *ListServicesRequest) Reset()
func (*ListServicesRequest) String ¶
func (x *ListServicesRequest) String() string
type ListServicesResponse ¶
type ListServicesResponse struct {
// The list of services.
Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response message for [RegistrationService.ListServices][google.cloud.servicedirectory.v1.RegistrationService.ListServices].
func (*ListServicesResponse) Descriptor
deprecated
func (*ListServicesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListServicesResponse.ProtoReflect.Descriptor instead.
func (*ListServicesResponse) GetNextPageToken ¶
func (x *ListServicesResponse) GetNextPageToken() string
func (*ListServicesResponse) GetServices ¶
func (x *ListServicesResponse) GetServices() []*Service
func (*ListServicesResponse) ProtoMessage ¶
func (*ListServicesResponse) ProtoMessage()
func (*ListServicesResponse) ProtoReflect ¶
func (x *ListServicesResponse) ProtoReflect() protoreflect.Message
func (*ListServicesResponse) Reset ¶
func (x *ListServicesResponse) Reset()
func (*ListServicesResponse) String ¶
func (x *ListServicesResponse) String() string
type LookupServiceClient ¶
type LookupServiceClient interface {
// Returns a [service][google.cloud.servicedirectory.v1.Service] and its
// associated endpoints.
// Resolving a service is not considered an active developer method.
ResolveService(ctx context.Context, in *ResolveServiceRequest, opts ...grpc.CallOption) (*ResolveServiceResponse, error)
}
LookupServiceClient is the client API for LookupService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLookupServiceClient ¶
func NewLookupServiceClient(cc grpc.ClientConnInterface) LookupServiceClient
type LookupServiceServer ¶
type LookupServiceServer interface {
// Returns a [service][google.cloud.servicedirectory.v1.Service] and its
// associated endpoints.
// Resolving a service is not considered an active developer method.
ResolveService(context.Context, *ResolveServiceRequest) (*ResolveServiceResponse, error)
}
LookupServiceServer is the server API for LookupService service. All implementations should embed UnimplementedLookupServiceServer for forward compatibility
type Namespace ¶
type Namespace struct {
// Immutable. The resource name for the namespace in the format
// `projects/*/locations/*/namespaces/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Resource labels associated with this namespace.
// No more than 64 user labels can be associated with a given resource. Label
// keys and values can be no longer than 63 characters.
Labels map[string]string `` /* 153-byte string literal not displayed */
// Output only. The globally unique identifier of the namespace in the UUID4
// format.
Uid string `protobuf:"bytes,5,opt,name=uid,proto3" json:"uid,omitempty"`
// contains filtered or unexported fields
}
A container for [services][google.cloud.servicedirectory.v1.Service]. Namespaces allow administrators to group services together and define permissions for a collection of services.
func (*Namespace) Descriptor
deprecated
func (*Namespace) ProtoMessage ¶
func (*Namespace) ProtoMessage()
func (*Namespace) ProtoReflect ¶
func (x *Namespace) ProtoReflect() protoreflect.Message
type RegistrationServiceClient ¶
type RegistrationServiceClient interface {
// Creates a namespace, and returns the new namespace.
CreateNamespace(ctx context.Context, in *CreateNamespaceRequest, opts ...grpc.CallOption) (*Namespace, error)
// Lists all namespaces.
ListNamespaces(ctx context.Context, in *ListNamespacesRequest, opts ...grpc.CallOption) (*ListNamespacesResponse, error)
// Gets a namespace.
GetNamespace(ctx context.Context, in *GetNamespaceRequest, opts ...grpc.CallOption) (*Namespace, error)
// Updates a namespace.
UpdateNamespace(ctx context.Context, in *UpdateNamespaceRequest, opts ...grpc.CallOption) (*Namespace, error)
// Deletes a namespace. This also deletes all services and endpoints in
// the namespace.
DeleteNamespace(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Creates a service, and returns the new service.
CreateService(ctx context.Context, in *CreateServiceRequest, opts ...grpc.CallOption) (*Service, error)
// Lists all services belonging to a namespace.
ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error)
// Gets a service.
GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*Service, error)
// Updates a service.
UpdateService(ctx context.Context, in *UpdateServiceRequest, opts ...grpc.CallOption) (*Service, error)
// Deletes a service. This also deletes all endpoints associated with
// the service.
DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Creates an endpoint, and returns the new endpoint.
CreateEndpoint(ctx context.Context, in *CreateEndpointRequest, opts ...grpc.CallOption) (*Endpoint, error)
// Lists all endpoints.
ListEndpoints(ctx context.Context, in *ListEndpointsRequest, opts ...grpc.CallOption) (*ListEndpointsResponse, error)
// Gets an endpoint.
GetEndpoint(ctx context.Context, in *GetEndpointRequest, opts ...grpc.CallOption) (*Endpoint, error)
// Updates an endpoint.
UpdateEndpoint(ctx context.Context, in *UpdateEndpointRequest, opts ...grpc.CallOption) (*Endpoint, error)
// Deletes an endpoint.
DeleteEndpoint(ctx context.Context, in *DeleteEndpointRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Gets the IAM Policy for a resource (namespace or service only).
GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Sets the IAM Policy for a resource (namespace or service only).
SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Tests IAM permissions for a resource (namespace or service only).
TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error)
}
RegistrationServiceClient is the client API for RegistrationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRegistrationServiceClient ¶
func NewRegistrationServiceClient(cc grpc.ClientConnInterface) RegistrationServiceClient
type RegistrationServiceServer ¶
type RegistrationServiceServer interface {
// Creates a namespace, and returns the new namespace.
CreateNamespace(context.Context, *CreateNamespaceRequest) (*Namespace, error)
// Lists all namespaces.
ListNamespaces(context.Context, *ListNamespacesRequest) (*ListNamespacesResponse, error)
// Gets a namespace.
GetNamespace(context.Context, *GetNamespaceRequest) (*Namespace, error)
// Updates a namespace.
UpdateNamespace(context.Context, *UpdateNamespaceRequest) (*Namespace, error)
// Deletes a namespace. This also deletes all services and endpoints in
// the namespace.
DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*emptypb.Empty, error)
// Creates a service, and returns the new service.
CreateService(context.Context, *CreateServiceRequest) (*Service, error)
// Lists all services belonging to a namespace.
ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error)
// Gets a service.
GetService(context.Context, *GetServiceRequest) (*Service, error)
// Updates a service.
UpdateService(context.Context, *UpdateServiceRequest) (*Service, error)
// Deletes a service. This also deletes all endpoints associated with
// the service.
DeleteService(context.Context, *DeleteServiceRequest) (*emptypb.Empty, error)
// Creates an endpoint, and returns the new endpoint.
CreateEndpoint(context.Context, *CreateEndpointRequest) (*Endpoint, error)
// Lists all endpoints.
ListEndpoints(context.Context, *ListEndpointsRequest) (*ListEndpointsResponse, error)
// Gets an endpoint.
GetEndpoint(context.Context, *GetEndpointRequest) (*Endpoint, error)
// Updates an endpoint.
UpdateEndpoint(context.Context, *UpdateEndpointRequest) (*Endpoint, error)
// Deletes an endpoint.
DeleteEndpoint(context.Context, *DeleteEndpointRequest) (*emptypb.Empty, error)
// Gets the IAM Policy for a resource (namespace or service only).
GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
// Sets the IAM Policy for a resource (namespace or service only).
SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
// Tests IAM permissions for a resource (namespace or service only).
TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
}
RegistrationServiceServer is the server API for RegistrationService service. All implementations should embed UnimplementedRegistrationServiceServer for forward compatibility
type ResolveServiceRequest ¶
type ResolveServiceRequest struct {
// Required. The name of the service to resolve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The maximum number of endpoints to return. Defaults to 25.
// Maximum is 100. If a value less than one is specified, the Default is used.
// If a value greater than the Maximum is specified, the Maximum is used.
MaxEndpoints int32 `protobuf:"varint,2,opt,name=max_endpoints,json=maxEndpoints,proto3" json:"max_endpoints,omitempty"`
// Optional. The filter applied to the endpoints of the resolved service.
//
// General `filter` string syntax:
// `<field> <operator> <value> (<logical connector>)`
//
// - `<field>` can be `name`, `address`, `port`, or `annotations.<key>` for
// map field
// - `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
// means `HAS`, and is roughly the same as `=`
// - `<value>` must be the same data type as field
// - `<logical connector>` can be `AND`, `OR`, `NOT`
//
// Examples of valid filters:
//
// - `annotations.owner` returns endpoints that have a annotation with the
// key `owner`, this is the same as `annotations:owner`
// - `annotations.protocol=gRPC` returns endpoints that have key/value
// `protocol=gRPC`
// - `address=192.108.1.105` returns endpoints that have this address
// - `port>8080` returns endpoints that have port number larger than 8080
//
// *
// `name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c`
//
// returns endpoints that have name that is alphabetically later than the
// string, so "endpoint-e" is returned but "endpoint-a" is not
//
// *
// `name=projects/my-project/locations/us-central1/namespaces/my-namespace/services/my-service/endpoints/ep-1`
//
// returns the endpoint that has an endpoint_id equal to `ep-1`
// - `annotations.owner!=sd AND annotations.foo=bar` returns endpoints that
// have `owner` in annotation key but value is not `sd` AND have
// key/value `foo=bar`
// - `doesnotexist.foo=bar` returns an empty list. Note that endpoint
// doesn't have a field called "doesnotexist". Since the filter does not
// match any endpoint, it returns no results
//
// For more information about filtering, see
// [API Filtering](https://aip.dev/160).
EndpointFilter string `protobuf:"bytes,3,opt,name=endpoint_filter,json=endpointFilter,proto3" json:"endpoint_filter,omitempty"`
// contains filtered or unexported fields
}
The request message for [LookupService.ResolveService][google.cloud.servicedirectory.v1.LookupService.ResolveService]. Looks up a service by its name, returns the service and its endpoints.
func (*ResolveServiceRequest) Descriptor
deprecated
func (*ResolveServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResolveServiceRequest.ProtoReflect.Descriptor instead.
func (*ResolveServiceRequest) GetEndpointFilter ¶
func (x *ResolveServiceRequest) GetEndpointFilter() string
func (*ResolveServiceRequest) GetMaxEndpoints ¶
func (x *ResolveServiceRequest) GetMaxEndpoints() int32
func (*ResolveServiceRequest) GetName ¶
func (x *ResolveServiceRequest) GetName() string
func (*ResolveServiceRequest) ProtoMessage ¶
func (*ResolveServiceRequest) ProtoMessage()
func (*ResolveServiceRequest) ProtoReflect ¶
func (x *ResolveServiceRequest) ProtoReflect() protoreflect.Message
func (*ResolveServiceRequest) Reset ¶
func (x *ResolveServiceRequest) Reset()
func (*ResolveServiceRequest) String ¶
func (x *ResolveServiceRequest) String() string
type ResolveServiceResponse ¶
type ResolveServiceResponse struct {
Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// contains filtered or unexported fields
}
The response message for [LookupService.ResolveService][google.cloud.servicedirectory.v1.LookupService.ResolveService].
func (*ResolveServiceResponse) Descriptor
deprecated
func (*ResolveServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResolveServiceResponse.ProtoReflect.Descriptor instead.
func (*ResolveServiceResponse) GetService ¶
func (x *ResolveServiceResponse) GetService() *Service
func (*ResolveServiceResponse) ProtoMessage ¶
func (*ResolveServiceResponse) ProtoMessage()
func (*ResolveServiceResponse) ProtoReflect ¶
func (x *ResolveServiceResponse) ProtoReflect() protoreflect.Message
func (*ResolveServiceResponse) Reset ¶
func (x *ResolveServiceResponse) Reset()
func (*ResolveServiceResponse) String ¶
func (x *ResolveServiceResponse) String() string
type Service ¶
type Service struct {
// Immutable. The resource name for the service in the format
// `projects/*/locations/*/namespaces/*/services/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Annotations for the service. This data can be consumed by service
// clients.
//
// Restrictions:
//
// - The entire annotations dictionary may contain up to 2000 characters,
// spread accoss all key-value pairs. Annotations that go beyond this
// limit are rejected
// - Valid annotation keys have two segments: an optional prefix and name,
// separated by a slash (/). The name segment is required and must be 63
// characters or less, beginning and ending with an alphanumeric character
// ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
// alphanumerics between. The prefix is optional. If specified, the prefix
// must be a DNS subdomain: a series of DNS labels separated by dots (.),
// not longer than 253 characters in total, followed by a slash (/).
// Annotations that fails to meet these requirements are rejected
//
// Note: This field is equivalent to the `metadata` field in the v1beta1 API.
// They have the same syntax and read/write to the same location in Service
// Directory.
Annotations map[string]string `` /* 163-byte string literal not displayed */
// Output only. Endpoints associated with this service. Returned on
// [LookupService.ResolveService][google.cloud.servicedirectory.v1.LookupService.ResolveService].
// Control plane clients should use
// [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints].
Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
// Output only. The globally unique identifier of the service in the UUID4
// format.
Uid string `protobuf:"bytes,7,opt,name=uid,proto3" json:"uid,omitempty"`
// contains filtered or unexported fields
}
An individual service. A service contains a name and optional metadata. A service must exist before [endpoints][google.cloud.servicedirectory.v1.Endpoint] can be added to it.
func (*Service) Descriptor
deprecated
func (*Service) GetAnnotations ¶
func (*Service) GetEndpoints ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
type UnimplementedLookupServiceServer ¶
type UnimplementedLookupServiceServer struct {
}
UnimplementedLookupServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedLookupServiceServer) ResolveService ¶
func (UnimplementedLookupServiceServer) ResolveService(context.Context, *ResolveServiceRequest) (*ResolveServiceResponse, error)
type UnimplementedRegistrationServiceServer ¶
type UnimplementedRegistrationServiceServer struct {
}
UnimplementedRegistrationServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedRegistrationServiceServer) CreateEndpoint ¶
func (UnimplementedRegistrationServiceServer) CreateEndpoint(context.Context, *CreateEndpointRequest) (*Endpoint, error)
func (UnimplementedRegistrationServiceServer) CreateNamespace ¶
func (UnimplementedRegistrationServiceServer) CreateNamespace(context.Context, *CreateNamespaceRequest) (*Namespace, error)
func (UnimplementedRegistrationServiceServer) CreateService ¶
func (UnimplementedRegistrationServiceServer) CreateService(context.Context, *CreateServiceRequest) (*Service, error)
func (UnimplementedRegistrationServiceServer) DeleteEndpoint ¶
func (UnimplementedRegistrationServiceServer) DeleteEndpoint(context.Context, *DeleteEndpointRequest) (*emptypb.Empty, error)
func (UnimplementedRegistrationServiceServer) DeleteNamespace ¶
func (UnimplementedRegistrationServiceServer) DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*emptypb.Empty, error)
func (UnimplementedRegistrationServiceServer) DeleteService ¶
func (UnimplementedRegistrationServiceServer) DeleteService(context.Context, *DeleteServiceRequest) (*emptypb.Empty, error)
func (UnimplementedRegistrationServiceServer) GetEndpoint ¶
func (UnimplementedRegistrationServiceServer) GetEndpoint(context.Context, *GetEndpointRequest) (*Endpoint, error)
func (UnimplementedRegistrationServiceServer) GetIamPolicy ¶
func (UnimplementedRegistrationServiceServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
func (UnimplementedRegistrationServiceServer) GetNamespace ¶
func (UnimplementedRegistrationServiceServer) GetNamespace(context.Context, *GetNamespaceRequest) (*Namespace, error)
func (UnimplementedRegistrationServiceServer) GetService ¶
func (UnimplementedRegistrationServiceServer) GetService(context.Context, *GetServiceRequest) (*Service, error)
func (UnimplementedRegistrationServiceServer) ListEndpoints ¶
func (UnimplementedRegistrationServiceServer) ListEndpoints(context.Context, *ListEndpointsRequest) (*ListEndpointsResponse, error)
func (UnimplementedRegistrationServiceServer) ListNamespaces ¶
func (UnimplementedRegistrationServiceServer) ListNamespaces(context.Context, *ListNamespacesRequest) (*ListNamespacesResponse, error)
func (UnimplementedRegistrationServiceServer) ListServices ¶
func (UnimplementedRegistrationServiceServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error)
func (UnimplementedRegistrationServiceServer) SetIamPolicy ¶
func (UnimplementedRegistrationServiceServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
func (UnimplementedRegistrationServiceServer) TestIamPermissions ¶
func (UnimplementedRegistrationServiceServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
func (UnimplementedRegistrationServiceServer) UpdateEndpoint ¶
func (UnimplementedRegistrationServiceServer) UpdateEndpoint(context.Context, *UpdateEndpointRequest) (*Endpoint, error)
func (UnimplementedRegistrationServiceServer) UpdateNamespace ¶
func (UnimplementedRegistrationServiceServer) UpdateNamespace(context.Context, *UpdateNamespaceRequest) (*Namespace, error)
func (UnimplementedRegistrationServiceServer) UpdateService ¶
func (UnimplementedRegistrationServiceServer) UpdateService(context.Context, *UpdateServiceRequest) (*Service, error)
type UnsafeLookupServiceServer ¶ added in v1.12.7
type UnsafeLookupServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLookupServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LookupServiceServer will result in compilation errors.
type UnsafeRegistrationServiceServer ¶ added in v1.12.7
type UnsafeRegistrationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRegistrationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RegistrationServiceServer will result in compilation errors.
type UpdateEndpointRequest ¶
type UpdateEndpointRequest struct {
// Required. The updated endpoint.
Endpoint *Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// Required. List of fields to be updated in this request.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.UpdateEndpoint][google.cloud.servicedirectory.v1.RegistrationService.UpdateEndpoint].
func (*UpdateEndpointRequest) Descriptor
deprecated
func (*UpdateEndpointRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateEndpointRequest.ProtoReflect.Descriptor instead.
func (*UpdateEndpointRequest) GetEndpoint ¶
func (x *UpdateEndpointRequest) GetEndpoint() *Endpoint
func (*UpdateEndpointRequest) GetUpdateMask ¶
func (x *UpdateEndpointRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateEndpointRequest) ProtoMessage ¶
func (*UpdateEndpointRequest) ProtoMessage()
func (*UpdateEndpointRequest) ProtoReflect ¶
func (x *UpdateEndpointRequest) ProtoReflect() protoreflect.Message
func (*UpdateEndpointRequest) Reset ¶
func (x *UpdateEndpointRequest) Reset()
func (*UpdateEndpointRequest) String ¶
func (x *UpdateEndpointRequest) String() string
type UpdateNamespaceRequest ¶
type UpdateNamespaceRequest struct {
// Required. The updated namespace.
Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
// Required. List of fields to be updated in this request.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.UpdateNamespace][google.cloud.servicedirectory.v1.RegistrationService.UpdateNamespace].
func (*UpdateNamespaceRequest) Descriptor
deprecated
func (*UpdateNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNamespaceRequest.ProtoReflect.Descriptor instead.
func (*UpdateNamespaceRequest) GetNamespace ¶
func (x *UpdateNamespaceRequest) GetNamespace() *Namespace
func (*UpdateNamespaceRequest) GetUpdateMask ¶
func (x *UpdateNamespaceRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateNamespaceRequest) ProtoMessage ¶
func (*UpdateNamespaceRequest) ProtoMessage()
func (*UpdateNamespaceRequest) ProtoReflect ¶
func (x *UpdateNamespaceRequest) ProtoReflect() protoreflect.Message
func (*UpdateNamespaceRequest) Reset ¶
func (x *UpdateNamespaceRequest) Reset()
func (*UpdateNamespaceRequest) String ¶
func (x *UpdateNamespaceRequest) String() string
type UpdateServiceRequest ¶
type UpdateServiceRequest struct {
// Required. The updated service.
Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// Required. List of fields to be updated in this request.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
The request message for [RegistrationService.UpdateService][google.cloud.servicedirectory.v1.RegistrationService.UpdateService].
func (*UpdateServiceRequest) Descriptor
deprecated
func (*UpdateServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateServiceRequest.ProtoReflect.Descriptor instead.
func (*UpdateServiceRequest) GetService ¶
func (x *UpdateServiceRequest) GetService() *Service
func (*UpdateServiceRequest) GetUpdateMask ¶
func (x *UpdateServiceRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateServiceRequest) ProtoMessage ¶
func (*UpdateServiceRequest) ProtoMessage()
func (*UpdateServiceRequest) ProtoReflect ¶
func (x *UpdateServiceRequest) ProtoReflect() protoreflect.Message
func (*UpdateServiceRequest) Reset ¶
func (x *UpdateServiceRequest) Reset()
func (*UpdateServiceRequest) String ¶
func (x *UpdateServiceRequest) String() string