Constants
MapManagement_CreateMapConfig_FullMethodName, MapManagement_GetMapConfig_FullMethodName, MapManagement_ListMapConfigs_FullMethodName, MapManagement_UpdateMapConfig_FullMethodName, MapManagement_DeleteMapConfig_FullMethodName, MapManagement_CreateStyleConfig_FullMethodName, MapManagement_GetStyleConfig_FullMethodName, MapManagement_ListStyleConfigs_FullMethodName, MapManagement_UpdateStyleConfig_FullMethodName, MapManagement_DeleteStyleConfig_FullMethodName, MapManagement_CreateMapContextConfig_FullMethodName, MapManagement_GetMapContextConfig_FullMethodName, MapManagement_ListMapContextConfigs_FullMethodName, MapManagement_UpdateMapContextConfig_FullMethodName, MapManagement_DeleteMapContextConfig_FullMethodName
const (
MapManagement_CreateMapConfig_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/CreateMapConfig"
MapManagement_GetMapConfig_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/GetMapConfig"
MapManagement_ListMapConfigs_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/ListMapConfigs"
MapManagement_UpdateMapConfig_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/UpdateMapConfig"
MapManagement_DeleteMapConfig_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/DeleteMapConfig"
MapManagement_CreateStyleConfig_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/CreateStyleConfig"
MapManagement_GetStyleConfig_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/GetStyleConfig"
MapManagement_ListStyleConfigs_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/ListStyleConfigs"
MapManagement_UpdateStyleConfig_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/UpdateStyleConfig"
MapManagement_DeleteStyleConfig_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/DeleteStyleConfig"
MapManagement_CreateMapContextConfig_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/CreateMapContextConfig"
MapManagement_GetMapContextConfig_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/GetMapContextConfig"
MapManagement_ListMapContextConfigs_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/ListMapContextConfigs"
MapManagement_UpdateMapContextConfig_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/UpdateMapContextConfig"
MapManagement_DeleteMapContextConfig_FullMethodName = "/google.maps.mapmanagement.v2beta.MapManagement/DeleteMapContextConfig"
)Variables
StyleConfigView_name, StyleConfigView_value
var (
StyleConfigView_name = map[int32]string{
0: "STYLE_CONFIG_VIEW_UNSPECIFIED",
1: "FULL",
2: "METADATA_ONLY",
}
StyleConfigView_value = map[string]int32{
"STYLE_CONFIG_VIEW_UNSPECIFIED": 0,
"FULL": 1,
"METADATA_ONLY": 2,
}
)Enum value maps for StyleConfigView.
MapRenderingType_name, MapRenderingType_value
var (
MapRenderingType_name = map[int32]string{
0: "RASTER",
1: "VECTOR",
}
MapRenderingType_value = map[string]int32{
"RASTER": 0,
"VECTOR": 1,
}
)Enum value maps for MapRenderingType.
MapFeatures_SimpleFeature_name, MapFeatures_SimpleFeature_value
var (
MapFeatures_SimpleFeature_name = map[int32]string{
0: "SIMPLE_FEATURE_UNSPECIFIED",
1: "FLATTEN_BUILDINGS",
2: "ICONIC_ICONS",
}
MapFeatures_SimpleFeature_value = map[string]int32{
"SIMPLE_FEATURE_UNSPECIFIED": 0,
"FLATTEN_BUILDINGS": 1,
"ICONIC_ICONS": 2,
}
)Enum value maps for MapFeatures_SimpleFeature.
MapContextConfig_MapVariant_name, MapContextConfig_MapVariant_value
var (
MapContextConfig_MapVariant_name = map[int32]string{
0: "ROADMAP",
1: "ROADMAP_DARK",
2: "SATELLITE",
3: "TERRAIN",
4: "TERRAIN_DARK",
5: "NAVIGATION",
6: "NAVIGATION_LOW_LIGHT",
7: "TRANSIT",
8: "TRANSIT_DARK",
9: "ABSTRACT3D",
10: "PHOTOREALISTIC3D",
}
MapContextConfig_MapVariant_value = map[string]int32{
"ROADMAP": 0,
"ROADMAP_DARK": 1,
"SATELLITE": 2,
"TERRAIN": 3,
"TERRAIN_DARK": 4,
"NAVIGATION": 5,
"NAVIGATION_LOW_LIGHT": 6,
"TRANSIT": 7,
"TRANSIT_DARK": 8,
"ABSTRACT3D": 9,
"PHOTOREALISTIC3D": 10,
}
)Enum value maps for MapContextConfig_MapVariant.
File_google_maps_mapmanagement_v2beta_map_management_service_proto
var File_google_maps_mapmanagement_v2beta_map_management_service_proto protoreflect.FileDescriptorMapManagement_ServiceDesc
var MapManagement_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.maps.mapmanagement.v2beta.MapManagement",
HandlerType: (*MapManagementServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateMapConfig",
Handler: _MapManagement_CreateMapConfig_Handler,
},
{
MethodName: "GetMapConfig",
Handler: _MapManagement_GetMapConfig_Handler,
},
{
MethodName: "ListMapConfigs",
Handler: _MapManagement_ListMapConfigs_Handler,
},
{
MethodName: "UpdateMapConfig",
Handler: _MapManagement_UpdateMapConfig_Handler,
},
{
MethodName: "DeleteMapConfig",
Handler: _MapManagement_DeleteMapConfig_Handler,
},
{
MethodName: "CreateStyleConfig",
Handler: _MapManagement_CreateStyleConfig_Handler,
},
{
MethodName: "GetStyleConfig",
Handler: _MapManagement_GetStyleConfig_Handler,
},
{
MethodName: "ListStyleConfigs",
Handler: _MapManagement_ListStyleConfigs_Handler,
},
{
MethodName: "UpdateStyleConfig",
Handler: _MapManagement_UpdateStyleConfig_Handler,
},
{
MethodName: "DeleteStyleConfig",
Handler: _MapManagement_DeleteStyleConfig_Handler,
},
{
MethodName: "CreateMapContextConfig",
Handler: _MapManagement_CreateMapContextConfig_Handler,
},
{
MethodName: "GetMapContextConfig",
Handler: _MapManagement_GetMapContextConfig_Handler,
},
{
MethodName: "ListMapContextConfigs",
Handler: _MapManagement_ListMapContextConfigs_Handler,
},
{
MethodName: "UpdateMapContextConfig",
Handler: _MapManagement_UpdateMapContextConfig_Handler,
},
{
MethodName: "DeleteMapContextConfig",
Handler: _MapManagement_DeleteMapContextConfig_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/maps/mapmanagement/v2beta/map_management_service.proto",
}MapManagement_ServiceDesc is the grpc.ServiceDesc for MapManagement service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterMapManagementServer
func RegisterMapManagementServer(s grpc.ServiceRegistrar, srv MapManagementServer)CreateMapConfigRequest
type CreateMapConfigRequest struct {
// Required. Parent project that will own the MapConfig.
// Format: `projects/{$my-project-id}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The MapConfig to create.
MapConfig *MapConfig `protobuf:"bytes,2,opt,name=map_config,json=mapConfig,proto3" json:"map_config,omitempty"`
// contains filtered or unexported fields
}Request to create a MapConfig.
func (*CreateMapConfigRequest) Descriptor
func (*CreateMapConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateMapConfigRequest.ProtoReflect.Descriptor instead.
func (*CreateMapConfigRequest) GetMapConfig
func (x *CreateMapConfigRequest) GetMapConfig() *MapConfigfunc (*CreateMapConfigRequest) GetParent
func (x *CreateMapConfigRequest) GetParent() stringfunc (*CreateMapConfigRequest) ProtoMessage
func (*CreateMapConfigRequest) ProtoMessage()func (*CreateMapConfigRequest) ProtoReflect
func (x *CreateMapConfigRequest) ProtoReflect() protoreflect.Messagefunc (*CreateMapConfigRequest) Reset
func (x *CreateMapConfigRequest) Reset()func (*CreateMapConfigRequest) String
func (x *CreateMapConfigRequest) String() stringCreateMapContextConfigRequest
type CreateMapContextConfigRequest struct {
// Required. Parent MapConfig that will own the MapContextConfig.
// Format: `projects/{project}/mapConfigs/{map_config}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The MapContextConfig to create.
MapContextConfig *MapContextConfig `protobuf:"bytes,2,opt,name=map_context_config,json=mapContextConfig,proto3" json:"map_context_config,omitempty"`
// contains filtered or unexported fields
}Request to create a MapContextConfig.
func (*CreateMapContextConfigRequest) Descriptor
func (*CreateMapContextConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateMapContextConfigRequest.ProtoReflect.Descriptor instead.
func (*CreateMapContextConfigRequest) GetMapContextConfig
func (x *CreateMapContextConfigRequest) GetMapContextConfig() *MapContextConfigfunc (*CreateMapContextConfigRequest) GetParent
func (x *CreateMapContextConfigRequest) GetParent() stringfunc (*CreateMapContextConfigRequest) ProtoMessage
func (*CreateMapContextConfigRequest) ProtoMessage()func (*CreateMapContextConfigRequest) ProtoReflect
func (x *CreateMapContextConfigRequest) ProtoReflect() protoreflect.Messagefunc (*CreateMapContextConfigRequest) Reset
func (x *CreateMapContextConfigRequest) Reset()func (*CreateMapContextConfigRequest) String
func (x *CreateMapContextConfigRequest) String() stringCreateStyleConfigRequest
type CreateStyleConfigRequest struct {
// Required. Parent project that will own the StyleConfig.
// Format: `projects/{project}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The StyleConfig to create.
StyleConfig *StyleConfig `protobuf:"bytes,2,opt,name=style_config,json=styleConfig,proto3" json:"style_config,omitempty"`
// contains filtered or unexported fields
}Request to create a StyleConfig.
func (*CreateStyleConfigRequest) Descriptor
func (*CreateStyleConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateStyleConfigRequest.ProtoReflect.Descriptor instead.
func (*CreateStyleConfigRequest) GetParent
func (x *CreateStyleConfigRequest) GetParent() stringfunc (*CreateStyleConfigRequest) GetStyleConfig
func (x *CreateStyleConfigRequest) GetStyleConfig() *StyleConfigfunc (*CreateStyleConfigRequest) ProtoMessage
func (*CreateStyleConfigRequest) ProtoMessage()func (*CreateStyleConfigRequest) ProtoReflect
func (x *CreateStyleConfigRequest) ProtoReflect() protoreflect.Messagefunc (*CreateStyleConfigRequest) Reset
func (x *CreateStyleConfigRequest) Reset()func (*CreateStyleConfigRequest) String
func (x *CreateStyleConfigRequest) String() stringDeleteMapConfigRequest
type DeleteMapConfigRequest struct {
// Required. Resource name of the MapConfig to delete.
// Format: `projects/{project}/mapConfigs/{map_config}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. If set to true, any MapContextConfigs from this MapConfig will
// also be deleted. (Otherwise, the request will only work if the MapConfig
// has no MapContextConfigs.)
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
// contains filtered or unexported fields
}Request to delete a MapConfig. If the MapConfig has any child MapContextConfigs, those will be deleted as well.
func (*DeleteMapConfigRequest) Descriptor
func (*DeleteMapConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteMapConfigRequest.ProtoReflect.Descriptor instead.
func (*DeleteMapConfigRequest) GetForce
func (x *DeleteMapConfigRequest) GetForce() boolfunc (*DeleteMapConfigRequest) GetName
func (x *DeleteMapConfigRequest) GetName() stringfunc (*DeleteMapConfigRequest) ProtoMessage
func (*DeleteMapConfigRequest) ProtoMessage()func (*DeleteMapConfigRequest) ProtoReflect
func (x *DeleteMapConfigRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteMapConfigRequest) Reset
func (x *DeleteMapConfigRequest) Reset()func (*DeleteMapConfigRequest) String
func (x *DeleteMapConfigRequest) String() stringDeleteMapContextConfigRequest
type DeleteMapContextConfigRequest struct {
// Required. Resource name of the MapContextConfig to delete.
// Format:
// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request to delete a MapContextConfig.
func (*DeleteMapContextConfigRequest) Descriptor
func (*DeleteMapContextConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteMapContextConfigRequest.ProtoReflect.Descriptor instead.
func (*DeleteMapContextConfigRequest) GetName
func (x *DeleteMapContextConfigRequest) GetName() stringfunc (*DeleteMapContextConfigRequest) ProtoMessage
func (*DeleteMapContextConfigRequest) ProtoMessage()func (*DeleteMapContextConfigRequest) ProtoReflect
func (x *DeleteMapContextConfigRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteMapContextConfigRequest) Reset
func (x *DeleteMapContextConfigRequest) Reset()func (*DeleteMapContextConfigRequest) String
func (x *DeleteMapContextConfigRequest) String() stringDeleteStyleConfigRequest
type DeleteStyleConfigRequest struct {
// Required. Resource name of the StyleConfig to delete.
// Format: `projects/{project}/styleConfigs/{style_config}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request to delete a StyleConfig.
func (*DeleteStyleConfigRequest) Descriptor
func (*DeleteStyleConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteStyleConfigRequest.ProtoReflect.Descriptor instead.
func (*DeleteStyleConfigRequest) GetName
func (x *DeleteStyleConfigRequest) GetName() stringfunc (*DeleteStyleConfigRequest) ProtoMessage
func (*DeleteStyleConfigRequest) ProtoMessage()func (*DeleteStyleConfigRequest) ProtoReflect
func (x *DeleteStyleConfigRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteStyleConfigRequest) Reset
func (x *DeleteStyleConfigRequest) Reset()func (*DeleteStyleConfigRequest) String
func (x *DeleteStyleConfigRequest) String() stringGetMapConfigRequest
type GetMapConfigRequest struct {
// Required. Resource name of the MapConfig.
// Format: `projects/{project}/mapConfigs/{map_config}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request to get a MapConfig.
func (*GetMapConfigRequest) Descriptor
func (*GetMapConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use GetMapConfigRequest.ProtoReflect.Descriptor instead.
func (*GetMapConfigRequest) GetName
func (x *GetMapConfigRequest) GetName() stringfunc (*GetMapConfigRequest) ProtoMessage
func (*GetMapConfigRequest) ProtoMessage()func (*GetMapConfigRequest) ProtoReflect
func (x *GetMapConfigRequest) ProtoReflect() protoreflect.Messagefunc (*GetMapConfigRequest) Reset
func (x *GetMapConfigRequest) Reset()func (*GetMapConfigRequest) String
func (x *GetMapConfigRequest) String() stringGetMapContextConfigRequest
type GetMapContextConfigRequest struct {
// Required. Resource name of the MapContextConfig.
// Format:
// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request to get a MapContextConfig.
func (*GetMapContextConfigRequest) Descriptor
func (*GetMapContextConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use GetMapContextConfigRequest.ProtoReflect.Descriptor instead.
func (*GetMapContextConfigRequest) GetName
func (x *GetMapContextConfigRequest) GetName() stringfunc (*GetMapContextConfigRequest) ProtoMessage
func (*GetMapContextConfigRequest) ProtoMessage()func (*GetMapContextConfigRequest) ProtoReflect
func (x *GetMapContextConfigRequest) ProtoReflect() protoreflect.Messagefunc (*GetMapContextConfigRequest) Reset
func (x *GetMapContextConfigRequest) Reset()func (*GetMapContextConfigRequest) String
func (x *GetMapContextConfigRequest) String() stringGetStyleConfigRequest
type GetStyleConfigRequest struct {
// Required. Resource name of the StyleConfig.
// Format: `projects/{project}/styleConfigs/{style_config}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request to get a StyleConfig.
func (*GetStyleConfigRequest) Descriptor
func (*GetStyleConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use GetStyleConfigRequest.ProtoReflect.Descriptor instead.
func (*GetStyleConfigRequest) GetName
func (x *GetStyleConfigRequest) GetName() stringfunc (*GetStyleConfigRequest) ProtoMessage
func (*GetStyleConfigRequest) ProtoMessage()func (*GetStyleConfigRequest) ProtoReflect
func (x *GetStyleConfigRequest) ProtoReflect() protoreflect.Messagefunc (*GetStyleConfigRequest) Reset
func (x *GetStyleConfigRequest) Reset()func (*GetStyleConfigRequest) String
func (x *GetStyleConfigRequest) String() stringListMapConfigsRequest
type ListMapConfigsRequest struct {
// Required. Parent project that owns the MapConfigs.
// Format: `projects/{project}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of MapConfigs to return. The service may
// return fewer than this value. If unspecified, at most 50 MapConfigs will be
// returned. The maximum value is 1000; values above 1000 will be coerced to
// 1000. CURRENTLY UNSUPPORTED.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListMapConfigs` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListMapConfigs` must
// match the call that provided the page token.
// CURRENTLY UNSUPPORTED.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request to list MapConfigs.
func (*ListMapConfigsRequest) Descriptor
func (*ListMapConfigsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListMapConfigsRequest.ProtoReflect.Descriptor instead.
func (*ListMapConfigsRequest) GetPageSize
func (x *ListMapConfigsRequest) GetPageSize() int32func (*ListMapConfigsRequest) GetPageToken
func (x *ListMapConfigsRequest) GetPageToken() stringfunc (*ListMapConfigsRequest) GetParent
func (x *ListMapConfigsRequest) GetParent() stringfunc (*ListMapConfigsRequest) ProtoMessage
func (*ListMapConfigsRequest) ProtoMessage()func (*ListMapConfigsRequest) ProtoReflect
func (x *ListMapConfigsRequest) ProtoReflect() protoreflect.Messagefunc (*ListMapConfigsRequest) Reset
func (x *ListMapConfigsRequest) Reset()func (*ListMapConfigsRequest) String
func (x *ListMapConfigsRequest) String() stringListMapConfigsResponse
type ListMapConfigsResponse struct {
// The list of MapConfigs.
MapConfigs []*MapConfig `protobuf:"bytes,1,rep,name=map_configs,json=mapConfigs,proto3" json:"map_configs,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
// CURRENTLY UNSUPPORTED.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response to list MapConfigs.
func (*ListMapConfigsResponse) Descriptor
func (*ListMapConfigsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListMapConfigsResponse.ProtoReflect.Descriptor instead.
func (*ListMapConfigsResponse) GetMapConfigs
func (x *ListMapConfigsResponse) GetMapConfigs() []*MapConfigfunc (*ListMapConfigsResponse) GetNextPageToken
func (x *ListMapConfigsResponse) GetNextPageToken() stringfunc (*ListMapConfigsResponse) ProtoMessage
func (*ListMapConfigsResponse) ProtoMessage()func (*ListMapConfigsResponse) ProtoReflect
func (x *ListMapConfigsResponse) ProtoReflect() protoreflect.Messagefunc (*ListMapConfigsResponse) Reset
func (x *ListMapConfigsResponse) Reset()func (*ListMapConfigsResponse) String
func (x *ListMapConfigsResponse) String() stringListMapContextConfigsRequest
type ListMapContextConfigsRequest struct {
// Required. Parent MapConfig that owns the MapContextConfigs.
// Format: `projects/{project}/mapConfigs/{map_config}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of MapContextConfigs to return. The service
// may return fewer than this value. If unspecified, at most 50
// MapContextConfigs will be returned. The maximum value is 1000; values above
// 1000 will be coerced to 1000. CURRENTLY UNSUPPORTED.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListMapContextConfigs`
// call. Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListMapContextConfigs`
// must match the call that provided the page token. CURRENTLY UNSUPPORTED.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request to list MapContextConfigs.
func (*ListMapContextConfigsRequest) Descriptor
func (*ListMapContextConfigsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListMapContextConfigsRequest.ProtoReflect.Descriptor instead.
func (*ListMapContextConfigsRequest) GetPageSize
func (x *ListMapContextConfigsRequest) GetPageSize() int32func (*ListMapContextConfigsRequest) GetPageToken
func (x *ListMapContextConfigsRequest) GetPageToken() stringfunc (*ListMapContextConfigsRequest) GetParent
func (x *ListMapContextConfigsRequest) GetParent() stringfunc (*ListMapContextConfigsRequest) ProtoMessage
func (*ListMapContextConfigsRequest) ProtoMessage()func (*ListMapContextConfigsRequest) ProtoReflect
func (x *ListMapContextConfigsRequest) ProtoReflect() protoreflect.Messagefunc (*ListMapContextConfigsRequest) Reset
func (x *ListMapContextConfigsRequest) Reset()func (*ListMapContextConfigsRequest) String
func (x *ListMapContextConfigsRequest) String() stringListMapContextConfigsResponse
type ListMapContextConfigsResponse struct {
// The MapContextConfigs.
MapContextConfigs []*MapContextConfig `protobuf:"bytes,1,rep,name=map_context_configs,json=mapContextConfigs,proto3" json:"map_context_configs,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
// CURRENTLY UNSUPPORTED.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response to list MapContextConfigs.
func (*ListMapContextConfigsResponse) Descriptor
func (*ListMapContextConfigsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListMapContextConfigsResponse.ProtoReflect.Descriptor instead.
func (*ListMapContextConfigsResponse) GetMapContextConfigs
func (x *ListMapContextConfigsResponse) GetMapContextConfigs() []*MapContextConfigfunc (*ListMapContextConfigsResponse) GetNextPageToken
func (x *ListMapContextConfigsResponse) GetNextPageToken() stringfunc (*ListMapContextConfigsResponse) ProtoMessage
func (*ListMapContextConfigsResponse) ProtoMessage()func (*ListMapContextConfigsResponse) ProtoReflect
func (x *ListMapContextConfigsResponse) ProtoReflect() protoreflect.Messagefunc (*ListMapContextConfigsResponse) Reset
func (x *ListMapContextConfigsResponse) Reset()func (*ListMapContextConfigsResponse) String
func (x *ListMapContextConfigsResponse) String() stringListStyleConfigsRequest
type ListStyleConfigsRequest struct {
// Required. Parent project that owns the StyleConfigs.
// Format: `projects/{project}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of StyleConfigs to return. The service may
// return fewer than this value. If unspecified, at most 50 StyleConfigs will
// be returned. The maximum value is 1000; values above 1000 will be coerced
// to 1000. CURRENTLY UNSUPPORTED.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListStyleConfigs` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListStyleConfigs` must
// match the call that provided the page token.
// CURRENTLY UNSUPPORTED.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Filter expression for the ListStyleConfigs call.
// Currently only supports filtering by display_name.
// For example: `display_name="My StyleConfig"` will return all StyleConfigs
// with the display name "My StyleConfig".
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. The subset of the StyleConfig to return. If this is unset, the
// default behavior is to return the FULL view.
View StyleConfigView `protobuf:"varint,5,opt,name=view,proto3,enum=google.maps.mapmanagement.v2beta.StyleConfigView" json:"view,omitempty"`
// contains filtered or unexported fields
}Request to list StyleConfigs.
func (*ListStyleConfigsRequest) Descriptor
func (*ListStyleConfigsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListStyleConfigsRequest.ProtoReflect.Descriptor instead.
func (*ListStyleConfigsRequest) GetFilter
func (x *ListStyleConfigsRequest) GetFilter() stringfunc (*ListStyleConfigsRequest) GetPageSize
func (x *ListStyleConfigsRequest) GetPageSize() int32func (*ListStyleConfigsRequest) GetPageToken
func (x *ListStyleConfigsRequest) GetPageToken() stringfunc (*ListStyleConfigsRequest) GetParent
func (x *ListStyleConfigsRequest) GetParent() stringfunc (*ListStyleConfigsRequest) GetView
func (x *ListStyleConfigsRequest) GetView() StyleConfigViewfunc (*ListStyleConfigsRequest) ProtoMessage
func (*ListStyleConfigsRequest) ProtoMessage()func (*ListStyleConfigsRequest) ProtoReflect
func (x *ListStyleConfigsRequest) ProtoReflect() protoreflect.Messagefunc (*ListStyleConfigsRequest) Reset
func (x *ListStyleConfigsRequest) Reset()func (*ListStyleConfigsRequest) String
func (x *ListStyleConfigsRequest) String() stringListStyleConfigsResponse
type ListStyleConfigsResponse struct {
// The StyleConfigs.
StyleConfigs []*StyleConfig `protobuf:"bytes,1,rep,name=style_configs,json=styleConfigs,proto3" json:"style_configs,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
// CURRENTLY UNSUPPORTED.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response to list StyleConfigs.
func (*ListStyleConfigsResponse) Descriptor
func (*ListStyleConfigsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListStyleConfigsResponse.ProtoReflect.Descriptor instead.
func (*ListStyleConfigsResponse) GetNextPageToken
func (x *ListStyleConfigsResponse) GetNextPageToken() stringfunc (*ListStyleConfigsResponse) GetStyleConfigs
func (x *ListStyleConfigsResponse) GetStyleConfigs() []*StyleConfigfunc (*ListStyleConfigsResponse) ProtoMessage
func (*ListStyleConfigsResponse) ProtoMessage()func (*ListStyleConfigsResponse) ProtoReflect
func (x *ListStyleConfigsResponse) ProtoReflect() protoreflect.Messagefunc (*ListStyleConfigsResponse) Reset
func (x *ListStyleConfigsResponse) Reset()func (*ListStyleConfigsResponse) String
func (x *ListStyleConfigsResponse) String() stringMapConfig
type MapConfig struct {
// Output only. Identifier. Resource name of this MapConfig.
// For example: "projects/my-project-123/mapConfigs/234".
// Output only.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The display name of this MapConfig, as specified by the user.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. The description of this MapConfig, as specified by the user.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The Map ID of this MapConfig, used to identify the map in
// client applications. This read-only field is generated when the MapConfig
// is created. Output only.
MapId string `protobuf:"bytes,4,opt,name=map_id,json=mapId,proto3" json:"map_id,omitempty"`
// Optional. The Map Features that apply to this Map Config.
MapFeatures *MapFeatures `protobuf:"bytes,5,opt,name=map_features,json=mapFeatures,proto3" json:"map_features,omitempty"`
// Output only. Denotes the creation time of the Map Config. Output only.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3,oneof" json:"create_time,omitempty"`
// Output only. Denotes the last update time of the Map Config. Output only.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3,oneof" json:"update_time,omitempty"`
// Optional. Represents the Map Type of the MapConfig. If this is unset, the
// default behavior is to use the raster map type.
MapType MapRenderingType `protobuf:"varint,8,opt,name=map_type,json=mapType,proto3,enum=google.maps.mapmanagement.v2beta.MapRenderingType" json:"map_type,omitempty"`
// contains filtered or unexported fields
}Represents a single map in a Maps API client application. The MapConfig is the parent resource of MapContextConfigs and enables custom styling in SDKs (Mobile/Web). A MapConfig can have multiple MapContextConfigs, each applying styling to specific map variants. Next ID = 9;
func (*MapConfig) Descriptor
Deprecated: Use MapConfig.ProtoReflect.Descriptor instead.
func (*MapConfig) GetCreateTime
func (x *MapConfig) GetCreateTime() *timestamppb.Timestampfunc (*MapConfig) GetDescription
func (*MapConfig) GetDisplayName
func (*MapConfig) GetMapFeatures
func (x *MapConfig) GetMapFeatures() *MapFeaturesfunc (*MapConfig) GetMapId
func (*MapConfig) GetMapType
func (x *MapConfig) GetMapType() MapRenderingTypefunc (*MapConfig) GetName
func (*MapConfig) GetUpdateTime
func (x *MapConfig) GetUpdateTime() *timestamppb.Timestampfunc (*MapConfig) ProtoMessage
func (*MapConfig) ProtoMessage()func (*MapConfig) ProtoReflect
func (x *MapConfig) ProtoReflect() protoreflect.Messagefunc (*MapConfig) Reset
func (x *MapConfig) Reset()func (*MapConfig) String
MapContextConfig
type MapContextConfig struct {
// Output only. Identifier. Resource name of this MapContextConfig.
// For example:
// projects/{project_id}/mapConfigs/{map_id}/mapContextConfigs/{map_context_config_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The MapConfig resource name that this MapContextConfig is
// associated with. Format: projects/{project}/mapConfigs/{map_config}. This
// field is required and cannot be omitted.
MapConfig string `protobuf:"bytes,2,opt,name=map_config,json=mapConfig,proto3" json:"map_config,omitempty"`
// Required. The StyleConfig resource name that is styling this
// MapContextConfig. This field is required and cannot be omitted. Format:
// projects/{project}/styleConfigs/{style_config}
StyleConfig string `protobuf:"bytes,3,opt,name=style_config,json=styleConfig,proto3" json:"style_config,omitempty"`
// Optional. The Dataset resource name that is associated with this
// MapContextConfig. This field is optional and can be omitted. If omitted, no
// datasets will be associated with the MapContextConfig. If a dataset is
// specified, it will be applied to the MapContextConfig. Format:
// projects/{project}/datasets/{dataset}
Dataset []string `protobuf:"bytes,4,rep,name=dataset,proto3" json:"dataset,omitempty"`
// Optional. The user defined human readable name for this MapContextConfig.
Alias string `protobuf:"bytes,5,opt,name=alias,proto3" json:"alias,omitempty"`
// Required. The map variants that this MapContextConfig can be applied to. If
// empty, the MapContextConfig will be default applied to only the ROADMAP map
// variant.
MapVariants []MapContextConfig_MapVariant `protobuf:"varint,6,rep,packed,name=map_variants,json=mapVariants,proto3,enum=google.maps.mapmanagement.v2beta.MapContextConfig_MapVariant" json:"map_variants,omitempty"`
// Output only. Denotes the creation time of the MapContextConfig. Output
// only.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Denotes the last update time of the MapContextConfig. Output
// only.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// contains filtered or unexported fields
}Encapsulates the styling configuration for a map. The MapContextConfig associates styling components, such as a StyleConfig and Datasets, with specific map variants of a MapConfig. When the MapConfig is loaded in an SDK, the styling and dataset information from the MapContextConfig are applied to the specified map variants. Next ID = 10;
func (*MapContextConfig) Descriptor
func (*MapContextConfig) Descriptor() ([]byte, []int)Deprecated: Use MapContextConfig.ProtoReflect.Descriptor instead.
func (*MapContextConfig) GetAlias
func (x *MapContextConfig) GetAlias() stringfunc (*MapContextConfig) GetCreateTime
func (x *MapContextConfig) GetCreateTime() *timestamppb.Timestampfunc (*MapContextConfig) GetDataset
func (x *MapContextConfig) GetDataset() []stringfunc (*MapContextConfig) GetMapConfig
func (x *MapContextConfig) GetMapConfig() stringfunc (*MapContextConfig) GetMapVariants
func (x *MapContextConfig) GetMapVariants() []MapContextConfig_MapVariantfunc (*MapContextConfig) GetName
func (x *MapContextConfig) GetName() stringfunc (*MapContextConfig) GetStyleConfig
func (x *MapContextConfig) GetStyleConfig() stringfunc (*MapContextConfig) GetUpdateTime
func (x *MapContextConfig) GetUpdateTime() *timestamppb.Timestampfunc (*MapContextConfig) ProtoMessage
func (*MapContextConfig) ProtoMessage()func (*MapContextConfig) ProtoReflect
func (x *MapContextConfig) ProtoReflect() protoreflect.Messagefunc (*MapContextConfig) Reset
func (x *MapContextConfig) Reset()func (*MapContextConfig) String
func (x *MapContextConfig) String() stringMapContextConfig_MapVariant
type MapContextConfig_MapVariant int32Possible Map Variants that the MapContextConfig can be applied to. Map Variants are grouped into Light and Dark variants. A Light variant cannot be paired with a Dark variant for the same MapContextConfig. The Light Variants are: ROADMAP, SATELLITE, TERRAIN, NAVIGATION, TRANSIT, ABSTRACT3D, PHOTOREALISTIC3D. The Dark Variants are: ROADMAP_DARK, NAVIGATION_LOW_LIGHT, TERRAIN_DARK, TRANSIT_DARK.
For example, the following is a valid pairing: {MapContextConfig 1: [ROADMAP, NAVIGATION]} {MapContextConfig 2: [ROADMAP_DARK, NAVIGATION_LOW_LIGHT]}
The following is an invalid pairing: {MapContextConfig 1: [ROADMAP, ROADMAP_DARK]}
MapContextConfig_ROADMAP, MapContextConfig_ROADMAP_DARK, MapContextConfig_SATELLITE, MapContextConfig_TERRAIN, MapContextConfig_TERRAIN_DARK, MapContextConfig_NAVIGATION, MapContextConfig_NAVIGATION_LOW_LIGHT, MapContextConfig_TRANSIT, MapContextConfig_TRANSIT_DARK, MapContextConfig_ABSTRACT3D, MapContextConfig_PHOTOREALISTIC3D
const (
// The default roadmap map type. If no map variants are specified in a
// MapContextConfig, this variant is used by default.
MapContextConfig_ROADMAP MapContextConfig_MapVariant = 0
// A dark version of the roadmap map type.
MapContextConfig_ROADMAP_DARK MapContextConfig_MapVariant = 1
// Satellite imagery.
MapContextConfig_SATELLITE MapContextConfig_MapVariant = 2
// Terrain map type.
MapContextConfig_TERRAIN MapContextConfig_MapVariant = 3
// A dark version of the terrain map type.
MapContextConfig_TERRAIN_DARK MapContextConfig_MapVariant = 4
// Navigation map type.
MapContextConfig_NAVIGATION MapContextConfig_MapVariant = 5
// A low light version of the navigation map type.
MapContextConfig_NAVIGATION_LOW_LIGHT MapContextConfig_MapVariant = 6
// Transit map type.
MapContextConfig_TRANSIT MapContextConfig_MapVariant = 7
// A dark version of the transit map type.
MapContextConfig_TRANSIT_DARK MapContextConfig_MapVariant = 8
// Abstract 3D map type.
MapContextConfig_ABSTRACT3D MapContextConfig_MapVariant = 9
// Photorealistic 3D map type.
MapContextConfig_PHOTOREALISTIC3D MapContextConfig_MapVariant = 10
)func (MapContextConfig_MapVariant) Descriptor
func (MapContextConfig_MapVariant) Descriptor() protoreflect.EnumDescriptorfunc (MapContextConfig_MapVariant) Enum
func (x MapContextConfig_MapVariant) Enum() *MapContextConfig_MapVariantfunc (MapContextConfig_MapVariant) EnumDescriptor
func (MapContextConfig_MapVariant) EnumDescriptor() ([]byte, []int)Deprecated: Use MapContextConfig_MapVariant.Descriptor instead.
func (MapContextConfig_MapVariant) Number
func (x MapContextConfig_MapVariant) Number() protoreflect.EnumNumberfunc (MapContextConfig_MapVariant) String
func (x MapContextConfig_MapVariant) String() stringfunc (MapContextConfig_MapVariant) Type
func (MapContextConfig_MapVariant) Type() protoreflect.EnumTypeMapFeatures
type MapFeatures struct {
// Optional. The visual feature to use for this map.
SimpleFeatures []MapFeatures_SimpleFeature `protobuf:"varint,1,rep,packed,name=simple_features,json=simpleFeatures,proto3,enum=google.maps.mapmanagement.v2beta.MapFeatures_SimpleFeature" json:"simple_features,omitempty"`
// Optional. POI Boost level, where 0 denotes no boostings and negative values
// denotes de-boosting. Boosted POIs are shown at lower zoom than default and
// vice versa de-boosted. Currently supports 2 levels of boosting, so the
// level is clamped to [-2, 2]. If not specified, the POI density defined in
// the style sheet will be used if it exists. Otherwise, no POI density will
// be applied.
PoiBoostLevel *int32 `protobuf:"varint,2,opt,name=poi_boost_level,json=poiBoostLevel,proto3,oneof" json:"poi_boost_level,omitempty"`
// contains filtered or unexported fields
}Represents a collection of map features that apply to a MapConfig. Features set on a MapConfig are inherited by all of its child MapContextConfigs. Next ID = 3;
func (*MapFeatures) Descriptor
func (*MapFeatures) Descriptor() ([]byte, []int)Deprecated: Use MapFeatures.ProtoReflect.Descriptor instead.
func (*MapFeatures) GetPoiBoostLevel
func (x *MapFeatures) GetPoiBoostLevel() int32func (*MapFeatures) GetSimpleFeatures
func (x *MapFeatures) GetSimpleFeatures() []MapFeatures_SimpleFeaturefunc (*MapFeatures) ProtoMessage
func (*MapFeatures) ProtoMessage()func (*MapFeatures) ProtoReflect
func (x *MapFeatures) ProtoReflect() protoreflect.Messagefunc (*MapFeatures) Reset
func (x *MapFeatures) Reset()func (*MapFeatures) String
func (x *MapFeatures) String() stringMapFeatures_SimpleFeature
type MapFeatures_SimpleFeature int32This represents the set of map features that affect the intrinsic structure of the map.
MapFeatures_SIMPLE_FEATURE_UNSPECIFIED, MapFeatures_FLATTEN_BUILDINGS, MapFeatures_ICONIC_ICONS
const (
// Unspecified visual feature.
MapFeatures_SIMPLE_FEATURE_UNSPECIFIED MapFeatures_SimpleFeature = 0
// Flattens all buildings in the map.
MapFeatures_FLATTEN_BUILDINGS MapFeatures_SimpleFeature = 1
// Influences how icons are rendered.
MapFeatures_ICONIC_ICONS MapFeatures_SimpleFeature = 2
)func (MapFeatures_SimpleFeature) Descriptor
func (MapFeatures_SimpleFeature) Descriptor() protoreflect.EnumDescriptorfunc (MapFeatures_SimpleFeature) Enum
func (x MapFeatures_SimpleFeature) Enum() *MapFeatures_SimpleFeaturefunc (MapFeatures_SimpleFeature) EnumDescriptor
func (MapFeatures_SimpleFeature) EnumDescriptor() ([]byte, []int)Deprecated: Use MapFeatures_SimpleFeature.Descriptor instead.
func (MapFeatures_SimpleFeature) Number
func (x MapFeatures_SimpleFeature) Number() protoreflect.EnumNumberfunc (MapFeatures_SimpleFeature) String
func (x MapFeatures_SimpleFeature) String() stringfunc (MapFeatures_SimpleFeature) Type
func (MapFeatures_SimpleFeature) Type() protoreflect.EnumTypeMapManagementClient
type MapManagementClient interface {
// Creates a MapConfig in a project.
CreateMapConfig(ctx context.Context, in *CreateMapConfigRequest, opts ...grpc.CallOption) (*MapConfig, error)
// Gets a MapConfig.
GetMapConfig(ctx context.Context, in *GetMapConfigRequest, opts ...grpc.CallOption) (*MapConfig, error)
// Lists MapConfigs for a project.
ListMapConfigs(ctx context.Context, in *ListMapConfigsRequest, opts ...grpc.CallOption) (*ListMapConfigsResponse, error)
// Updates a MapConfig.
UpdateMapConfig(ctx context.Context, in *UpdateMapConfigRequest, opts ...grpc.CallOption) (*MapConfig, error)
// Deletes a MapConfig.
DeleteMapConfig(ctx context.Context, in *DeleteMapConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Creates a StyleConfig.
CreateStyleConfig(ctx context.Context, in *CreateStyleConfigRequest, opts ...grpc.CallOption) (*StyleConfig, error)
// Gets a StyleConfig.
GetStyleConfig(ctx context.Context, in *GetStyleConfigRequest, opts ...grpc.CallOption) (*StyleConfig, error)
// Lists StyleConfigs.
ListStyleConfigs(ctx context.Context, in *ListStyleConfigsRequest, opts ...grpc.CallOption) (*ListStyleConfigsResponse, error)
// Updates a StyleConfig.
UpdateStyleConfig(ctx context.Context, in *UpdateStyleConfigRequest, opts ...grpc.CallOption) (*StyleConfig, error)
// Deletes a StyleConfig.
DeleteStyleConfig(ctx context.Context, in *DeleteStyleConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Creates a MapContextConfig.
CreateMapContextConfig(ctx context.Context, in *CreateMapContextConfigRequest, opts ...grpc.CallOption) (*MapContextConfig, error)
// Gets a MapContextConfig.
GetMapContextConfig(ctx context.Context, in *GetMapContextConfigRequest, opts ...grpc.CallOption) (*MapContextConfig, error)
// Lists MapContextConfigs.
ListMapContextConfigs(ctx context.Context, in *ListMapContextConfigsRequest, opts ...grpc.CallOption) (*ListMapContextConfigsResponse, error)
// Updates a MapContextConfig.
UpdateMapContextConfig(ctx context.Context, in *UpdateMapContextConfigRequest, opts ...grpc.CallOption) (*MapContextConfig, error)
// Deletes a MapContextConfig.
DeleteMapContextConfig(ctx context.Context, in *DeleteMapContextConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}MapManagementClient is the client API for MapManagement 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 NewMapManagementClient
func NewMapManagementClient(cc grpc.ClientConnInterface) MapManagementClientMapManagementServer
type MapManagementServer interface {
// Creates a MapConfig in a project.
CreateMapConfig(context.Context, *CreateMapConfigRequest) (*MapConfig, error)
// Gets a MapConfig.
GetMapConfig(context.Context, *GetMapConfigRequest) (*MapConfig, error)
// Lists MapConfigs for a project.
ListMapConfigs(context.Context, *ListMapConfigsRequest) (*ListMapConfigsResponse, error)
// Updates a MapConfig.
UpdateMapConfig(context.Context, *UpdateMapConfigRequest) (*MapConfig, error)
// Deletes a MapConfig.
DeleteMapConfig(context.Context, *DeleteMapConfigRequest) (*emptypb.Empty, error)
// Creates a StyleConfig.
CreateStyleConfig(context.Context, *CreateStyleConfigRequest) (*StyleConfig, error)
// Gets a StyleConfig.
GetStyleConfig(context.Context, *GetStyleConfigRequest) (*StyleConfig, error)
// Lists StyleConfigs.
ListStyleConfigs(context.Context, *ListStyleConfigsRequest) (*ListStyleConfigsResponse, error)
// Updates a StyleConfig.
UpdateStyleConfig(context.Context, *UpdateStyleConfigRequest) (*StyleConfig, error)
// Deletes a StyleConfig.
DeleteStyleConfig(context.Context, *DeleteStyleConfigRequest) (*emptypb.Empty, error)
// Creates a MapContextConfig.
CreateMapContextConfig(context.Context, *CreateMapContextConfigRequest) (*MapContextConfig, error)
// Gets a MapContextConfig.
GetMapContextConfig(context.Context, *GetMapContextConfigRequest) (*MapContextConfig, error)
// Lists MapContextConfigs.
ListMapContextConfigs(context.Context, *ListMapContextConfigsRequest) (*ListMapContextConfigsResponse, error)
// Updates a MapContextConfig.
UpdateMapContextConfig(context.Context, *UpdateMapContextConfigRequest) (*MapContextConfig, error)
// Deletes a MapContextConfig.
DeleteMapContextConfig(context.Context, *DeleteMapContextConfigRequest) (*emptypb.Empty, error)
}MapManagementServer is the server API for MapManagement service. All implementations should embed UnimplementedMapManagementServer for forward compatibility
MapRenderingType
type MapRenderingType int32The type of map to be rendered.
MapRenderingType_RASTER, MapRenderingType_VECTOR
const (
// A map rendered using the raster based implementation. This is the default
// rendering type if not specified.
MapRenderingType_RASTER MapRenderingType = 0
// A map rendered using webGL.
MapRenderingType_VECTOR MapRenderingType = 1
)func (MapRenderingType) Descriptor
func (MapRenderingType) Descriptor() protoreflect.EnumDescriptorfunc (MapRenderingType) Enum
func (x MapRenderingType) Enum() *MapRenderingTypefunc (MapRenderingType) EnumDescriptor
func (MapRenderingType) EnumDescriptor() ([]byte, []int)Deprecated: Use MapRenderingType.Descriptor instead.
func (MapRenderingType) Number
func (x MapRenderingType) Number() protoreflect.EnumNumberfunc (MapRenderingType) String
func (x MapRenderingType) String() stringfunc (MapRenderingType) Type
func (MapRenderingType) Type() protoreflect.EnumTypeStyleConfig
type StyleConfig struct {
// Output only. Identifier. Resource name of this StyleConfig.
// For example: "projects/my-project-123/styleConfigs/234".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The display name of this StyleConfig, as specified by the user.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. The description of this StyleConfig, as specified by the user.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The unique identifier of this style. This is a read-only field
// that is generated when the StyleConfig is created. Output only.
StyleId string `protobuf:"bytes,4,opt,name=style_id,json=styleId,proto3" json:"style_id,omitempty"`
// Optional. JSON representation of the style sheet for this StyleConfig. If
// not specified or if provided as an empty string, the base unstyled Google
// map style will be used. See
// https://developers.google.com/maps/documentation/javascript/cloud-customization/json-reference
// for more details on the acceptable JSON format.
JsonStyleSheet string `protobuf:"bytes,6,opt,name=json_style_sheet,json=jsonStyleSheet,proto3" json:"json_style_sheet,omitempty"`
// Output only. Denotes the creation time of the StyleConfig.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3,oneof" json:"create_time,omitempty"`
// Output only. Denotes the last update time of the StyleConfig.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3,oneof" json:"update_time,omitempty"`
// contains filtered or unexported fields
}Represents a single style in a Maps API client application. The StyleConfig contains the style sheet that defines the visual appearance of the map. Next ID = 9;
func (*StyleConfig) Descriptor
func (*StyleConfig) Descriptor() ([]byte, []int)Deprecated: Use StyleConfig.ProtoReflect.Descriptor instead.
func (*StyleConfig) GetCreateTime
func (x *StyleConfig) GetCreateTime() *timestamppb.Timestampfunc (*StyleConfig) GetDescription
func (x *StyleConfig) GetDescription() stringfunc (*StyleConfig) GetDisplayName
func (x *StyleConfig) GetDisplayName() stringfunc (*StyleConfig) GetJsonStyleSheet
func (x *StyleConfig) GetJsonStyleSheet() stringfunc (*StyleConfig) GetName
func (x *StyleConfig) GetName() stringfunc (*StyleConfig) GetStyleId
func (x *StyleConfig) GetStyleId() stringfunc (*StyleConfig) GetUpdateTime
func (x *StyleConfig) GetUpdateTime() *timestamppb.Timestampfunc (*StyleConfig) ProtoMessage
func (*StyleConfig) ProtoMessage()func (*StyleConfig) ProtoReflect
func (x *StyleConfig) ProtoReflect() protoreflect.Messagefunc (*StyleConfig) Reset
func (x *StyleConfig) Reset()func (*StyleConfig) String
func (x *StyleConfig) String() stringStyleConfigView
type StyleConfigView int32What subset of the StyleConfig to return.
StyleConfigView_STYLE_CONFIG_VIEW_UNSPECIFIED, StyleConfigView_FULL, StyleConfigView_METADATA_ONLY
const (
// Unspecified view.
StyleConfigView_STYLE_CONFIG_VIEW_UNSPECIFIED StyleConfigView = 0
// Include the json_style_sheet in the response.
StyleConfigView_FULL StyleConfigView = 1
// Exclude the json_style_sheet from the response.
StyleConfigView_METADATA_ONLY StyleConfigView = 2
)func (StyleConfigView) Descriptor
func (StyleConfigView) Descriptor() protoreflect.EnumDescriptorfunc (StyleConfigView) Enum
func (x StyleConfigView) Enum() *StyleConfigViewfunc (StyleConfigView) EnumDescriptor
func (StyleConfigView) EnumDescriptor() ([]byte, []int)Deprecated: Use StyleConfigView.Descriptor instead.
func (StyleConfigView) Number
func (x StyleConfigView) Number() protoreflect.EnumNumberfunc (StyleConfigView) String
func (x StyleConfigView) String() stringfunc (StyleConfigView) Type
func (StyleConfigView) Type() protoreflect.EnumTypeUnimplementedMapManagementServer
type UnimplementedMapManagementServer struct {
}UnimplementedMapManagementServer should be embedded to have forward compatible implementations.
func (UnimplementedMapManagementServer) CreateMapConfig
func (UnimplementedMapManagementServer) CreateMapConfig(context.Context, *CreateMapConfigRequest) (*MapConfig, error)func (UnimplementedMapManagementServer) CreateMapContextConfig
func (UnimplementedMapManagementServer) CreateMapContextConfig(context.Context, *CreateMapContextConfigRequest) (*MapContextConfig, error)func (UnimplementedMapManagementServer) CreateStyleConfig
func (UnimplementedMapManagementServer) CreateStyleConfig(context.Context, *CreateStyleConfigRequest) (*StyleConfig, error)func (UnimplementedMapManagementServer) DeleteMapConfig
func (UnimplementedMapManagementServer) DeleteMapConfig(context.Context, *DeleteMapConfigRequest) (*emptypb.Empty, error)func (UnimplementedMapManagementServer) DeleteMapContextConfig
func (UnimplementedMapManagementServer) DeleteMapContextConfig(context.Context, *DeleteMapContextConfigRequest) (*emptypb.Empty, error)func (UnimplementedMapManagementServer) DeleteStyleConfig
func (UnimplementedMapManagementServer) DeleteStyleConfig(context.Context, *DeleteStyleConfigRequest) (*emptypb.Empty, error)func (UnimplementedMapManagementServer) GetMapConfig
func (UnimplementedMapManagementServer) GetMapConfig(context.Context, *GetMapConfigRequest) (*MapConfig, error)func (UnimplementedMapManagementServer) GetMapContextConfig
func (UnimplementedMapManagementServer) GetMapContextConfig(context.Context, *GetMapContextConfigRequest) (*MapContextConfig, error)func (UnimplementedMapManagementServer) GetStyleConfig
func (UnimplementedMapManagementServer) GetStyleConfig(context.Context, *GetStyleConfigRequest) (*StyleConfig, error)func (UnimplementedMapManagementServer) ListMapConfigs
func (UnimplementedMapManagementServer) ListMapConfigs(context.Context, *ListMapConfigsRequest) (*ListMapConfigsResponse, error)func (UnimplementedMapManagementServer) ListMapContextConfigs
func (UnimplementedMapManagementServer) ListMapContextConfigs(context.Context, *ListMapContextConfigsRequest) (*ListMapContextConfigsResponse, error)func (UnimplementedMapManagementServer) ListStyleConfigs
func (UnimplementedMapManagementServer) ListStyleConfigs(context.Context, *ListStyleConfigsRequest) (*ListStyleConfigsResponse, error)func (UnimplementedMapManagementServer) UpdateMapConfig
func (UnimplementedMapManagementServer) UpdateMapConfig(context.Context, *UpdateMapConfigRequest) (*MapConfig, error)func (UnimplementedMapManagementServer) UpdateMapContextConfig
func (UnimplementedMapManagementServer) UpdateMapContextConfig(context.Context, *UpdateMapContextConfigRequest) (*MapContextConfig, error)func (UnimplementedMapManagementServer) UpdateStyleConfig
func (UnimplementedMapManagementServer) UpdateStyleConfig(context.Context, *UpdateStyleConfigRequest) (*StyleConfig, error)UnsafeMapManagementServer
type UnsafeMapManagementServer interface {
// contains filtered or unexported methods
}UnsafeMapManagementServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MapManagementServer will result in compilation errors.
UpdateMapConfigRequest
type UpdateMapConfigRequest struct {
// Required. The MapConfig to update.
//
// The MapConfig's `name` field is used to identify the MapConfig to update.
// Format: `projects/{project}/mapConfigs/{map_config}`
MapConfig *MapConfig `protobuf:"bytes,1,opt,name=map_config,json=mapConfig,proto3" json:"map_config,omitempty"`
// Optional. The specific field to update for the MapConfig. If not specified,
// the MapConfig will be updated in its entirety. Valid fields are:
//
// * `display_name`
// * `description`
// * `map_features`
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Request to update a MapConfig.
func (*UpdateMapConfigRequest) Descriptor
func (*UpdateMapConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateMapConfigRequest.ProtoReflect.Descriptor instead.
func (*UpdateMapConfigRequest) GetMapConfig
func (x *UpdateMapConfigRequest) GetMapConfig() *MapConfigfunc (*UpdateMapConfigRequest) GetUpdateMask
func (x *UpdateMapConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateMapConfigRequest) ProtoMessage
func (*UpdateMapConfigRequest) ProtoMessage()func (*UpdateMapConfigRequest) ProtoReflect
func (x *UpdateMapConfigRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateMapConfigRequest) Reset
func (x *UpdateMapConfigRequest) Reset()func (*UpdateMapConfigRequest) String
func (x *UpdateMapConfigRequest) String() stringUpdateMapContextConfigRequest
type UpdateMapContextConfigRequest struct {
// Required. The MapContextConfig to update.
//
// The MapContextConfig's `name` field is used to identify the
// MapContextConfig to update. Format:
// `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}`
MapContextConfig *MapContextConfig `protobuf:"bytes,1,opt,name=map_context_config,json=mapContextConfig,proto3" json:"map_context_config,omitempty"`
// Optional. The list of fields to update. If not specified, the
// MapContextConfig will be updated in its entirety. Valid fields are:
//
// * `display_name`
// * `alias`
// * `map_variants`
// * `style_config`
// * `dataset`
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Request to update a MapContextConfig.
func (*UpdateMapContextConfigRequest) Descriptor
func (*UpdateMapContextConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateMapContextConfigRequest.ProtoReflect.Descriptor instead.
func (*UpdateMapContextConfigRequest) GetMapContextConfig
func (x *UpdateMapContextConfigRequest) GetMapContextConfig() *MapContextConfigfunc (*UpdateMapContextConfigRequest) GetUpdateMask
func (x *UpdateMapContextConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateMapContextConfigRequest) ProtoMessage
func (*UpdateMapContextConfigRequest) ProtoMessage()func (*UpdateMapContextConfigRequest) ProtoReflect
func (x *UpdateMapContextConfigRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateMapContextConfigRequest) Reset
func (x *UpdateMapContextConfigRequest) Reset()func (*UpdateMapContextConfigRequest) String
func (x *UpdateMapContextConfigRequest) String() stringUpdateStyleConfigRequest
type UpdateStyleConfigRequest struct {
// Required. The StyleConfig to update.
//
// The StyleConfig's `name` field is used to identify the StyleConfig to
// update. Format: `projects/{project}/styleConfigs/{style_config}`
StyleConfig *StyleConfig `protobuf:"bytes,1,opt,name=style_config,json=styleConfig,proto3" json:"style_config,omitempty"`
// Optional. The list of fields to update. If not specified, the StyleConfig
// will be updated in its entirety. Valid fields are:
//
// * `display_name`
// * `description`
// * `json_style_sheet`
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Request to update a StyleConfig.
func (*UpdateStyleConfigRequest) Descriptor
func (*UpdateStyleConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateStyleConfigRequest.ProtoReflect.Descriptor instead.
func (*UpdateStyleConfigRequest) GetStyleConfig
func (x *UpdateStyleConfigRequest) GetStyleConfig() *StyleConfigfunc (*UpdateStyleConfigRequest) GetUpdateMask
func (x *UpdateStyleConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateStyleConfigRequest) ProtoMessage
func (*UpdateStyleConfigRequest) ProtoMessage()func (*UpdateStyleConfigRequest) ProtoReflect
func (x *UpdateStyleConfigRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateStyleConfigRequest) Reset
func (x *UpdateStyleConfigRequest) Reset()func (*UpdateStyleConfigRequest) String
func (x *UpdateStyleConfigRequest) String() string