publish

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PhotoView_name = map[int32]string{
	0: "BASIC",
	1: "INCLUDE_DOWNLOAD_URL",
}
View Source
var PhotoView_value = map[string]int32{
	"BASIC":                0,
	"INCLUDE_DOWNLOAD_URL": 1,
}
View Source
var Photo_MapsPublishStatus_name = map[int32]string{
	0: "UNSPECIFIED_MAPS_PUBLISH_STATUS",
	1: "PUBLISHED",
	2: "REJECTED_UNKNOWN",
}
View Source
var Photo_MapsPublishStatus_value = map[string]int32{
	"UNSPECIFIED_MAPS_PUBLISH_STATUS": 0,
	"PUBLISHED":                       1,
	"REJECTED_UNKNOWN":                2,
}
View Source
var Photo_TransferStatus_name = map[int32]string{
	0: "TRANSFER_STATUS_UNKNOWN",
	1: "NEVER_TRANSFERRED",
	2: "PENDING",
	3: "COMPLETED",
	4: "REJECTED",
	5: "EXPIRED",
	6: "CANCELLED",
	7: "RECEIVED_VIA_TRANSFER",
}
View Source
var Photo_TransferStatus_value = map[string]int32{
	"TRANSFER_STATUS_UNKNOWN": 0,
	"NEVER_TRANSFERRED":       1,
	"PENDING":                 2,
	"COMPLETED":               3,
	"REJECTED":                4,
	"EXPIRED":                 5,
	"CANCELLED":               6,
	"RECEIVED_VIA_TRANSFER":   7,
}

Functions

func RegisterStreetViewPublishServiceServer

func RegisterStreetViewPublishServiceServer(s *grpc.Server, srv StreetViewPublishServiceServer)

Types

type BatchDeletePhotosRequest

type BatchDeletePhotosRequest struct {
	// Required. IDs of the [Photos][google.streetview.publish.v1.Photo]. HTTP
	// GET requests require the following syntax for the URL query parameter:
	// `photoIds=<id1>&photoIds=<id2>&...`.
	PhotoIds             []string `protobuf:"bytes,1,rep,name=photo_ids,json=photoIds,proto3" json:"photo_ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to delete multiple [Photos][google.streetview.publish.v1.Photo].

func (*BatchDeletePhotosRequest) Descriptor

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

func (*BatchDeletePhotosRequest) GetPhotoIds

func (m *BatchDeletePhotosRequest) GetPhotoIds() []string

func (*BatchDeletePhotosRequest) ProtoMessage

func (*BatchDeletePhotosRequest) ProtoMessage()

func (*BatchDeletePhotosRequest) Reset

func (m *BatchDeletePhotosRequest) Reset()

func (*BatchDeletePhotosRequest) String

func (m *BatchDeletePhotosRequest) String() string

func (*BatchDeletePhotosRequest) XXX_DiscardUnknown

func (m *BatchDeletePhotosRequest) XXX_DiscardUnknown()

func (*BatchDeletePhotosRequest) XXX_Marshal

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

func (*BatchDeletePhotosRequest) XXX_Merge

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

func (*BatchDeletePhotosRequest) XXX_Size

func (m *BatchDeletePhotosRequest) XXX_Size() int

func (*BatchDeletePhotosRequest) XXX_Unmarshal

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

type BatchDeletePhotosResponse

type BatchDeletePhotosResponse struct {
	// The status for the operation to delete a single
	// [Photo][google.streetview.publish.v1.Photo] in the batch request.
	Status               []*status.Status `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Response to batch delete of one or more [Photos][google.streetview.publish.v1.Photo].

func (*BatchDeletePhotosResponse) Descriptor

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

func (*BatchDeletePhotosResponse) GetStatus

func (m *BatchDeletePhotosResponse) GetStatus() []*status.Status

func (*BatchDeletePhotosResponse) ProtoMessage

func (*BatchDeletePhotosResponse) ProtoMessage()

func (*BatchDeletePhotosResponse) Reset

func (m *BatchDeletePhotosResponse) Reset()

func (*BatchDeletePhotosResponse) String

func (m *BatchDeletePhotosResponse) String() string

func (*BatchDeletePhotosResponse) XXX_DiscardUnknown

func (m *BatchDeletePhotosResponse) XXX_DiscardUnknown()

func (*BatchDeletePhotosResponse) XXX_Marshal

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

func (*BatchDeletePhotosResponse) XXX_Merge

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

func (*BatchDeletePhotosResponse) XXX_Size

func (m *BatchDeletePhotosResponse) XXX_Size() int

func (*BatchDeletePhotosResponse) XXX_Unmarshal

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

type BatchGetPhotosRequest

type BatchGetPhotosRequest struct {
	// Required. IDs of the [Photos][google.streetview.publish.v1.Photo]. HTTP GET
	// requests require the following syntax for the URL query parameter:
	// `photoIds=<id1>&photoIds=<id2>&...`.
	PhotoIds []string `protobuf:"bytes,1,rep,name=photo_ids,json=photoIds,proto3" json:"photo_ids,omitempty"`
	// Specifies if a download URL for the photo bytes should be returned in the
	// Photo response.
	View PhotoView `protobuf:"varint,2,opt,name=view,proto3,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"`
	// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
	// information, see
	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
	// If language_code is unspecified, the user's language preference for Google
	// services is used.
	LanguageCode         string   `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to get one or more [Photos][google.streetview.publish.v1.Photo]. By default

* does not return the download URL for the photo bytes.

Parameters:

* `view` controls if the download URL for the photo bytes is returned.

func (*BatchGetPhotosRequest) Descriptor

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

func (*BatchGetPhotosRequest) GetLanguageCode

func (m *BatchGetPhotosRequest) GetLanguageCode() string

func (*BatchGetPhotosRequest) GetPhotoIds

func (m *BatchGetPhotosRequest) GetPhotoIds() []string

func (*BatchGetPhotosRequest) GetView

func (m *BatchGetPhotosRequest) GetView() PhotoView

func (*BatchGetPhotosRequest) ProtoMessage

func (*BatchGetPhotosRequest) ProtoMessage()

func (*BatchGetPhotosRequest) Reset

func (m *BatchGetPhotosRequest) Reset()

func (*BatchGetPhotosRequest) String

func (m *BatchGetPhotosRequest) String() string

func (*BatchGetPhotosRequest) XXX_DiscardUnknown

func (m *BatchGetPhotosRequest) XXX_DiscardUnknown()

func (*BatchGetPhotosRequest) XXX_Marshal

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

func (*BatchGetPhotosRequest) XXX_Merge

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

func (*BatchGetPhotosRequest) XXX_Size

func (m *BatchGetPhotosRequest) XXX_Size() int

func (*BatchGetPhotosRequest) XXX_Unmarshal

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

type BatchGetPhotosResponse

type BatchGetPhotosResponse struct {
	// List of results for each individual
	// [Photo][google.streetview.publish.v1.Photo] requested, in the same order as
	// the requests in
	// [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos].
	Results              []*PhotoResponse `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Response to batch get of [Photos][google.streetview.publish.v1.Photo].

func (*BatchGetPhotosResponse) Descriptor

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

func (*BatchGetPhotosResponse) GetResults

func (m *BatchGetPhotosResponse) GetResults() []*PhotoResponse

func (*BatchGetPhotosResponse) ProtoMessage

func (*BatchGetPhotosResponse) ProtoMessage()

func (*BatchGetPhotosResponse) Reset

func (m *BatchGetPhotosResponse) Reset()

func (*BatchGetPhotosResponse) String

func (m *BatchGetPhotosResponse) String() string

func (*BatchGetPhotosResponse) XXX_DiscardUnknown

func (m *BatchGetPhotosResponse) XXX_DiscardUnknown()

func (*BatchGetPhotosResponse) XXX_Marshal

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

func (*BatchGetPhotosResponse) XXX_Merge

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

func (*BatchGetPhotosResponse) XXX_Size

func (m *BatchGetPhotosResponse) XXX_Size() int

func (*BatchGetPhotosResponse) XXX_Unmarshal

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

type BatchUpdatePhotosRequest

type BatchUpdatePhotosRequest struct {
	// Required. List of
	// [UpdatePhotoRequests][google.streetview.publish.v1.UpdatePhotoRequest].
	UpdatePhotoRequests  []*UpdatePhotoRequest `protobuf:"bytes,1,rep,name=update_photo_requests,json=updatePhotoRequests,proto3" json:"update_photo_requests,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Request to update the metadata of photos. Updating the pixels of photos is not supported.

func (*BatchUpdatePhotosRequest) Descriptor

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

func (*BatchUpdatePhotosRequest) GetUpdatePhotoRequests

func (m *BatchUpdatePhotosRequest) GetUpdatePhotoRequests() []*UpdatePhotoRequest

func (*BatchUpdatePhotosRequest) ProtoMessage

func (*BatchUpdatePhotosRequest) ProtoMessage()

func (*BatchUpdatePhotosRequest) Reset

func (m *BatchUpdatePhotosRequest) Reset()

func (*BatchUpdatePhotosRequest) String

func (m *BatchUpdatePhotosRequest) String() string

func (*BatchUpdatePhotosRequest) XXX_DiscardUnknown

func (m *BatchUpdatePhotosRequest) XXX_DiscardUnknown()

func (*BatchUpdatePhotosRequest) XXX_Marshal

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

func (*BatchUpdatePhotosRequest) XXX_Merge

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

func (*BatchUpdatePhotosRequest) XXX_Size

func (m *BatchUpdatePhotosRequest) XXX_Size() int

func (*BatchUpdatePhotosRequest) XXX_Unmarshal

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

type BatchUpdatePhotosResponse

type BatchUpdatePhotosResponse struct {
	// List of results for each individual
	// [Photo][google.streetview.publish.v1.Photo] updated, in the same order as
	// the request.
	Results              []*PhotoResponse `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Response to batch update of metadata of one or more [Photos][google.streetview.publish.v1.Photo].

func (*BatchUpdatePhotosResponse) Descriptor

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

func (*BatchUpdatePhotosResponse) GetResults

func (m *BatchUpdatePhotosResponse) GetResults() []*PhotoResponse

func (*BatchUpdatePhotosResponse) ProtoMessage

func (*BatchUpdatePhotosResponse) ProtoMessage()

func (*BatchUpdatePhotosResponse) Reset

func (m *BatchUpdatePhotosResponse) Reset()

func (*BatchUpdatePhotosResponse) String

func (m *BatchUpdatePhotosResponse) String() string

func (*BatchUpdatePhotosResponse) XXX_DiscardUnknown

func (m *BatchUpdatePhotosResponse) XXX_DiscardUnknown()

func (*BatchUpdatePhotosResponse) XXX_Marshal

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

func (*BatchUpdatePhotosResponse) XXX_Merge

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

func (*BatchUpdatePhotosResponse) XXX_Size

func (m *BatchUpdatePhotosResponse) XXX_Size() int

func (*BatchUpdatePhotosResponse) XXX_Unmarshal

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

type Connection

type Connection struct {
	// Required. The destination of the connection from the containing photo to
	// another photo.
	Target               *PhotoId `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A connection is the link from a source photo to a destination photo.

func (*Connection) Descriptor

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

func (*Connection) GetTarget

func (m *Connection) GetTarget() *PhotoId

func (*Connection) ProtoMessage

func (*Connection) ProtoMessage()

func (*Connection) Reset

func (m *Connection) Reset()

func (*Connection) String

func (m *Connection) String() string

func (*Connection) XXX_DiscardUnknown

func (m *Connection) XXX_DiscardUnknown()

func (*Connection) XXX_Marshal

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

func (*Connection) XXX_Merge

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

func (*Connection) XXX_Size

func (m *Connection) XXX_Size() int

func (*Connection) XXX_Unmarshal

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

type CreatePhotoRequest

type CreatePhotoRequest struct {
	// Required. Photo to create.
	Photo                *Photo   `protobuf:"bytes,1,opt,name=photo,proto3" json:"photo,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to create a Photo[google.streetview.publish.v1.Photo].

func (*CreatePhotoRequest) Descriptor

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

func (*CreatePhotoRequest) GetPhoto

func (m *CreatePhotoRequest) GetPhoto() *Photo

func (*CreatePhotoRequest) ProtoMessage

func (*CreatePhotoRequest) ProtoMessage()

func (*CreatePhotoRequest) Reset

func (m *CreatePhotoRequest) Reset()

func (*CreatePhotoRequest) String

func (m *CreatePhotoRequest) String() string

func (*CreatePhotoRequest) XXX_DiscardUnknown

func (m *CreatePhotoRequest) XXX_DiscardUnknown()

func (*CreatePhotoRequest) XXX_Marshal

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

func (*CreatePhotoRequest) XXX_Merge

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

func (*CreatePhotoRequest) XXX_Size

func (m *CreatePhotoRequest) XXX_Size() int

func (*CreatePhotoRequest) XXX_Unmarshal

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

type DeletePhotoRequest

type DeletePhotoRequest struct {
	// Required. ID of the [Photo][google.streetview.publish.v1.Photo].
	PhotoId              string   `protobuf:"bytes,1,opt,name=photo_id,json=photoId,proto3" json:"photo_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to delete a Photo[google.streetview.publish.v1.Photo].

func (*DeletePhotoRequest) Descriptor

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

func (*DeletePhotoRequest) GetPhotoId

func (m *DeletePhotoRequest) GetPhotoId() string

func (*DeletePhotoRequest) ProtoMessage

func (*DeletePhotoRequest) ProtoMessage()

func (*DeletePhotoRequest) Reset

func (m *DeletePhotoRequest) Reset()

func (*DeletePhotoRequest) String

func (m *DeletePhotoRequest) String() string

func (*DeletePhotoRequest) XXX_DiscardUnknown

func (m *DeletePhotoRequest) XXX_DiscardUnknown()

func (*DeletePhotoRequest) XXX_Marshal

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

func (*DeletePhotoRequest) XXX_Merge

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

func (*DeletePhotoRequest) XXX_Size

func (m *DeletePhotoRequest) XXX_Size() int

func (*DeletePhotoRequest) XXX_Unmarshal

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

type GetPhotoRequest

type GetPhotoRequest struct {
	// Required. ID of the [Photo][google.streetview.publish.v1.Photo].
	PhotoId string `protobuf:"bytes,1,opt,name=photo_id,json=photoId,proto3" json:"photo_id,omitempty"`
	// Specifies if a download URL for the photo bytes should be returned in the
	// [Photo][google.streetview.publish.v1.Photo] response.
	View PhotoView `protobuf:"varint,2,opt,name=view,proto3,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"`
	// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
	// information, see
	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
	// If language_code is unspecified, the user's language preference for Google
	// services is used.
	LanguageCode         string   `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to get a Photo[google.streetview.publish.v1.Photo].

By default

* does not return the download URL for the photo bytes.

Parameters:

* `view` controls if the download URL for the photo bytes is returned.

func (*GetPhotoRequest) Descriptor

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

func (*GetPhotoRequest) GetLanguageCode

func (m *GetPhotoRequest) GetLanguageCode() string

func (*GetPhotoRequest) GetPhotoId

func (m *GetPhotoRequest) GetPhotoId() string

func (*GetPhotoRequest) GetView

func (m *GetPhotoRequest) GetView() PhotoView

func (*GetPhotoRequest) ProtoMessage

func (*GetPhotoRequest) ProtoMessage()

func (*GetPhotoRequest) Reset

func (m *GetPhotoRequest) Reset()

func (*GetPhotoRequest) String

func (m *GetPhotoRequest) String() string

func (*GetPhotoRequest) XXX_DiscardUnknown

func (m *GetPhotoRequest) XXX_DiscardUnknown()

func (*GetPhotoRequest) XXX_Marshal

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

func (*GetPhotoRequest) XXX_Merge

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

func (*GetPhotoRequest) XXX_Size

func (m *GetPhotoRequest) XXX_Size() int

func (*GetPhotoRequest) XXX_Unmarshal

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

type Level

type Level struct {
	// Floor number, used for ordering. 0 indicates the ground level, 1 indicates
	// the first level above ground level, -1 indicates the first level under
	// ground level. Non-integer values are OK.
	Number float64 `protobuf:"fixed64,1,opt,name=number,proto3" json:"number,omitempty"`
	// Required. A name assigned to this Level, restricted to 3 characters.
	// Consider how the elevator buttons would be labeled for this level if there
	// was an elevator.
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Level information containing level number and its corresponding name.

func (*Level) Descriptor

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

func (*Level) GetName

func (m *Level) GetName() string

func (*Level) GetNumber

func (m *Level) GetNumber() float64

func (*Level) ProtoMessage

func (*Level) ProtoMessage()

func (*Level) Reset

func (m *Level) Reset()

func (*Level) String

func (m *Level) String() string

func (*Level) XXX_DiscardUnknown

func (m *Level) XXX_DiscardUnknown()

func (*Level) XXX_Marshal

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

func (*Level) XXX_Merge

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

func (*Level) XXX_Size

func (m *Level) XXX_Size() int

func (*Level) XXX_Unmarshal

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

type ListPhotosRequest

type ListPhotosRequest struct {
	// Specifies if a download URL for the photos bytes should be returned in the
	// Photos response.
	View PhotoView `protobuf:"varint,1,opt,name=view,proto3,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"`
	// The maximum number of photos to return.
	// `pageSize` must be non-negative. If `pageSize` is zero or is not provided,
	// the default page size of 100 is used.
	// The number of photos returned in the response may be less than `pageSize`
	// if the number of photos that belong to the user is less than `pageSize`.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The
	// [nextPageToken][google.streetview.publish.v1.ListPhotosResponse.next_page_token]
	// value returned from a previous
	// [ListPhotos][google.streetview.publish.v1.StreetViewPublishService.ListPhotos]
	// request, if any.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// The filter expression. For example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.
	//
	// The only filter supported at the moment is `placeId`.
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
	// information, see
	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
	// If language_code is unspecified, the user's language preference for Google
	// services is used.
	LanguageCode         string   `protobuf:"bytes,5,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to list all photos that belong to the user sending the request.

By default

* does not return the download URL for the photo bytes.

Parameters:

* `view` controls if the download URL for the photo bytes is returned. * `pageSize` determines the maximum number of photos to return. * `pageToken` is the next page token value returned from a previous [ListPhotos][google.streetview.publish.v1.StreetViewPublishService.ListPhotos]

request, if any.

* `filter` allows filtering by a given parameter. 'placeId' is the only parameter supported at the moment.

func (*ListPhotosRequest) Descriptor

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

func (*ListPhotosRequest) GetFilter

func (m *ListPhotosRequest) GetFilter() string

func (*ListPhotosRequest) GetLanguageCode

func (m *ListPhotosRequest) GetLanguageCode() string

func (*ListPhotosRequest) GetPageSize

func (m *ListPhotosRequest) GetPageSize() int32

func (*ListPhotosRequest) GetPageToken

func (m *ListPhotosRequest) GetPageToken() string

func (*ListPhotosRequest) GetView

func (m *ListPhotosRequest) GetView() PhotoView

func (*ListPhotosRequest) ProtoMessage

func (*ListPhotosRequest) ProtoMessage()

func (*ListPhotosRequest) Reset

func (m *ListPhotosRequest) Reset()

func (*ListPhotosRequest) String

func (m *ListPhotosRequest) String() string

func (*ListPhotosRequest) XXX_DiscardUnknown

func (m *ListPhotosRequest) XXX_DiscardUnknown()

func (*ListPhotosRequest) XXX_Marshal

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

func (*ListPhotosRequest) XXX_Merge

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

func (*ListPhotosRequest) XXX_Size

func (m *ListPhotosRequest) XXX_Size() int

func (*ListPhotosRequest) XXX_Unmarshal

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

type ListPhotosResponse

type ListPhotosResponse struct {
	// List of photos. The
	// [pageSize][google.streetview.publish.v1.ListPhotosRequest.page_size] field
	// in the request determines the number of items returned.
	Photos []*Photo `protobuf:"bytes,1,rep,name=photos,proto3" json:"photos,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:"-"`
}

Response to list all photos that belong to a user.

func (*ListPhotosResponse) Descriptor

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

func (*ListPhotosResponse) GetNextPageToken

func (m *ListPhotosResponse) GetNextPageToken() string

func (*ListPhotosResponse) GetPhotos

func (m *ListPhotosResponse) GetPhotos() []*Photo

func (*ListPhotosResponse) ProtoMessage

func (*ListPhotosResponse) ProtoMessage()

func (*ListPhotosResponse) Reset

func (m *ListPhotosResponse) Reset()

func (*ListPhotosResponse) String

func (m *ListPhotosResponse) String() string

func (*ListPhotosResponse) XXX_DiscardUnknown

func (m *ListPhotosResponse) XXX_DiscardUnknown()

func (*ListPhotosResponse) XXX_Marshal

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

func (*ListPhotosResponse) XXX_Merge

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

func (*ListPhotosResponse) XXX_Size

func (m *ListPhotosResponse) XXX_Size() int

func (*ListPhotosResponse) XXX_Unmarshal

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

type Photo

type Photo struct {
	// Required when updating a photo. Output only when creating a photo.
	// Identifier for the photo, which is unique among all photos in
	// Google.
	PhotoId *PhotoId `protobuf:"bytes,1,opt,name=photo_id,json=photoId,proto3" json:"photo_id,omitempty"`
	// Required when creating a photo. Input only. The resource URL where the
	// photo bytes are uploaded to.
	UploadReference *UploadRef `protobuf:"bytes,2,opt,name=upload_reference,json=uploadReference,proto3" json:"upload_reference,omitempty"`
	// Output only. The download URL for the photo bytes. This field is set only
	// when
	// [GetPhotoRequest.view][google.streetview.publish.v1.GetPhotoRequest.view]
	// is set to
	// [PhotoView.INCLUDE_DOWNLOAD_URL][google.streetview.publish.v1.PhotoView.INCLUDE_DOWNLOAD_URL].
	DownloadUrl string `protobuf:"bytes,3,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"`
	// Output only. The thumbnail URL for showing a preview of the given photo.
	ThumbnailUrl string `protobuf:"bytes,9,opt,name=thumbnail_url,json=thumbnailUrl,proto3" json:"thumbnail_url,omitempty"`
	// Output only. The share link for the photo.
	ShareLink string `protobuf:"bytes,11,opt,name=share_link,json=shareLink,proto3" json:"share_link,omitempty"`
	// Pose of the photo.
	Pose *Pose `protobuf:"bytes,4,opt,name=pose,proto3" json:"pose,omitempty"`
	// Connections to other photos. A connection represents the link from this
	// photo to another photo.
	Connections []*Connection `protobuf:"bytes,5,rep,name=connections,proto3" json:"connections,omitempty"`
	// Absolute time when the photo was captured.
	// When the photo has no exif timestamp, this is used to set a timestamp in
	// the photo metadata.
	CaptureTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=capture_time,json=captureTime,proto3" json:"capture_time,omitempty"`
	// Places where this photo belongs.
	Places []*Place `protobuf:"bytes,7,rep,name=places,proto3" json:"places,omitempty"`
	// Output only. View count of the photo.
	ViewCount int64 `protobuf:"varint,10,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"`
	// Output only. Status of rights transfer on this photo.
	TransferStatus Photo_TransferStatus `` /* 160-byte string literal not displayed */
	// Output only. Status in Google Maps, whether this photo was published or
	// rejected.
	MapsPublishStatus    Photo_MapsPublishStatus `` /* 174-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

Photo is used to store 360 photos along with photo metadata.

func (*Photo) Descriptor

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

func (*Photo) GetCaptureTime

func (m *Photo) GetCaptureTime() *timestamp.Timestamp

func (*Photo) GetConnections

func (m *Photo) GetConnections() []*Connection

func (*Photo) GetDownloadUrl

func (m *Photo) GetDownloadUrl() string

func (*Photo) GetMapsPublishStatus

func (m *Photo) GetMapsPublishStatus() Photo_MapsPublishStatus

func (*Photo) GetPhotoId

func (m *Photo) GetPhotoId() *PhotoId

func (*Photo) GetPlaces

func (m *Photo) GetPlaces() []*Place

func (*Photo) GetPose

func (m *Photo) GetPose() *Pose
func (m *Photo) GetShareLink() string

func (*Photo) GetThumbnailUrl

func (m *Photo) GetThumbnailUrl() string

func (*Photo) GetTransferStatus

func (m *Photo) GetTransferStatus() Photo_TransferStatus

func (*Photo) GetUploadReference

func (m *Photo) GetUploadReference() *UploadRef

func (*Photo) GetViewCount

func (m *Photo) GetViewCount() int64

func (*Photo) ProtoMessage

func (*Photo) ProtoMessage()

func (*Photo) Reset

func (m *Photo) Reset()

func (*Photo) String

func (m *Photo) String() string

func (*Photo) XXX_DiscardUnknown

func (m *Photo) XXX_DiscardUnknown()

func (*Photo) XXX_Marshal

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

func (*Photo) XXX_Merge

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

func (*Photo) XXX_Size

func (m *Photo) XXX_Size() int

func (*Photo) XXX_Unmarshal

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

type PhotoId

type PhotoId struct {
	// Required. A unique identifier for a photo.
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Identifier for a Photo[google.streetview.publish.v1.Photo].

func (*PhotoId) Descriptor

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

func (*PhotoId) GetId

func (m *PhotoId) GetId() string

func (*PhotoId) ProtoMessage

func (*PhotoId) ProtoMessage()

func (*PhotoId) Reset

func (m *PhotoId) Reset()

func (*PhotoId) String

func (m *PhotoId) String() string

func (*PhotoId) XXX_DiscardUnknown

func (m *PhotoId) XXX_DiscardUnknown()

func (*PhotoId) XXX_Marshal

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

func (*PhotoId) XXX_Merge

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

func (*PhotoId) XXX_Size

func (m *PhotoId) XXX_Size() int

func (*PhotoId) XXX_Unmarshal

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

type PhotoResponse

type PhotoResponse struct {
	// The status for the operation to get or update a single photo in the batch
	// request.
	Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// The [Photo][google.streetview.publish.v1.Photo] resource, if the request
	// was successful.
	Photo                *Photo   `protobuf:"bytes,2,opt,name=photo,proto3" json:"photo,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response payload for a single Photo[google.streetview.publish.v1.Photo] in batch operations including [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos] and [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos].

func (*PhotoResponse) Descriptor

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

func (*PhotoResponse) GetPhoto

func (m *PhotoResponse) GetPhoto() *Photo

func (*PhotoResponse) GetStatus

func (m *PhotoResponse) GetStatus() *status.Status

func (*PhotoResponse) ProtoMessage

func (*PhotoResponse) ProtoMessage()

func (*PhotoResponse) Reset

func (m *PhotoResponse) Reset()

func (*PhotoResponse) String

func (m *PhotoResponse) String() string

func (*PhotoResponse) XXX_DiscardUnknown

func (m *PhotoResponse) XXX_DiscardUnknown()

func (*PhotoResponse) XXX_Marshal

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

func (*PhotoResponse) XXX_Merge

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

func (*PhotoResponse) XXX_Size

func (m *PhotoResponse) XXX_Size() int

func (*PhotoResponse) XXX_Unmarshal

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

type PhotoView

type PhotoView int32

Specifies which view of the Photo[google.streetview.publish.v1.Photo] to include in the response.

const (
	// Server reponses do not include the download URL for the photo bytes.
	// The default value.
	PhotoView_BASIC PhotoView = 0
	// Server responses include the download URL for the photo bytes.
	PhotoView_INCLUDE_DOWNLOAD_URL PhotoView = 1
)

func (PhotoView) EnumDescriptor

func (PhotoView) EnumDescriptor() ([]byte, []int)

func (PhotoView) String

func (x PhotoView) String() string

type Photo_MapsPublishStatus

type Photo_MapsPublishStatus int32

Publication status of the photo in Google Maps.

const (
	// The status of the photo is unknown.
	Photo_UNSPECIFIED_MAPS_PUBLISH_STATUS Photo_MapsPublishStatus = 0
	// The photo is published to the public through Google Maps.
	Photo_PUBLISHED Photo_MapsPublishStatus = 1
	// The photo has been rejected for an unknown reason.
	Photo_REJECTED_UNKNOWN Photo_MapsPublishStatus = 2
)

func (Photo_MapsPublishStatus) EnumDescriptor

func (Photo_MapsPublishStatus) EnumDescriptor() ([]byte, []int)

func (Photo_MapsPublishStatus) String

func (x Photo_MapsPublishStatus) String() string

type Photo_TransferStatus

type Photo_TransferStatus int32

Status of rights transfer.

const (
	// The status of this transfer is unspecified.
	Photo_TRANSFER_STATUS_UNKNOWN Photo_TransferStatus = 0
	// This photo has never been in a transfer.
	Photo_NEVER_TRANSFERRED Photo_TransferStatus = 1
	// This photo transfer has been initiated, but the receiver has not yet
	// responded.
	Photo_PENDING Photo_TransferStatus = 2
	// The photo transfer has been completed, and this photo has been
	// transferred to the recipient.
	Photo_COMPLETED Photo_TransferStatus = 3
	// The recipient rejected this photo transfer.
	Photo_REJECTED Photo_TransferStatus = 4
	// The photo transfer expired before the recipient took any action.
	Photo_EXPIRED Photo_TransferStatus = 5
	// The sender cancelled this photo transfer.
	Photo_CANCELLED Photo_TransferStatus = 6
	// The recipient owns this photo due to a rights transfer.
	Photo_RECEIVED_VIA_TRANSFER Photo_TransferStatus = 7
)

func (Photo_TransferStatus) EnumDescriptor

func (Photo_TransferStatus) EnumDescriptor() ([]byte, []int)

func (Photo_TransferStatus) String

func (x Photo_TransferStatus) String() string

type Place

type Place struct {
	// Place identifier, as described in
	// https://developers.google.com/places/place-id.
	PlaceId string `protobuf:"bytes,1,opt,name=place_id,json=placeId,proto3" json:"place_id,omitempty"`
	// Output-only. The name of the place, localized to the language_code.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Output-only. The language_code that the name is localized with. This should
	// be the language_code specified in the request, but may be a fallback.
	LanguageCode         string   `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Place metadata for an entity.

func (*Place) Descriptor

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

func (*Place) GetLanguageCode

func (m *Place) GetLanguageCode() string

func (*Place) GetName

func (m *Place) GetName() string

func (*Place) GetPlaceId

func (m *Place) GetPlaceId() string

func (*Place) ProtoMessage

func (*Place) ProtoMessage()

func (*Place) Reset

func (m *Place) Reset()

func (*Place) String

func (m *Place) String() string

func (*Place) XXX_DiscardUnknown

func (m *Place) XXX_DiscardUnknown()

func (*Place) XXX_Marshal

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

func (*Place) XXX_Merge

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

func (*Place) XXX_Size

func (m *Place) XXX_Size() int

func (*Place) XXX_Unmarshal

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

type Pose

type Pose struct {
	// Latitude and longitude pair of the pose, as explained here:
	// https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng
	// When creating a [Photo][google.streetview.publish.v1.Photo], if the
	// latitude and longitude pair are not provided, the geolocation from the
	// exif header is used. A latitude and longitude pair not provided in the
	// photo or exif header causes the create photo process to fail.
	LatLngPair *latlng.LatLng `protobuf:"bytes,1,opt,name=lat_lng_pair,json=latLngPair,proto3" json:"lat_lng_pair,omitempty"`
	// Altitude of the pose in meters above WGS84 ellipsoid.
	// NaN indicates an unmeasured quantity.
	Altitude float64 `protobuf:"fixed64,2,opt,name=altitude,proto3" json:"altitude,omitempty"`
	// Compass heading, measured at the center of the photo in degrees clockwise
	// from North. Value must be >=0 and <360.
	// NaN indicates an unmeasured quantity.
	Heading float64 `protobuf:"fixed64,3,opt,name=heading,proto3" json:"heading,omitempty"`
	// Pitch, measured at the center of the photo in degrees. Value must be >=-90
	// and <= 90. A value of -90 means looking directly down, and a value of 90
	// means looking directly up.
	// NaN indicates an unmeasured quantity.
	Pitch float64 `protobuf:"fixed64,4,opt,name=pitch,proto3" json:"pitch,omitempty"`
	// Roll, measured in degrees. Value must be >= 0 and <360. A value of 0
	// means level with the horizon.
	// NaN indicates an unmeasured quantity.
	Roll float64 `protobuf:"fixed64,5,opt,name=roll,proto3" json:"roll,omitempty"`
	// Level (the floor in a building) used to configure vertical navigation.
	Level *Level `protobuf:"bytes,7,opt,name=level,proto3" json:"level,omitempty"`
	// The estimated horizontal accuracy of this pose in meters with 68%
	// confidence (one standard deviation). For example, on Android, this value is
	// available from this method:
	// https://developer.android.com/reference/android/location/Location#getAccuracy().
	// Other platforms have different methods of obtaining similar accuracy
	// estimations.
	AccuracyMeters       float32  `protobuf:"fixed32,9,opt,name=accuracy_meters,json=accuracyMeters,proto3" json:"accuracy_meters,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Raw pose measurement for an entity.

func (*Pose) Descriptor

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

func (*Pose) GetAccuracyMeters

func (m *Pose) GetAccuracyMeters() float32

func (*Pose) GetAltitude

func (m *Pose) GetAltitude() float64

func (*Pose) GetHeading

func (m *Pose) GetHeading() float64

func (*Pose) GetLatLngPair

func (m *Pose) GetLatLngPair() *latlng.LatLng

func (*Pose) GetLevel

func (m *Pose) GetLevel() *Level

func (*Pose) GetPitch

func (m *Pose) GetPitch() float64

func (*Pose) GetRoll

func (m *Pose) GetRoll() float64

func (*Pose) ProtoMessage

func (*Pose) ProtoMessage()

func (*Pose) Reset

func (m *Pose) Reset()

func (*Pose) String

func (m *Pose) String() string

func (*Pose) XXX_DiscardUnknown

func (m *Pose) XXX_DiscardUnknown()

func (*Pose) XXX_Marshal

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

func (*Pose) XXX_Merge

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

func (*Pose) XXX_Size

func (m *Pose) XXX_Size() int

func (*Pose) XXX_Unmarshal

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

type StreetViewPublishServiceClient

type StreetViewPublishServiceClient interface {
	// Creates an upload session to start uploading photo bytes. The method uses
	// the upload URL of the returned
	// [UploadRef][google.streetview.publish.v1.UploadRef] to upload the bytes for
	// the [Photo][google.streetview.publish.v1.Photo].
	//
	// In addition to the photo requirements shown in
	// https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604,
	// the photo must meet the following requirements:
	//
	// * Photo Sphere XMP metadata must be included in the photo medadata. See
	// https://developers.google.com/streetview/spherical-metadata for the
	// required fields.
	// * The pixel size of the photo must meet the size requirements listed in
	// https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, and
	// the photo must be a full 360 horizontally.
	//
	// After the upload completes, the method uses
	// [UploadRef][google.streetview.publish.v1.UploadRef] with
	// [CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto]
	// to create the [Photo][google.streetview.publish.v1.Photo] object entry.
	StartUpload(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UploadRef, error)
	// After the client finishes uploading the photo with the returned
	// [UploadRef][google.streetview.publish.v1.UploadRef],
	// [CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto]
	// publishes the uploaded [Photo][google.streetview.publish.v1.Photo] to
	// Street View on Google Maps.
	//
	// Currently, the only way to set heading, pitch, and roll in CreatePhoto is
	// through the [Photo Sphere XMP
	// metadata](https://developers.google.com/streetview/spherical-metadata) in
	// the photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`,
	// `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose.
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if
	// the request is malformed or if the uploaded photo is not a 360 photo.
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the upload
	// reference does not exist.
	// * [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
	// if the account has reached the storage limit.
	CreatePhoto(ctx context.Context, in *CreatePhotoRequest, opts ...grpc.CallOption) (*Photo, error)
	// Gets the metadata of the specified
	// [Photo][google.streetview.publish.v1.Photo].
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
	// the requesting user did not create the requested
	// [Photo][google.streetview.publish.v1.Photo].
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested
	// [Photo][google.streetview.publish.v1.Photo] does not exist.
	// * [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the
	// requested [Photo][google.streetview.publish.v1.Photo] is still being
	// indexed.
	GetPhoto(ctx context.Context, in *GetPhotoRequest, opts ...grpc.CallOption) (*Photo, error)
	// Gets the metadata of the specified
	// [Photo][google.streetview.publish.v1.Photo] batch.
	//
	// Note that if
	// [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos]
	// fails, either critical fields are missing or there is an authentication
	// error. Even if
	// [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos]
	// succeeds, individual photos in the batch may have failures.
	// These failures are specified in each
	// [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
	// in
	// [BatchGetPhotosResponse.results][google.streetview.publish.v1.BatchGetPhotosResponse.results].
	// See
	// [GetPhoto][google.streetview.publish.v1.StreetViewPublishService.GetPhoto]
	// for specific failures that can occur per photo.
	BatchGetPhotos(ctx context.Context, in *BatchGetPhotosRequest, opts ...grpc.CallOption) (*BatchGetPhotosResponse, error)
	// Lists all the [Photos][google.streetview.publish.v1.Photo] that belong to
	// the user.
	//
	// <aside class="note"><b>Note:</b> Recently created photos that are still
	// being indexed are not returned in the response.</aside>
	ListPhotos(ctx context.Context, in *ListPhotosRequest, opts ...grpc.CallOption) (*ListPhotosResponse, error)
	// Updates the metadata of a [Photo][google.streetview.publish.v1.Photo], such
	// as pose, place association, connections, etc. Changing the pixels of a
	// photo is not supported.
	//
	// Only the fields specified in the
	// [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
	// field are used. If `updateMask` is not present, the update applies to all
	// fields.
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
	// the requesting user did not create the requested photo.
	// * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if
	// the request is malformed.
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested
	// photo does not exist.
	// * [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the
	// requested [Photo][google.streetview.publish.v1.Photo] is still being
	// indexed.
	UpdatePhoto(ctx context.Context, in *UpdatePhotoRequest, opts ...grpc.CallOption) (*Photo, error)
	// Updates the metadata of [Photos][google.streetview.publish.v1.Photo], such
	// as pose, place association, connections, etc. Changing the pixels of photos
	// is not supported.
	//
	// Note that if
	// [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos]
	// fails, either critical fields are missing or there is an authentication
	// error. Even if
	// [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos]
	// succeeds, individual photos in the batch may have failures.
	// These failures are specified in each
	// [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
	// in
	// [BatchUpdatePhotosResponse.results][google.streetview.publish.v1.BatchUpdatePhotosResponse.results].
	// See
	// [UpdatePhoto][google.streetview.publish.v1.StreetViewPublishService.UpdatePhoto]
	// for specific failures that can occur per photo.
	//
	// Only the fields specified in
	// [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
	// field are used. If `updateMask` is not present, the update applies to all
	// fields.
	//
	// The number of
	// [UpdatePhotoRequest][google.streetview.publish.v1.UpdatePhotoRequest]
	// messages in a
	// [BatchUpdatePhotosRequest][google.streetview.publish.v1.BatchUpdatePhotosRequest]
	// must not exceed 20.
	//
	// <aside class="note"><b>Note:</b> To update
	// [Pose.altitude][google.streetview.publish.v1.Pose.altitude],
	// [Pose.latLngPair][google.streetview.publish.v1.Pose.lat_lng_pair] has to be
	// filled as well. Otherwise, the request will fail.</aside>
	BatchUpdatePhotos(ctx context.Context, in *BatchUpdatePhotosRequest, opts ...grpc.CallOption) (*BatchUpdatePhotosResponse, error)
	// Deletes a [Photo][google.streetview.publish.v1.Photo] and its metadata.
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
	// the requesting user did not create the requested photo.
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the photo ID
	// does not exist.
	DeletePhoto(ctx context.Context, in *DeletePhotoRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Deletes a list of [Photos][google.streetview.publish.v1.Photo] and their
	// metadata.
	//
	// Note that if
	// [BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos]
	// fails, either critical fields are missing or there was an authentication
	// error. Even if
	// [BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos]
	// succeeds, individual photos in the batch may have failures.
	// These failures are specified in each
	// [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
	// in
	// [BatchDeletePhotosResponse.results][google.streetview.publish.v1.BatchDeletePhotosResponse.status].
	// See
	// [DeletePhoto][google.streetview.publish.v1.StreetViewPublishService.DeletePhoto]
	// for specific failures that can occur per photo.
	BatchDeletePhotos(ctx context.Context, in *BatchDeletePhotosRequest, opts ...grpc.CallOption) (*BatchDeletePhotosResponse, error)
}

StreetViewPublishServiceClient is the client API for StreetViewPublishService service.

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

type StreetViewPublishServiceServer

type StreetViewPublishServiceServer interface {
	// Creates an upload session to start uploading photo bytes. The method uses
	// the upload URL of the returned
	// [UploadRef][google.streetview.publish.v1.UploadRef] to upload the bytes for
	// the [Photo][google.streetview.publish.v1.Photo].
	//
	// In addition to the photo requirements shown in
	// https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604,
	// the photo must meet the following requirements:
	//
	// * Photo Sphere XMP metadata must be included in the photo medadata. See
	// https://developers.google.com/streetview/spherical-metadata for the
	// required fields.
	// * The pixel size of the photo must meet the size requirements listed in
	// https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, and
	// the photo must be a full 360 horizontally.
	//
	// After the upload completes, the method uses
	// [UploadRef][google.streetview.publish.v1.UploadRef] with
	// [CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto]
	// to create the [Photo][google.streetview.publish.v1.Photo] object entry.
	StartUpload(context.Context, *empty.Empty) (*UploadRef, error)
	// After the client finishes uploading the photo with the returned
	// [UploadRef][google.streetview.publish.v1.UploadRef],
	// [CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto]
	// publishes the uploaded [Photo][google.streetview.publish.v1.Photo] to
	// Street View on Google Maps.
	//
	// Currently, the only way to set heading, pitch, and roll in CreatePhoto is
	// through the [Photo Sphere XMP
	// metadata](https://developers.google.com/streetview/spherical-metadata) in
	// the photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`,
	// `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose.
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if
	// the request is malformed or if the uploaded photo is not a 360 photo.
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the upload
	// reference does not exist.
	// * [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
	// if the account has reached the storage limit.
	CreatePhoto(context.Context, *CreatePhotoRequest) (*Photo, error)
	// Gets the metadata of the specified
	// [Photo][google.streetview.publish.v1.Photo].
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
	// the requesting user did not create the requested
	// [Photo][google.streetview.publish.v1.Photo].
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested
	// [Photo][google.streetview.publish.v1.Photo] does not exist.
	// * [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the
	// requested [Photo][google.streetview.publish.v1.Photo] is still being
	// indexed.
	GetPhoto(context.Context, *GetPhotoRequest) (*Photo, error)
	// Gets the metadata of the specified
	// [Photo][google.streetview.publish.v1.Photo] batch.
	//
	// Note that if
	// [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos]
	// fails, either critical fields are missing or there is an authentication
	// error. Even if
	// [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos]
	// succeeds, individual photos in the batch may have failures.
	// These failures are specified in each
	// [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
	// in
	// [BatchGetPhotosResponse.results][google.streetview.publish.v1.BatchGetPhotosResponse.results].
	// See
	// [GetPhoto][google.streetview.publish.v1.StreetViewPublishService.GetPhoto]
	// for specific failures that can occur per photo.
	BatchGetPhotos(context.Context, *BatchGetPhotosRequest) (*BatchGetPhotosResponse, error)
	// Lists all the [Photos][google.streetview.publish.v1.Photo] that belong to
	// the user.
	//
	// <aside class="note"><b>Note:</b> Recently created photos that are still
	// being indexed are not returned in the response.</aside>
	ListPhotos(context.Context, *ListPhotosRequest) (*ListPhotosResponse, error)
	// Updates the metadata of a [Photo][google.streetview.publish.v1.Photo], such
	// as pose, place association, connections, etc. Changing the pixels of a
	// photo is not supported.
	//
	// Only the fields specified in the
	// [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
	// field are used. If `updateMask` is not present, the update applies to all
	// fields.
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
	// the requesting user did not create the requested photo.
	// * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if
	// the request is malformed.
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested
	// photo does not exist.
	// * [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the
	// requested [Photo][google.streetview.publish.v1.Photo] is still being
	// indexed.
	UpdatePhoto(context.Context, *UpdatePhotoRequest) (*Photo, error)
	// Updates the metadata of [Photos][google.streetview.publish.v1.Photo], such
	// as pose, place association, connections, etc. Changing the pixels of photos
	// is not supported.
	//
	// Note that if
	// [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos]
	// fails, either critical fields are missing or there is an authentication
	// error. Even if
	// [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos]
	// succeeds, individual photos in the batch may have failures.
	// These failures are specified in each
	// [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
	// in
	// [BatchUpdatePhotosResponse.results][google.streetview.publish.v1.BatchUpdatePhotosResponse.results].
	// See
	// [UpdatePhoto][google.streetview.publish.v1.StreetViewPublishService.UpdatePhoto]
	// for specific failures that can occur per photo.
	//
	// Only the fields specified in
	// [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
	// field are used. If `updateMask` is not present, the update applies to all
	// fields.
	//
	// The number of
	// [UpdatePhotoRequest][google.streetview.publish.v1.UpdatePhotoRequest]
	// messages in a
	// [BatchUpdatePhotosRequest][google.streetview.publish.v1.BatchUpdatePhotosRequest]
	// must not exceed 20.
	//
	// <aside class="note"><b>Note:</b> To update
	// [Pose.altitude][google.streetview.publish.v1.Pose.altitude],
	// [Pose.latLngPair][google.streetview.publish.v1.Pose.lat_lng_pair] has to be
	// filled as well. Otherwise, the request will fail.</aside>
	BatchUpdatePhotos(context.Context, *BatchUpdatePhotosRequest) (*BatchUpdatePhotosResponse, error)
	// Deletes a [Photo][google.streetview.publish.v1.Photo] and its metadata.
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
	// the requesting user did not create the requested photo.
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the photo ID
	// does not exist.
	DeletePhoto(context.Context, *DeletePhotoRequest) (*empty.Empty, error)
	// Deletes a list of [Photos][google.streetview.publish.v1.Photo] and their
	// metadata.
	//
	// Note that if
	// [BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos]
	// fails, either critical fields are missing or there was an authentication
	// error. Even if
	// [BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos]
	// succeeds, individual photos in the batch may have failures.
	// These failures are specified in each
	// [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
	// in
	// [BatchDeletePhotosResponse.results][google.streetview.publish.v1.BatchDeletePhotosResponse.status].
	// See
	// [DeletePhoto][google.streetview.publish.v1.StreetViewPublishService.DeletePhoto]
	// for specific failures that can occur per photo.
	BatchDeletePhotos(context.Context, *BatchDeletePhotosRequest) (*BatchDeletePhotosResponse, error)
}

StreetViewPublishServiceServer is the server API for StreetViewPublishService service.

type UnimplementedStreetViewPublishServiceServer

type UnimplementedStreetViewPublishServiceServer struct {
}

UnimplementedStreetViewPublishServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedStreetViewPublishServiceServer) BatchDeletePhotos

func (*UnimplementedStreetViewPublishServiceServer) BatchGetPhotos

func (*UnimplementedStreetViewPublishServiceServer) BatchUpdatePhotos

func (*UnimplementedStreetViewPublishServiceServer) CreatePhoto

func (*UnimplementedStreetViewPublishServiceServer) DeletePhoto

func (*UnimplementedStreetViewPublishServiceServer) GetPhoto

func (*UnimplementedStreetViewPublishServiceServer) ListPhotos

func (*UnimplementedStreetViewPublishServiceServer) StartUpload

func (*UnimplementedStreetViewPublishServiceServer) UpdatePhoto

type UpdatePhotoRequest

type UpdatePhotoRequest struct {
	// Required. [Photo][google.streetview.publish.v1.Photo] object containing the
	// new metadata.
	Photo *Photo `protobuf:"bytes,1,opt,name=photo,proto3" json:"photo,omitempty"`
	// Mask that identifies fields on the photo metadata to update.
	// If not present, the old [Photo][google.streetview.publish.v1.Photo]
	// metadata is entirely replaced with the
	// new [Photo][google.streetview.publish.v1.Photo] metadata in this request.
	// The update fails if invalid fields are specified. Multiple fields can be
	// specified in a comma-delimited list.
	//
	// The following fields are valid:
	//
	// * `pose.heading`
	// * `pose.latLngPair`
	// * `pose.pitch`
	// * `pose.roll`
	// * `pose.level`
	// * `pose.altitude`
	// * `connections`
	// * `places`
	//
	//
	// <aside class="note"><b>Note:</b>  When
	// [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
	// contains repeated fields, the entire set of repeated values get replaced
	// with the new contents. For example, if
	// [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
	// contains `connections` and `UpdatePhotoRequest.photo.connections` is empty,
	// all connections are removed.</aside>
	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:"-"`
}

Request to update the metadata of a Photo[google.streetview.publish.v1.Photo]. Updating the pixels of a photo is not supported.

func (*UpdatePhotoRequest) Descriptor

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

func (*UpdatePhotoRequest) GetPhoto

func (m *UpdatePhotoRequest) GetPhoto() *Photo

func (*UpdatePhotoRequest) GetUpdateMask

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

func (*UpdatePhotoRequest) ProtoMessage

func (*UpdatePhotoRequest) ProtoMessage()

func (*UpdatePhotoRequest) Reset

func (m *UpdatePhotoRequest) Reset()

func (*UpdatePhotoRequest) String

func (m *UpdatePhotoRequest) String() string

func (*UpdatePhotoRequest) XXX_DiscardUnknown

func (m *UpdatePhotoRequest) XXX_DiscardUnknown()

func (*UpdatePhotoRequest) XXX_Marshal

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

func (*UpdatePhotoRequest) XXX_Merge

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

func (*UpdatePhotoRequest) XXX_Size

func (m *UpdatePhotoRequest) XXX_Size() int

func (*UpdatePhotoRequest) XXX_Unmarshal

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

type UploadRef

type UploadRef struct {
	// Required. An upload reference should be unique for each user. It follows
	// the form:
	// "https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}"
	UploadUrl            string   `protobuf:"bytes,1,opt,name=upload_url,json=uploadUrl,proto3" json:"upload_url,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Upload reference for media files.

func (*UploadRef) Descriptor

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

func (*UploadRef) GetUploadUrl

func (m *UploadRef) GetUploadUrl() string

func (*UploadRef) ProtoMessage

func (*UploadRef) ProtoMessage()

func (*UploadRef) Reset

func (m *UploadRef) Reset()

func (*UploadRef) String

func (m *UploadRef) String() string

func (*UploadRef) XXX_DiscardUnknown

func (m *UploadRef) XXX_DiscardUnknown()

func (*UploadRef) XXX_Marshal

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

func (*UploadRef) XXX_Merge

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

func (*UploadRef) XXX_Size

func (m *UploadRef) XXX_Size() int

func (*UploadRef) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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