location

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterLocationsServer

func RegisterLocationsServer(s *grpc.Server, srv LocationsServer)

Types

type GetLocationRequest

type GetLocationRequest struct {
	// Resource name for the location.
	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 [Locations.GetLocation][google.cloud.location.Locations.GetLocation].

func (*GetLocationRequest) Descriptor

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

func (*GetLocationRequest) GetName

func (m *GetLocationRequest) GetName() string

func (*GetLocationRequest) ProtoMessage

func (*GetLocationRequest) ProtoMessage()

func (*GetLocationRequest) Reset

func (m *GetLocationRequest) Reset()

func (*GetLocationRequest) String

func (m *GetLocationRequest) String() string

func (*GetLocationRequest) XXX_DiscardUnknown

func (m *GetLocationRequest) XXX_DiscardUnknown()

func (*GetLocationRequest) XXX_Marshal

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

func (*GetLocationRequest) XXX_Merge

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

func (*GetLocationRequest) XXX_Size

func (m *GetLocationRequest) XXX_Size() int

func (*GetLocationRequest) XXX_Unmarshal

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

type ListLocationsRequest

type ListLocationsRequest struct {
	// The resource that owns the locations collection, if applicable.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The standard list filter.
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// The standard list page size.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The standard list page token.
	PageToken            string   `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].

func (*ListLocationsRequest) Descriptor

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

func (*ListLocationsRequest) GetFilter

func (m *ListLocationsRequest) GetFilter() string

func (*ListLocationsRequest) GetName

func (m *ListLocationsRequest) GetName() string

func (*ListLocationsRequest) GetPageSize

func (m *ListLocationsRequest) GetPageSize() int32

func (*ListLocationsRequest) GetPageToken

func (m *ListLocationsRequest) GetPageToken() string

func (*ListLocationsRequest) ProtoMessage

func (*ListLocationsRequest) ProtoMessage()

func (*ListLocationsRequest) Reset

func (m *ListLocationsRequest) Reset()

func (*ListLocationsRequest) String

func (m *ListLocationsRequest) String() string

func (*ListLocationsRequest) XXX_DiscardUnknown

func (m *ListLocationsRequest) XXX_DiscardUnknown()

func (*ListLocationsRequest) XXX_Marshal

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

func (*ListLocationsRequest) XXX_Merge

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

func (*ListLocationsRequest) XXX_Size

func (m *ListLocationsRequest) XXX_Size() int

func (*ListLocationsRequest) XXX_Unmarshal

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

type ListLocationsResponse

type ListLocationsResponse struct {
	// A list of locations that matches the specified filter in the request.
	Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
	// The standard List next-page token.
	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 [Locations.ListLocations][google.cloud.location.Locations.ListLocations].

func (*ListLocationsResponse) Descriptor

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

func (*ListLocationsResponse) GetLocations

func (m *ListLocationsResponse) GetLocations() []*Location

func (*ListLocationsResponse) GetNextPageToken

func (m *ListLocationsResponse) GetNextPageToken() string

func (*ListLocationsResponse) ProtoMessage

func (*ListLocationsResponse) ProtoMessage()

func (*ListLocationsResponse) Reset

func (m *ListLocationsResponse) Reset()

func (*ListLocationsResponse) String

func (m *ListLocationsResponse) String() string

func (*ListLocationsResponse) XXX_DiscardUnknown

func (m *ListLocationsResponse) XXX_DiscardUnknown()

func (*ListLocationsResponse) XXX_Marshal

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

func (*ListLocationsResponse) XXX_Merge

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

func (*ListLocationsResponse) XXX_Size

func (m *ListLocationsResponse) XXX_Size() int

func (*ListLocationsResponse) XXX_Unmarshal

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

type Location

type Location struct {
	// Resource name for the location, which may vary between implementations.
	// For example: `"projects/example-project/locations/us-east1"`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The canonical id for this location. For example: `"us-east1"`.
	LocationId string `protobuf:"bytes,4,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
	// The friendly name for this location, typically a nearby city name.
	// For example, "Tokyo".
	DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Cross-service attributes for the location. For example
	//
	//     {"cloud.googleapis.com/region": "us-east1"}
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Service-specific metadata. For example the available capacity at the given
	// location.
	Metadata             *any.Any `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A resource that represents Google Cloud Platform location.

func (*Location) Descriptor

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

func (*Location) GetDisplayName

func (m *Location) GetDisplayName() string

func (*Location) GetLabels

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

func (*Location) GetLocationId

func (m *Location) GetLocationId() string

func (*Location) GetMetadata

func (m *Location) GetMetadata() *any.Any

func (*Location) GetName

func (m *Location) GetName() string

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) String

func (m *Location) String() string

func (*Location) XXX_DiscardUnknown

func (m *Location) XXX_DiscardUnknown()

func (*Location) XXX_Marshal

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

func (*Location) XXX_Merge

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

func (*Location) XXX_Size

func (m *Location) XXX_Size() int

func (*Location) XXX_Unmarshal

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

type LocationsClient

type LocationsClient interface {
	// Lists information about the supported locations for this service.
	ListLocations(ctx context.Context, in *ListLocationsRequest, opts ...grpc.CallOption) (*ListLocationsResponse, error)
	// Gets information about a location.
	GetLocation(ctx context.Context, in *GetLocationRequest, opts ...grpc.CallOption) (*Location, error)
}

LocationsClient is the client API for Locations service.

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

func NewLocationsClient

func NewLocationsClient(cc grpc.ClientConnInterface) LocationsClient

type LocationsServer

type LocationsServer interface {
	// Lists information about the supported locations for this service.
	ListLocations(context.Context, *ListLocationsRequest) (*ListLocationsResponse, error)
	// Gets information about a location.
	GetLocation(context.Context, *GetLocationRequest) (*Location, error)
}

LocationsServer is the server API for Locations service.

type UnimplementedLocationsServer

type UnimplementedLocationsServer struct {
}

UnimplementedLocationsServer can be embedded to have forward compatible implementations.

func (*UnimplementedLocationsServer) GetLocation

func (*UnimplementedLocationsServer) ListLocations

Jump to

Keyboard shortcuts

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