servicedirectory

package
v0.0.0-...-e165f0f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterLookupServiceServer

func RegisterLookupServiceServer(s *grpc.Server, srv LookupServiceServer)

func RegisterRegistrationServiceServer

func RegisterRegistrationServiceServer(s *grpc.Server, 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"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

The request message for [RegistrationService.CreateEndpoint][google.cloud.servicedirectory.v1beta1.RegistrationService.CreateEndpoint].

func (*CreateEndpointRequest) Descriptor

func (*CreateEndpointRequest) Descriptor() ([]byte, []int)

func (*CreateEndpointRequest) GetEndpoint

func (m *CreateEndpointRequest) GetEndpoint() *Endpoint

func (*CreateEndpointRequest) GetEndpointId

func (m *CreateEndpointRequest) GetEndpointId() string

func (*CreateEndpointRequest) GetParent

func (m *CreateEndpointRequest) GetParent() string

func (*CreateEndpointRequest) ProtoMessage

func (*CreateEndpointRequest) ProtoMessage()

func (*CreateEndpointRequest) Reset

func (m *CreateEndpointRequest) Reset()

func (*CreateEndpointRequest) String

func (m *CreateEndpointRequest) String() string

func (*CreateEndpointRequest) XXX_DiscardUnknown

func (m *CreateEndpointRequest) XXX_DiscardUnknown()

func (*CreateEndpointRequest) XXX_Marshal

func (m *CreateEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateEndpointRequest) XXX_Merge

func (m *CreateEndpointRequest) XXX_Merge(src proto.Message)

func (*CreateEndpointRequest) XXX_Size

func (m *CreateEndpointRequest) XXX_Size() int

func (*CreateEndpointRequest) XXX_Unmarshal

func (m *CreateEndpointRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

The request message for [RegistrationService.CreateNamespace][google.cloud.servicedirectory.v1beta1.RegistrationService.CreateNamespace].

func (*CreateNamespaceRequest) Descriptor

func (*CreateNamespaceRequest) Descriptor() ([]byte, []int)

func (*CreateNamespaceRequest) GetNamespace

func (m *CreateNamespaceRequest) GetNamespace() *Namespace

func (*CreateNamespaceRequest) GetNamespaceId

func (m *CreateNamespaceRequest) GetNamespaceId() string

func (*CreateNamespaceRequest) GetParent

func (m *CreateNamespaceRequest) GetParent() string

func (*CreateNamespaceRequest) ProtoMessage

func (*CreateNamespaceRequest) ProtoMessage()

func (*CreateNamespaceRequest) Reset

func (m *CreateNamespaceRequest) Reset()

func (*CreateNamespaceRequest) String

func (m *CreateNamespaceRequest) String() string

func (*CreateNamespaceRequest) XXX_DiscardUnknown

func (m *CreateNamespaceRequest) XXX_DiscardUnknown()

func (*CreateNamespaceRequest) XXX_Marshal

func (m *CreateNamespaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateNamespaceRequest) XXX_Merge

func (m *CreateNamespaceRequest) XXX_Merge(src proto.Message)

func (*CreateNamespaceRequest) XXX_Size

func (m *CreateNamespaceRequest) XXX_Size() int

func (*CreateNamespaceRequest) XXX_Unmarshal

func (m *CreateNamespaceRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [RegistrationService.CreateService][google.cloud.servicedirectory.v1beta1.RegistrationService.CreateService].

func (*CreateServiceRequest) Descriptor

func (*CreateServiceRequest) Descriptor() ([]byte, []int)

func (*CreateServiceRequest) GetParent

func (m *CreateServiceRequest) GetParent() string

func (*CreateServiceRequest) GetService

func (m *CreateServiceRequest) GetService() *Service

func (*CreateServiceRequest) GetServiceId

func (m *CreateServiceRequest) GetServiceId() string

func (*CreateServiceRequest) ProtoMessage

func (*CreateServiceRequest) ProtoMessage()

func (*CreateServiceRequest) Reset

func (m *CreateServiceRequest) Reset()

func (*CreateServiceRequest) String

func (m *CreateServiceRequest) String() string

func (*CreateServiceRequest) XXX_DiscardUnknown

func (m *CreateServiceRequest) XXX_DiscardUnknown()

func (*CreateServiceRequest) XXX_Marshal

func (m *CreateServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateServiceRequest) XXX_Merge

func (m *CreateServiceRequest) XXX_Merge(src proto.Message)

func (*CreateServiceRequest) XXX_Size

func (m *CreateServiceRequest) XXX_Size() int

func (*CreateServiceRequest) XXX_Unmarshal

func (m *CreateServiceRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [RegistrationService.DeleteEndpoint][google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteEndpoint].

func (*DeleteEndpointRequest) Descriptor

func (*DeleteEndpointRequest) Descriptor() ([]byte, []int)

func (*DeleteEndpointRequest) GetName

func (m *DeleteEndpointRequest) GetName() string

func (*DeleteEndpointRequest) ProtoMessage

func (*DeleteEndpointRequest) ProtoMessage()

func (*DeleteEndpointRequest) Reset

func (m *DeleteEndpointRequest) Reset()

func (*DeleteEndpointRequest) String

func (m *DeleteEndpointRequest) String() string

func (*DeleteEndpointRequest) XXX_DiscardUnknown

func (m *DeleteEndpointRequest) XXX_DiscardUnknown()

func (*DeleteEndpointRequest) XXX_Marshal

func (m *DeleteEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteEndpointRequest) XXX_Merge

func (m *DeleteEndpointRequest) XXX_Merge(src proto.Message)

func (*DeleteEndpointRequest) XXX_Size

func (m *DeleteEndpointRequest) XXX_Size() int

func (*DeleteEndpointRequest) XXX_Unmarshal

func (m *DeleteEndpointRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [RegistrationService.DeleteNamespace][google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteNamespace].

func (*DeleteNamespaceRequest) Descriptor

func (*DeleteNamespaceRequest) Descriptor() ([]byte, []int)

func (*DeleteNamespaceRequest) GetName

func (m *DeleteNamespaceRequest) GetName() string

func (*DeleteNamespaceRequest) ProtoMessage

func (*DeleteNamespaceRequest) ProtoMessage()

func (*DeleteNamespaceRequest) Reset

func (m *DeleteNamespaceRequest) Reset()

func (*DeleteNamespaceRequest) String

func (m *DeleteNamespaceRequest) String() string

func (*DeleteNamespaceRequest) XXX_DiscardUnknown

func (m *DeleteNamespaceRequest) XXX_DiscardUnknown()

func (*DeleteNamespaceRequest) XXX_Marshal

func (m *DeleteNamespaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteNamespaceRequest) XXX_Merge

func (m *DeleteNamespaceRequest) XXX_Merge(src proto.Message)

func (*DeleteNamespaceRequest) XXX_Size

func (m *DeleteNamespaceRequest) XXX_Size() int

func (*DeleteNamespaceRequest) XXX_Unmarshal

func (m *DeleteNamespaceRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [RegistrationService.DeleteService][google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteService].

func (*DeleteServiceRequest) Descriptor

func (*DeleteServiceRequest) Descriptor() ([]byte, []int)

func (*DeleteServiceRequest) GetName

func (m *DeleteServiceRequest) GetName() string

func (*DeleteServiceRequest) ProtoMessage

func (*DeleteServiceRequest) ProtoMessage()

func (*DeleteServiceRequest) Reset

func (m *DeleteServiceRequest) Reset()

func (*DeleteServiceRequest) String

func (m *DeleteServiceRequest) String() string

func (*DeleteServiceRequest) XXX_DiscardUnknown

func (m *DeleteServiceRequest) XXX_DiscardUnknown()

func (*DeleteServiceRequest) XXX_Marshal

func (m *DeleteServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteServiceRequest) XXX_Merge

func (m *DeleteServiceRequest) XXX_Merge(src proto.Message)

func (*DeleteServiceRequest) XXX_Size

func (m *DeleteServiceRequest) XXX_Size() int

func (*DeleteServiceRequest) XXX_Unmarshal

func (m *DeleteServiceRequest) XXX_Unmarshal(b []byte) error

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 will reject 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 will reject values outside of [0, 65535].
	Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	// Optional. Metadata for the endpoint. This data can be consumed by service
	// clients.  The entire metadata dictionary may contain up to 512 characters,
	// spread accoss all key-value pairs. Metadata that goes beyond any these
	// limits will be rejected.
	Metadata             map[string]string `` /* 157-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

An individual endpoint that provides a [service][google.cloud.servicedirectory.v1beta1.Service]. The service must already exist to create an endpoint.

func (*Endpoint) Descriptor

func (*Endpoint) Descriptor() ([]byte, []int)

func (*Endpoint) GetAddress

func (m *Endpoint) GetAddress() string

func (*Endpoint) GetMetadata

func (m *Endpoint) GetMetadata() map[string]string

func (*Endpoint) GetName

func (m *Endpoint) GetName() string

func (*Endpoint) GetPort

func (m *Endpoint) GetPort() int32

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) Reset

func (m *Endpoint) Reset()

func (*Endpoint) String

func (m *Endpoint) String() string

func (*Endpoint) XXX_DiscardUnknown

func (m *Endpoint) XXX_DiscardUnknown()

func (*Endpoint) XXX_Marshal

func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Endpoint) XXX_Merge

func (m *Endpoint) XXX_Merge(src proto.Message)

func (*Endpoint) XXX_Size

func (m *Endpoint) XXX_Size() int

func (*Endpoint) XXX_Unmarshal

func (m *Endpoint) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [RegistrationService.GetEndpoint][google.cloud.servicedirectory.v1beta1.RegistrationService.GetEndpoint]. This should not be used to lookup endpoints at runtime. Instead, use the `resolve` method.

func (*GetEndpointRequest) Descriptor

func (*GetEndpointRequest) Descriptor() ([]byte, []int)

func (*GetEndpointRequest) GetName

func (m *GetEndpointRequest) GetName() string

func (*GetEndpointRequest) ProtoMessage

func (*GetEndpointRequest) ProtoMessage()

func (*GetEndpointRequest) Reset

func (m *GetEndpointRequest) Reset()

func (*GetEndpointRequest) String

func (m *GetEndpointRequest) String() string

func (*GetEndpointRequest) XXX_DiscardUnknown

func (m *GetEndpointRequest) XXX_DiscardUnknown()

func (*GetEndpointRequest) XXX_Marshal

func (m *GetEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetEndpointRequest) XXX_Merge

func (m *GetEndpointRequest) XXX_Merge(src proto.Message)

func (*GetEndpointRequest) XXX_Size

func (m *GetEndpointRequest) XXX_Size() int

func (*GetEndpointRequest) XXX_Unmarshal

func (m *GetEndpointRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [RegistrationService.GetNamespace][google.cloud.servicedirectory.v1beta1.RegistrationService.GetNamespace].

func (*GetNamespaceRequest) Descriptor

func (*GetNamespaceRequest) Descriptor() ([]byte, []int)

func (*GetNamespaceRequest) GetName

func (m *GetNamespaceRequest) GetName() string

func (*GetNamespaceRequest) ProtoMessage

func (*GetNamespaceRequest) ProtoMessage()

func (*GetNamespaceRequest) Reset

func (m *GetNamespaceRequest) Reset()

func (*GetNamespaceRequest) String

func (m *GetNamespaceRequest) String() string

func (*GetNamespaceRequest) XXX_DiscardUnknown

func (m *GetNamespaceRequest) XXX_DiscardUnknown()

func (*GetNamespaceRequest) XXX_Marshal

func (m *GetNamespaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetNamespaceRequest) XXX_Merge

func (m *GetNamespaceRequest) XXX_Merge(src proto.Message)

func (*GetNamespaceRequest) XXX_Size

func (m *GetNamespaceRequest) XXX_Size() int

func (*GetNamespaceRequest) XXX_Unmarshal

func (m *GetNamespaceRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [RegistrationService.GetService][google.cloud.servicedirectory.v1beta1.RegistrationService.GetService]. This should not be used for looking up a service. Insead, use the `resolve` method as it will contain all endpoints and associated metadata.

func (*GetServiceRequest) Descriptor

func (*GetServiceRequest) Descriptor() ([]byte, []int)

func (*GetServiceRequest) GetName

func (m *GetServiceRequest) GetName() string

func (*GetServiceRequest) ProtoMessage

func (*GetServiceRequest) ProtoMessage()

func (*GetServiceRequest) Reset

func (m *GetServiceRequest) Reset()

func (*GetServiceRequest) String

func (m *GetServiceRequest) String() string

func (*GetServiceRequest) XXX_DiscardUnknown

func (m *GetServiceRequest) XXX_DiscardUnknown()

func (*GetServiceRequest) XXX_Marshal

func (m *GetServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetServiceRequest) XXX_Merge

func (m *GetServiceRequest) XXX_Merge(src proto.Message)

func (*GetServiceRequest) XXX_Size

func (m *GetServiceRequest) XXX_Size() int

func (*GetServiceRequest) XXX_Unmarshal

func (m *GetServiceRequest) XXX_Unmarshal(b []byte) error

type ListEndpointsRequest

type ListEndpointsRequest struct {
	// Required. The resource name of the service whose endpoints we'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 result by.
	//
	// General filter string syntax:
	// <field> <operator> <value> (<logical connector>)
	// <field> can be "name", "address", "port" or "metadata.<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:
	// * "metadata.owner" returns Endpoints that have a label with the key "owner"
	//   this is the same as "metadata:owner".
	// * "metadata.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-east/namespaces/my-namespace/services/my-service/endpoints/endpoint-c"
	//   returns Endpoints that have name that is alphabetically later than the
	//   string, so "endpoint-e" will be returned but "endpoint-a" will not be.
	// * "metadata.owner!=sd AND metadata.foo=bar" returns Endpoints 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 Endpoint doesn't
	//   have a field called "doesnotexist". Since the filter does not match any
	//   Endpoints, it returns no results.
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. The order to list result by.
	OrderBy              string   `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1beta1.RegistrationService.ListEndpoints].

func (*ListEndpointsRequest) Descriptor

func (*ListEndpointsRequest) Descriptor() ([]byte, []int)

func (*ListEndpointsRequest) GetFilter

func (m *ListEndpointsRequest) GetFilter() string

func (*ListEndpointsRequest) GetOrderBy

func (m *ListEndpointsRequest) GetOrderBy() string

func (*ListEndpointsRequest) GetPageSize

func (m *ListEndpointsRequest) GetPageSize() int32

func (*ListEndpointsRequest) GetPageToken

func (m *ListEndpointsRequest) GetPageToken() string

func (*ListEndpointsRequest) GetParent

func (m *ListEndpointsRequest) GetParent() string

func (*ListEndpointsRequest) ProtoMessage

func (*ListEndpointsRequest) ProtoMessage()

func (*ListEndpointsRequest) Reset

func (m *ListEndpointsRequest) Reset()

func (*ListEndpointsRequest) String

func (m *ListEndpointsRequest) String() string

func (*ListEndpointsRequest) XXX_DiscardUnknown

func (m *ListEndpointsRequest) XXX_DiscardUnknown()

func (*ListEndpointsRequest) XXX_Marshal

func (m *ListEndpointsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListEndpointsRequest) XXX_Merge

func (m *ListEndpointsRequest) XXX_Merge(src proto.Message)

func (*ListEndpointsRequest) XXX_Size

func (m *ListEndpointsRequest) XXX_Size() int

func (*ListEndpointsRequest) XXX_Unmarshal

func (m *ListEndpointsRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message for [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1beta1.RegistrationService.ListEndpoints].

func (*ListEndpointsResponse) Descriptor

func (*ListEndpointsResponse) Descriptor() ([]byte, []int)

func (*ListEndpointsResponse) GetEndpoints

func (m *ListEndpointsResponse) GetEndpoints() []*Endpoint

func (*ListEndpointsResponse) GetNextPageToken

func (m *ListEndpointsResponse) GetNextPageToken() string

func (*ListEndpointsResponse) ProtoMessage

func (*ListEndpointsResponse) ProtoMessage()

func (*ListEndpointsResponse) Reset

func (m *ListEndpointsResponse) Reset()

func (*ListEndpointsResponse) String

func (m *ListEndpointsResponse) String() string

func (*ListEndpointsResponse) XXX_DiscardUnknown

func (m *ListEndpointsResponse) XXX_DiscardUnknown()

func (*ListEndpointsResponse) XXX_Marshal

func (m *ListEndpointsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListEndpointsResponse) XXX_Merge

func (m *ListEndpointsResponse) XXX_Merge(src proto.Message)

func (*ListEndpointsResponse) XXX_Size

func (m *ListEndpointsResponse) XXX_Size() int

func (*ListEndpointsResponse) XXX_Unmarshal

func (m *ListEndpointsResponse) XXX_Unmarshal(b []byte) error

type ListNamespacesRequest

type ListNamespacesRequest struct {
	// Required. The resource name of the project and location whose namespaces we'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 result 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.protocol=gRPC" returns Namespaces that have key/value
	//   "protocol=gRPC".
	// * "name>projects/my-project/locations/us-east/namespaces/namespace-c"
	//   returns Namespaces that have name that is alphabetically later than the
	//   string, so "namespace-e" will be returned but "namespace-a" will not be.
	// * "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.
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. The order to list result by.
	//
	// General order by string syntax:
	// <field> (<asc|desc>) (,)
	// <field> allows values {"name"}
	// <asc/desc> ascending or descending order by <field>. If this is left
	// blank, "asc" is used.
	// Note that an empty order_by string result 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1beta1.RegistrationService.ListNamespaces].

func (*ListNamespacesRequest) Descriptor

func (*ListNamespacesRequest) Descriptor() ([]byte, []int)

func (*ListNamespacesRequest) GetFilter

func (m *ListNamespacesRequest) GetFilter() string

func (*ListNamespacesRequest) GetOrderBy

func (m *ListNamespacesRequest) GetOrderBy() string

func (*ListNamespacesRequest) GetPageSize

func (m *ListNamespacesRequest) GetPageSize() int32

func (*ListNamespacesRequest) GetPageToken

func (m *ListNamespacesRequest) GetPageToken() string

func (*ListNamespacesRequest) GetParent

func (m *ListNamespacesRequest) GetParent() string

func (*ListNamespacesRequest) ProtoMessage

func (*ListNamespacesRequest) ProtoMessage()

func (*ListNamespacesRequest) Reset

func (m *ListNamespacesRequest) Reset()

func (*ListNamespacesRequest) String

func (m *ListNamespacesRequest) String() string

func (*ListNamespacesRequest) XXX_DiscardUnknown

func (m *ListNamespacesRequest) XXX_DiscardUnknown()

func (*ListNamespacesRequest) XXX_Marshal

func (m *ListNamespacesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListNamespacesRequest) XXX_Merge

func (m *ListNamespacesRequest) XXX_Merge(src proto.Message)

func (*ListNamespacesRequest) XXX_Size

func (m *ListNamespacesRequest) XXX_Size() int

func (*ListNamespacesRequest) XXX_Unmarshal

func (m *ListNamespacesRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message for [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1beta1.RegistrationService.ListNamespaces].

func (*ListNamespacesResponse) Descriptor

func (*ListNamespacesResponse) Descriptor() ([]byte, []int)

func (*ListNamespacesResponse) GetNamespaces

func (m *ListNamespacesResponse) GetNamespaces() []*Namespace

func (*ListNamespacesResponse) GetNextPageToken

func (m *ListNamespacesResponse) GetNextPageToken() string

func (*ListNamespacesResponse) ProtoMessage

func (*ListNamespacesResponse) ProtoMessage()

func (*ListNamespacesResponse) Reset

func (m *ListNamespacesResponse) Reset()

func (*ListNamespacesResponse) String

func (m *ListNamespacesResponse) String() string

func (*ListNamespacesResponse) XXX_DiscardUnknown

func (m *ListNamespacesResponse) XXX_DiscardUnknown()

func (*ListNamespacesResponse) XXX_Marshal

func (m *ListNamespacesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListNamespacesResponse) XXX_Merge

func (m *ListNamespacesResponse) XXX_Merge(src proto.Message)

func (*ListNamespacesResponse) XXX_Size

func (m *ListNamespacesResponse) XXX_Size() int

func (*ListNamespacesResponse) XXX_Unmarshal

func (m *ListNamespacesResponse) XXX_Unmarshal(b []byte) error

type ListServicesRequest

type ListServicesRequest struct {
	// Required. The resource name of the namespace whose services we'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 result by.
	//
	// General filter string syntax:
	// <field> <operator> <value> (<logical connector>)
	// <field> can be "name", or "metadata.<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:
	// * "metadata.owner" returns Services that have a label with the key "owner"
	//   this is the same as "metadata:owner".
	// * "metadata.protocol=gRPC" returns Services that have key/value
	//   "protocol=gRPC".
	// * "name>projects/my-project/locations/us-east/namespaces/my-namespace/services/service-c"
	//   returns Services that have name that is alphabetically later than the
	//   string, so "service-e" will be returned but "service-a" will not be.
	// * "metadata.owner!=sd AND metadata.foo=bar" returns Services 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 Service doesn't
	//   have a field called "doesnotexist". Since the filter does not match any
	//   Services, it returns no results.
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. The order to list result by.
	OrderBy              string   `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [RegistrationService.ListServices][google.cloud.servicedirectory.v1beta1.RegistrationService.ListServices].

func (*ListServicesRequest) Descriptor

func (*ListServicesRequest) Descriptor() ([]byte, []int)

func (*ListServicesRequest) GetFilter

func (m *ListServicesRequest) GetFilter() string

func (*ListServicesRequest) GetOrderBy

func (m *ListServicesRequest) GetOrderBy() string

func (*ListServicesRequest) GetPageSize

func (m *ListServicesRequest) GetPageSize() int32

func (*ListServicesRequest) GetPageToken

func (m *ListServicesRequest) GetPageToken() string

func (*ListServicesRequest) GetParent

func (m *ListServicesRequest) GetParent() string

func (*ListServicesRequest) ProtoMessage

func (*ListServicesRequest) ProtoMessage()

func (*ListServicesRequest) Reset

func (m *ListServicesRequest) Reset()

func (*ListServicesRequest) String

func (m *ListServicesRequest) String() string

func (*ListServicesRequest) XXX_DiscardUnknown

func (m *ListServicesRequest) XXX_DiscardUnknown()

func (*ListServicesRequest) XXX_Marshal

func (m *ListServicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListServicesRequest) XXX_Merge

func (m *ListServicesRequest) XXX_Merge(src proto.Message)

func (*ListServicesRequest) XXX_Size

func (m *ListServicesRequest) XXX_Size() int

func (*ListServicesRequest) XXX_Unmarshal

func (m *ListServicesRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message for [RegistrationService.ListServices][google.cloud.servicedirectory.v1beta1.RegistrationService.ListServices].

func (*ListServicesResponse) Descriptor

func (*ListServicesResponse) Descriptor() ([]byte, []int)

func (*ListServicesResponse) GetNextPageToken

func (m *ListServicesResponse) GetNextPageToken() string

func (*ListServicesResponse) GetServices

func (m *ListServicesResponse) GetServices() []*Service

func (*ListServicesResponse) ProtoMessage

func (*ListServicesResponse) ProtoMessage()

func (*ListServicesResponse) Reset

func (m *ListServicesResponse) Reset()

func (*ListServicesResponse) String

func (m *ListServicesResponse) String() string

func (*ListServicesResponse) XXX_DiscardUnknown

func (m *ListServicesResponse) XXX_DiscardUnknown()

func (*ListServicesResponse) XXX_Marshal

func (m *ListServicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListServicesResponse) XXX_Merge

func (m *ListServicesResponse) XXX_Merge(src proto.Message)

func (*ListServicesResponse) XXX_Size

func (m *ListServicesResponse) XXX_Size() int

func (*ListServicesResponse) XXX_Unmarshal

func (m *ListServicesResponse) XXX_Unmarshal(b []byte) error

type LookupServiceClient

type LookupServiceClient interface {
	// Returns a [service][google.cloud.servicedirectory.v1beta1.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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type LookupServiceServer

type LookupServiceServer interface {
	// Returns a [service][google.cloud.servicedirectory.v1beta1.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.

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 */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

A container for [services][google.cloud.servicedirectory.v1beta1.Service]. Namespaces allow administrators to group services together and define permissions for a collection of services.

func (*Namespace) Descriptor

func (*Namespace) Descriptor() ([]byte, []int)

func (*Namespace) GetLabels

func (m *Namespace) GetLabels() map[string]string

func (*Namespace) GetName

func (m *Namespace) GetName() string

func (*Namespace) ProtoMessage

func (*Namespace) ProtoMessage()

func (*Namespace) Reset

func (m *Namespace) Reset()

func (*Namespace) String

func (m *Namespace) String() string

func (*Namespace) XXX_DiscardUnknown

func (m *Namespace) XXX_DiscardUnknown()

func (*Namespace) XXX_Marshal

func (m *Namespace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Namespace) XXX_Merge

func (m *Namespace) XXX_Merge(src proto.Message)

func (*Namespace) XXX_Size

func (m *Namespace) XXX_Size() int

func (*Namespace) XXX_Unmarshal

func (m *Namespace) XXX_Unmarshal(b []byte) error

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) (*empty.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) (*empty.Empty, error)
	// Creates a 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 a endpoint.
	GetEndpoint(ctx context.Context, in *GetEndpointRequest, opts ...grpc.CallOption) (*Endpoint, error)
	// Updates a endpoint.
	UpdateEndpoint(ctx context.Context, in *UpdateEndpointRequest, opts ...grpc.CallOption) (*Endpoint, error)
	// Deletes a endpoint.
	DeleteEndpoint(ctx context.Context, in *DeleteEndpointRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Gets the IAM Policy for a resource (namespace or service only).
	GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
	// Sets the IAM Policy for a resource (namespace or service only).
	SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
	// Tests IAM permissions for a resource (namespace or service only).
	TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
}

RegistrationServiceClient is the client API for RegistrationService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

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) (*empty.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) (*empty.Empty, error)
	// Creates a endpoint, and returns the new Endpoint.
	CreateEndpoint(context.Context, *CreateEndpointRequest) (*Endpoint, error)
	// Lists all endpoints.
	ListEndpoints(context.Context, *ListEndpointsRequest) (*ListEndpointsResponse, error)
	// Gets a endpoint.
	GetEndpoint(context.Context, *GetEndpointRequest) (*Endpoint, error)
	// Updates a endpoint.
	UpdateEndpoint(context.Context, *UpdateEndpointRequest) (*Endpoint, error)
	// Deletes a endpoint.
	DeleteEndpoint(context.Context, *DeleteEndpointRequest) (*empty.Empty, error)
	// Gets the IAM Policy for a resource (namespace or service only).
	GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
	// Sets the IAM Policy for a resource (namespace or service only).
	SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
	// Tests IAM permissions for a resource (namespace or service only).
	TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
}

RegistrationServiceServer is the server API for RegistrationService service.

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" or "metadata.<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 the field.
	// <logical connector> can be "AND, OR, NOT".
	//
	// Examples of valid filters:
	// * "metadata.owner" returns Endpoints that have a label with the
	//   key "owner", this is the same as "metadata:owner"
	// * "metadata.protocol=gRPC" returns Endpoints that have key/value
	//   "protocol=gRPC"
	// * "metadata.owner!=sd AND metadata.foo=bar" returns
	//   Endpoints that have "owner" field in metadata with a value that is not
	//   "sd" AND have the key/value foo=bar.
	EndpointFilter       string   `protobuf:"bytes,3,opt,name=endpoint_filter,json=endpointFilter,proto3" json:"endpoint_filter,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [LookupService.ResolveService][google.cloud.servicedirectory.v1beta1.LookupService.ResolveService]. Looks up a service by its name, returns the service and its endpoints.

func (*ResolveServiceRequest) Descriptor

func (*ResolveServiceRequest) Descriptor() ([]byte, []int)

func (*ResolveServiceRequest) GetEndpointFilter

func (m *ResolveServiceRequest) GetEndpointFilter() string

func (*ResolveServiceRequest) GetMaxEndpoints

func (m *ResolveServiceRequest) GetMaxEndpoints() int32

func (*ResolveServiceRequest) GetName

func (m *ResolveServiceRequest) GetName() string

func (*ResolveServiceRequest) ProtoMessage

func (*ResolveServiceRequest) ProtoMessage()

func (*ResolveServiceRequest) Reset

func (m *ResolveServiceRequest) Reset()

func (*ResolveServiceRequest) String

func (m *ResolveServiceRequest) String() string

func (*ResolveServiceRequest) XXX_DiscardUnknown

func (m *ResolveServiceRequest) XXX_DiscardUnknown()

func (*ResolveServiceRequest) XXX_Marshal

func (m *ResolveServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResolveServiceRequest) XXX_Merge

func (m *ResolveServiceRequest) XXX_Merge(src proto.Message)

func (*ResolveServiceRequest) XXX_Size

func (m *ResolveServiceRequest) XXX_Size() int

func (*ResolveServiceRequest) XXX_Unmarshal

func (m *ResolveServiceRequest) XXX_Unmarshal(b []byte) error

type ResolveServiceResponse

type ResolveServiceResponse struct {
	Service              *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message for [LookupService.ResolveService][google.cloud.servicedirectory.v1beta1.LookupService.ResolveService].

func (*ResolveServiceResponse) Descriptor

func (*ResolveServiceResponse) Descriptor() ([]byte, []int)

func (*ResolveServiceResponse) GetService

func (m *ResolveServiceResponse) GetService() *Service

func (*ResolveServiceResponse) ProtoMessage

func (*ResolveServiceResponse) ProtoMessage()

func (*ResolveServiceResponse) Reset

func (m *ResolveServiceResponse) Reset()

func (*ResolveServiceResponse) String

func (m *ResolveServiceResponse) String() string

func (*ResolveServiceResponse) XXX_DiscardUnknown

func (m *ResolveServiceResponse) XXX_DiscardUnknown()

func (*ResolveServiceResponse) XXX_Marshal

func (m *ResolveServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResolveServiceResponse) XXX_Merge

func (m *ResolveServiceResponse) XXX_Merge(src proto.Message)

func (*ResolveServiceResponse) XXX_Size

func (m *ResolveServiceResponse) XXX_Size() int

func (*ResolveServiceResponse) XXX_Unmarshal

func (m *ResolveServiceResponse) XXX_Unmarshal(b []byte) error

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. Metadata for the service. This data can be consumed by service
	// clients.  The entire metadata dictionary may contain up to 2000 characters,
	// spread across all key-value pairs. Metadata that goes beyond any these
	// limits will be rejected.
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// Output only. Endpoints associated with this service. Returned on LookupService.Resolve.
	// Control plane clients should use RegistrationService.ListEndpoints.
	Endpoints            []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

An individual service. A service contains a name and optional metadata. A service must exist before [endpoints][google.cloud.servicedirectory.v1beta1.Endpoint] can be added to it.

func (*Service) Descriptor

func (*Service) Descriptor() ([]byte, []int)

func (*Service) GetEndpoints

func (m *Service) GetEndpoints() []*Endpoint

func (*Service) GetMetadata

func (m *Service) GetMetadata() map[string]string

func (*Service) GetName

func (m *Service) GetName() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) Reset

func (m *Service) Reset()

func (*Service) String

func (m *Service) String() string

func (*Service) XXX_DiscardUnknown

func (m *Service) XXX_DiscardUnknown()

func (*Service) XXX_Marshal

func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Service) XXX_Merge

func (m *Service) XXX_Merge(src proto.Message)

func (*Service) XXX_Size

func (m *Service) XXX_Size() int

func (*Service) XXX_Unmarshal

func (m *Service) XXX_Unmarshal(b []byte) error

type UnimplementedLookupServiceServer

type UnimplementedLookupServiceServer struct {
}

UnimplementedLookupServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedLookupServiceServer) ResolveService

type UnimplementedRegistrationServiceServer

type UnimplementedRegistrationServiceServer struct {
}

UnimplementedRegistrationServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedRegistrationServiceServer) CreateEndpoint

func (*UnimplementedRegistrationServiceServer) CreateNamespace

func (*UnimplementedRegistrationServiceServer) CreateService

func (*UnimplementedRegistrationServiceServer) DeleteEndpoint

func (*UnimplementedRegistrationServiceServer) DeleteNamespace

func (*UnimplementedRegistrationServiceServer) DeleteService

func (*UnimplementedRegistrationServiceServer) GetEndpoint

func (*UnimplementedRegistrationServiceServer) GetIamPolicy

func (*UnimplementedRegistrationServiceServer) GetNamespace

func (*UnimplementedRegistrationServiceServer) GetService

func (*UnimplementedRegistrationServiceServer) ListEndpoints

func (*UnimplementedRegistrationServiceServer) ListNamespaces

func (*UnimplementedRegistrationServiceServer) ListServices

func (*UnimplementedRegistrationServiceServer) SetIamPolicy

func (*UnimplementedRegistrationServiceServer) TestIamPermissions

func (*UnimplementedRegistrationServiceServer) UpdateEndpoint

func (*UnimplementedRegistrationServiceServer) UpdateNamespace

func (*UnimplementedRegistrationServiceServer) UpdateService

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           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

The request message for [RegistrationService.UpdateEndpoint][google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateEndpoint].

func (*UpdateEndpointRequest) Descriptor

func (*UpdateEndpointRequest) Descriptor() ([]byte, []int)

func (*UpdateEndpointRequest) GetEndpoint

func (m *UpdateEndpointRequest) GetEndpoint() *Endpoint

func (*UpdateEndpointRequest) GetUpdateMask

func (m *UpdateEndpointRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateEndpointRequest) ProtoMessage

func (*UpdateEndpointRequest) ProtoMessage()

func (*UpdateEndpointRequest) Reset

func (m *UpdateEndpointRequest) Reset()

func (*UpdateEndpointRequest) String

func (m *UpdateEndpointRequest) String() string

func (*UpdateEndpointRequest) XXX_DiscardUnknown

func (m *UpdateEndpointRequest) XXX_DiscardUnknown()

func (*UpdateEndpointRequest) XXX_Marshal

func (m *UpdateEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateEndpointRequest) XXX_Merge

func (m *UpdateEndpointRequest) XXX_Merge(src proto.Message)

func (*UpdateEndpointRequest) XXX_Size

func (m *UpdateEndpointRequest) XXX_Size() int

func (*UpdateEndpointRequest) XXX_Unmarshal

func (m *UpdateEndpointRequest) XXX_Unmarshal(b []byte) error

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           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

The request message for [RegistrationService.UpdateNamespace][google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateNamespace].

func (*UpdateNamespaceRequest) Descriptor

func (*UpdateNamespaceRequest) Descriptor() ([]byte, []int)

func (*UpdateNamespaceRequest) GetNamespace

func (m *UpdateNamespaceRequest) GetNamespace() *Namespace

func (*UpdateNamespaceRequest) GetUpdateMask

func (m *UpdateNamespaceRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateNamespaceRequest) ProtoMessage

func (*UpdateNamespaceRequest) ProtoMessage()

func (*UpdateNamespaceRequest) Reset

func (m *UpdateNamespaceRequest) Reset()

func (*UpdateNamespaceRequest) String

func (m *UpdateNamespaceRequest) String() string

func (*UpdateNamespaceRequest) XXX_DiscardUnknown

func (m *UpdateNamespaceRequest) XXX_DiscardUnknown()

func (*UpdateNamespaceRequest) XXX_Marshal

func (m *UpdateNamespaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateNamespaceRequest) XXX_Merge

func (m *UpdateNamespaceRequest) XXX_Merge(src proto.Message)

func (*UpdateNamespaceRequest) XXX_Size

func (m *UpdateNamespaceRequest) XXX_Size() int

func (*UpdateNamespaceRequest) XXX_Unmarshal

func (m *UpdateNamespaceRequest) XXX_Unmarshal(b []byte) error

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           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

The request message for [RegistrationService.UpdateService][google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateService].

func (*UpdateServiceRequest) Descriptor

func (*UpdateServiceRequest) Descriptor() ([]byte, []int)

func (*UpdateServiceRequest) GetService

func (m *UpdateServiceRequest) GetService() *Service

func (*UpdateServiceRequest) GetUpdateMask

func (m *UpdateServiceRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateServiceRequest) ProtoMessage

func (*UpdateServiceRequest) ProtoMessage()

func (*UpdateServiceRequest) Reset

func (m *UpdateServiceRequest) Reset()

func (*UpdateServiceRequest) String

func (m *UpdateServiceRequest) String() string

func (*UpdateServiceRequest) XXX_DiscardUnknown

func (m *UpdateServiceRequest) XXX_DiscardUnknown()

func (*UpdateServiceRequest) XXX_Marshal

func (m *UpdateServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateServiceRequest) XXX_Merge

func (m *UpdateServiceRequest) XXX_Merge(src proto.Message)

func (*UpdateServiceRequest) XXX_Size

func (m *UpdateServiceRequest) XXX_Size() int

func (*UpdateServiceRequest) XXX_Unmarshal

func (m *UpdateServiceRequest) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL