All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/streetview/publish/v1/rpcmessages.proto

package com.google.geo.ugc.streetview.publish.v1;

public final class StreetViewPublishRpcMessages {
  private StreetViewPublishRpcMessages() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * Specifies which view of the `Photo` should be included in the response.
   * 
* * Protobuf enum {@code google.streetview.publish.v1.PhotoView} */ public enum PhotoView implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Server reponses do not include the download URL for the photo bytes.
     * The default value.
     * 
* * BASIC = 0; */ BASIC(0), /** *
     * Server responses include the download URL for the photo bytes.
     * 
* * INCLUDE_DOWNLOAD_URL = 1; */ INCLUDE_DOWNLOAD_URL(1), UNRECOGNIZED(-1), ; /** *
     * Server reponses do not include the download URL for the photo bytes.
     * The default value.
     * 
* * BASIC = 0; */ public static final int BASIC_VALUE = 0; /** *
     * Server responses include the download URL for the photo bytes.
     * 
* * INCLUDE_DOWNLOAD_URL = 1; */ public static final int INCLUDE_DOWNLOAD_URL_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PhotoView valueOf(int value) { return forNumber(value); } public static PhotoView forNumber(int value) { switch (value) { case 0: return BASIC; case 1: return INCLUDE_DOWNLOAD_URL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PhotoView> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PhotoView findValueByNumber(int number) { return PhotoView.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.getDescriptor().getEnumTypes().get(0); } private static final PhotoView[] VALUES = values(); public static PhotoView valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private PhotoView(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.streetview.publish.v1.PhotoView) } public interface CreatePhotoRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.streetview.publish.v1.CreatePhotoRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Required. Photo to create.
     * 
* * .google.streetview.publish.v1.Photo photo = 1; */ boolean hasPhoto(); /** *
     * Required. Photo to create.
     * 
* * .google.streetview.publish.v1.Photo photo = 1; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo getPhoto(); /** *
     * Required. Photo to create.
     * 
* * .google.streetview.publish.v1.Photo photo = 1; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder getPhotoOrBuilder(); } /** *
   * Request to create a photo.
   * 
* * Protobuf type {@code google.streetview.publish.v1.CreatePhotoRequest} */ public static final class CreatePhotoRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.streetview.publish.v1.CreatePhotoRequest) CreatePhotoRequestOrBuilder { // Use CreatePhotoRequest.newBuilder() to construct. private CreatePhotoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreatePhotoRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CreatePhotoRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder subBuilder = null; if (photo_ != null) { subBuilder = photo_.toBuilder(); } photo_ = input.readMessage(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(photo_); photo_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_CreatePhotoRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_CreatePhotoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest.Builder.class); } public static final int PHOTO_FIELD_NUMBER = 1; private com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo photo_; /** *
     * Required. Photo to create.
     * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public boolean hasPhoto() { return photo_ != null; } /** *
     * Required. Photo to create.
     * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo getPhoto() { return photo_ == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.getDefaultInstance() : photo_; } /** *
     * Required. Photo to create.
     * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder getPhotoOrBuilder() { return getPhoto(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (photo_ != null) { output.writeMessage(1, getPhoto()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (photo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPhoto()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest)) { return super.equals(obj); } com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest other = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest) obj; boolean result = true; result = result && (hasPhoto() == other.hasPhoto()); if (hasPhoto()) { result = result && getPhoto() .equals(other.getPhoto()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPhoto()) { hash = (37 * hash) + PHOTO_FIELD_NUMBER; hash = (53 * hash) + getPhoto().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Request to create a photo.
     * 
* * Protobuf type {@code google.streetview.publish.v1.CreatePhotoRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.streetview.publish.v1.CreatePhotoRequest) com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_CreatePhotoRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_CreatePhotoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest.Builder.class); } // Construct using com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (photoBuilder_ == null) { photo_ = null; } else { photo_ = null; photoBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_CreatePhotoRequest_descriptor; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest getDefaultInstanceForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest.getDefaultInstance(); } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest build() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest buildPartial() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest result = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest(this); if (photoBuilder_ == null) { result.photo_ = photo_; } else { result.photo_ = photoBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest) { return mergeFrom((com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest other) { if (other == com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest.getDefaultInstance()) return this; if (other.hasPhoto()) { mergePhoto(other.getPhoto()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo photo_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder> photoBuilder_; /** *
       * Required. Photo to create.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public boolean hasPhoto() { return photoBuilder_ != null || photo_ != null; } /** *
       * Required. Photo to create.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo getPhoto() { if (photoBuilder_ == null) { return photo_ == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.getDefaultInstance() : photo_; } else { return photoBuilder_.getMessage(); } } /** *
       * Required. Photo to create.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public Builder setPhoto(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo value) { if (photoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } photo_ = value; onChanged(); } else { photoBuilder_.setMessage(value); } return this; } /** *
       * Required. Photo to create.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public Builder setPhoto( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder builderForValue) { if (photoBuilder_ == null) { photo_ = builderForValue.build(); onChanged(); } else { photoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Required. Photo to create.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public Builder mergePhoto(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo value) { if (photoBuilder_ == null) { if (photo_ != null) { photo_ = com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.newBuilder(photo_).mergeFrom(value).buildPartial(); } else { photo_ = value; } onChanged(); } else { photoBuilder_.mergeFrom(value); } return this; } /** *
       * Required. Photo to create.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public Builder clearPhoto() { if (photoBuilder_ == null) { photo_ = null; onChanged(); } else { photo_ = null; photoBuilder_ = null; } return this; } /** *
       * Required. Photo to create.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder getPhotoBuilder() { onChanged(); return getPhotoFieldBuilder().getBuilder(); } /** *
       * Required. Photo to create.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder getPhotoOrBuilder() { if (photoBuilder_ != null) { return photoBuilder_.getMessageOrBuilder(); } else { return photo_ == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.getDefaultInstance() : photo_; } } /** *
       * Required. Photo to create.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder> getPhotoFieldBuilder() { if (photoBuilder_ == null) { photoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder>( getPhoto(), getParentForChildren(), isClean()); photo_ = null; } return photoBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.streetview.publish.v1.CreatePhotoRequest) } // @@protoc_insertion_point(class_scope:google.streetview.publish.v1.CreatePhotoRequest) private static final com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest(); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CreatePhotoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreatePhotoRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.CreatePhotoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetPhotoRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.streetview.publish.v1.GetPhotoRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Required. ID of the photo.
     * 
* * string photo_id = 1; */ java.lang.String getPhotoId(); /** *
     * Required. ID of the photo.
     * 
* * string photo_id = 1; */ com.google.protobuf.ByteString getPhotoIdBytes(); /** *
     * Specifies if a download URL for the photo bytes should be returned in the
     * Photo response.
     * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ int getViewValue(); /** *
     * Specifies if a download URL for the photo bytes should be returned in the
     * Photo response.
     * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView getView(); } /** *
   * Request to get a photo.
   * By default
   * - does not return the download URL for the photo bytes.
   * Parameters:
   * - 'view' controls if the download URL for the photo bytes will be returned.
   * 
* * Protobuf type {@code google.streetview.publish.v1.GetPhotoRequest} */ public static final class GetPhotoRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.streetview.publish.v1.GetPhotoRequest) GetPhotoRequestOrBuilder { // Use GetPhotoRequest.newBuilder() to construct. private GetPhotoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetPhotoRequest() { photoId_ = ""; view_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetPhotoRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); photoId_ = s; break; } case 16: { int rawValue = input.readEnum(); view_ = rawValue; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_GetPhotoRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_GetPhotoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest.Builder.class); } public static final int PHOTO_ID_FIELD_NUMBER = 1; private volatile java.lang.Object photoId_; /** *
     * Required. ID of the photo.
     * 
* * string photo_id = 1; */ public java.lang.String getPhotoId() { java.lang.Object ref = photoId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); photoId_ = s; return s; } } /** *
     * Required. ID of the photo.
     * 
* * string photo_id = 1; */ public com.google.protobuf.ByteString getPhotoIdBytes() { java.lang.Object ref = photoId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); photoId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VIEW_FIELD_NUMBER = 2; private int view_; /** *
     * Specifies if a download URL for the photo bytes should be returned in the
     * Photo response.
     * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ public int getViewValue() { return view_; } /** *
     * Specifies if a download URL for the photo bytes should be returned in the
     * Photo response.
     * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView getView() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView result = com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.valueOf(view_); return result == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getPhotoIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, photoId_); } if (view_ != com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.BASIC.getNumber()) { output.writeEnum(2, view_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getPhotoIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, photoId_); } if (view_ != com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.BASIC.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, view_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest)) { return super.equals(obj); } com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest other = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest) obj; boolean result = true; result = result && getPhotoId() .equals(other.getPhotoId()); result = result && view_ == other.view_; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PHOTO_ID_FIELD_NUMBER; hash = (53 * hash) + getPhotoId().hashCode(); hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + view_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Request to get a photo.
     * By default
     * - does not return the download URL for the photo bytes.
     * Parameters:
     * - 'view' controls if the download URL for the photo bytes will be returned.
     * 
* * Protobuf type {@code google.streetview.publish.v1.GetPhotoRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.streetview.publish.v1.GetPhotoRequest) com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_GetPhotoRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_GetPhotoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest.Builder.class); } // Construct using com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); photoId_ = ""; view_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_GetPhotoRequest_descriptor; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest getDefaultInstanceForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest.getDefaultInstance(); } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest build() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest buildPartial() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest result = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest(this); result.photoId_ = photoId_; result.view_ = view_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest) { return mergeFrom((com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest other) { if (other == com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest.getDefaultInstance()) return this; if (!other.getPhotoId().isEmpty()) { photoId_ = other.photoId_; onChanged(); } if (other.view_ != 0) { setViewValue(other.getViewValue()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object photoId_ = ""; /** *
       * Required. ID of the photo.
       * 
* * string photo_id = 1; */ public java.lang.String getPhotoId() { java.lang.Object ref = photoId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); photoId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. ID of the photo.
       * 
* * string photo_id = 1; */ public com.google.protobuf.ByteString getPhotoIdBytes() { java.lang.Object ref = photoId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); photoId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. ID of the photo.
       * 
* * string photo_id = 1; */ public Builder setPhotoId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } photoId_ = value; onChanged(); return this; } /** *
       * Required. ID of the photo.
       * 
* * string photo_id = 1; */ public Builder clearPhotoId() { photoId_ = getDefaultInstance().getPhotoId(); onChanged(); return this; } /** *
       * Required. ID of the photo.
       * 
* * string photo_id = 1; */ public Builder setPhotoIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); photoId_ = value; onChanged(); return this; } private int view_ = 0; /** *
       * Specifies if a download URL for the photo bytes should be returned in the
       * Photo response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ public int getViewValue() { return view_; } /** *
       * Specifies if a download URL for the photo bytes should be returned in the
       * Photo response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ public Builder setViewValue(int value) { view_ = value; onChanged(); return this; } /** *
       * Specifies if a download URL for the photo bytes should be returned in the
       * Photo response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView getView() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView result = com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.valueOf(view_); return result == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.UNRECOGNIZED : result; } /** *
       * Specifies if a download URL for the photo bytes should be returned in the
       * Photo response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ public Builder setView(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView value) { if (value == null) { throw new NullPointerException(); } view_ = value.getNumber(); onChanged(); return this; } /** *
       * Specifies if a download URL for the photo bytes should be returned in the
       * Photo response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ public Builder clearView() { view_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.streetview.publish.v1.GetPhotoRequest) } // @@protoc_insertion_point(class_scope:google.streetview.publish.v1.GetPhotoRequest) private static final com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest(); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetPhotoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetPhotoRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.GetPhotoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchGetPhotosRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.streetview.publish.v1.BatchGetPhotosRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
     * should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ java.util.List getPhotoIdsList(); /** *
     * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
     * should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ int getPhotoIdsCount(); /** *
     * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
     * should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ java.lang.String getPhotoIds(int index); /** *
     * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
     * should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ com.google.protobuf.ByteString getPhotoIdsBytes(int index); /** *
     * Specifies if a download URL for the photo bytes should be returned in the
     * Photo response.
     * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ int getViewValue(); /** *
     * Specifies if a download URL for the photo bytes should be returned in the
     * Photo response.
     * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView getView(); } /** *
   * Request to get one or more photos.
   * By default
   * - does not return the download URL for the photo bytes.
   * Parameters:
   * - 'view' controls if the download URL for the photo bytes will be returned.
   * 
* * Protobuf type {@code google.streetview.publish.v1.BatchGetPhotosRequest} */ public static final class BatchGetPhotosRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.streetview.publish.v1.BatchGetPhotosRequest) BatchGetPhotosRequestOrBuilder { // Use BatchGetPhotosRequest.newBuilder() to construct. private BatchGetPhotosRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchGetPhotosRequest() { photoIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; view_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BatchGetPhotosRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { photoIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } photoIds_.add(s); break; } case 16: { int rawValue = input.readEnum(); view_ = rawValue; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { photoIds_ = photoIds_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchGetPhotosRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchGetPhotosRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest.Builder.class); } private int bitField0_; public static final int PHOTO_IDS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList photoIds_; /** *
     * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
     * should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ public com.google.protobuf.ProtocolStringList getPhotoIdsList() { return photoIds_; } /** *
     * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
     * should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ public int getPhotoIdsCount() { return photoIds_.size(); } /** *
     * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
     * should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ public java.lang.String getPhotoIds(int index) { return photoIds_.get(index); } /** *
     * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
     * should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ public com.google.protobuf.ByteString getPhotoIdsBytes(int index) { return photoIds_.getByteString(index); } public static final int VIEW_FIELD_NUMBER = 2; private int view_; /** *
     * Specifies if a download URL for the photo bytes should be returned in the
     * Photo response.
     * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ public int getViewValue() { return view_; } /** *
     * Specifies if a download URL for the photo bytes should be returned in the
     * Photo response.
     * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView getView() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView result = com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.valueOf(view_); return result == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < photoIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, photoIds_.getRaw(i)); } if (view_ != com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.BASIC.getNumber()) { output.writeEnum(2, view_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < photoIds_.size(); i++) { dataSize += computeStringSizeNoTag(photoIds_.getRaw(i)); } size += dataSize; size += 1 * getPhotoIdsList().size(); } if (view_ != com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.BASIC.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, view_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest)) { return super.equals(obj); } com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest other = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest) obj; boolean result = true; result = result && getPhotoIdsList() .equals(other.getPhotoIdsList()); result = result && view_ == other.view_; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPhotoIdsCount() > 0) { hash = (37 * hash) + PHOTO_IDS_FIELD_NUMBER; hash = (53 * hash) + getPhotoIdsList().hashCode(); } hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + view_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Request to get one or more photos.
     * By default
     * - does not return the download URL for the photo bytes.
     * Parameters:
     * - 'view' controls if the download URL for the photo bytes will be returned.
     * 
* * Protobuf type {@code google.streetview.publish.v1.BatchGetPhotosRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.streetview.publish.v1.BatchGetPhotosRequest) com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchGetPhotosRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchGetPhotosRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest.Builder.class); } // Construct using com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); photoIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); view_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchGetPhotosRequest_descriptor; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest getDefaultInstanceForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest.getDefaultInstance(); } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest build() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest buildPartial() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest result = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { photoIds_ = photoIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.photoIds_ = photoIds_; result.view_ = view_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest) { return mergeFrom((com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest other) { if (other == com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest.getDefaultInstance()) return this; if (!other.photoIds_.isEmpty()) { if (photoIds_.isEmpty()) { photoIds_ = other.photoIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePhotoIdsIsMutable(); photoIds_.addAll(other.photoIds_); } onChanged(); } if (other.view_ != 0) { setViewValue(other.getViewValue()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList photoIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePhotoIdsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { photoIds_ = new com.google.protobuf.LazyStringArrayList(photoIds_); bitField0_ |= 0x00000001; } } /** *
       * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
       * should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public com.google.protobuf.ProtocolStringList getPhotoIdsList() { return photoIds_.getUnmodifiableView(); } /** *
       * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
       * should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public int getPhotoIdsCount() { return photoIds_.size(); } /** *
       * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
       * should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public java.lang.String getPhotoIds(int index) { return photoIds_.get(index); } /** *
       * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
       * should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public com.google.protobuf.ByteString getPhotoIdsBytes(int index) { return photoIds_.getByteString(index); } /** *
       * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
       * should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public Builder setPhotoIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePhotoIdsIsMutable(); photoIds_.set(index, value); onChanged(); return this; } /** *
       * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
       * should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public Builder addPhotoIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePhotoIdsIsMutable(); photoIds_.add(value); onChanged(); return this; } /** *
       * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
       * should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public Builder addAllPhotoIds( java.lang.Iterable values) { ensurePhotoIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, photoIds_); onChanged(); return this; } /** *
       * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
       * should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public Builder clearPhotoIds() { photoIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Required. IDs of the photos. For HTTP GET requests, the URL query parameter
       * should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public Builder addPhotoIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePhotoIdsIsMutable(); photoIds_.add(value); onChanged(); return this; } private int view_ = 0; /** *
       * Specifies if a download URL for the photo bytes should be returned in the
       * Photo response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ public int getViewValue() { return view_; } /** *
       * Specifies if a download URL for the photo bytes should be returned in the
       * Photo response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ public Builder setViewValue(int value) { view_ = value; onChanged(); return this; } /** *
       * Specifies if a download URL for the photo bytes should be returned in the
       * Photo response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView getView() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView result = com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.valueOf(view_); return result == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.UNRECOGNIZED : result; } /** *
       * Specifies if a download URL for the photo bytes should be returned in the
       * Photo response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ public Builder setView(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView value) { if (value == null) { throw new NullPointerException(); } view_ = value.getNumber(); onChanged(); return this; } /** *
       * Specifies if a download URL for the photo bytes should be returned in the
       * Photo response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 2; */ public Builder clearView() { view_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.streetview.publish.v1.BatchGetPhotosRequest) } // @@protoc_insertion_point(class_scope:google.streetview.publish.v1.BatchGetPhotosRequest) private static final com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest(); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchGetPhotosRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchGetPhotosRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchGetPhotosResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.streetview.publish.v1.BatchGetPhotosResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of results for each individual photo requested, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ java.util.List getResultsList(); /** *
     * List of results for each individual photo requested, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse getResults(int index); /** *
     * List of results for each individual photo requested, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ int getResultsCount(); /** *
     * List of results for each individual photo requested, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ java.util.List getResultsOrBuilderList(); /** *
     * List of results for each individual photo requested, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponseOrBuilder getResultsOrBuilder( int index); } /** *
   * Response to batch get of photos.
   * 
* * Protobuf type {@code google.streetview.publish.v1.BatchGetPhotosResponse} */ public static final class BatchGetPhotosResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.streetview.publish.v1.BatchGetPhotosResponse) BatchGetPhotosResponseOrBuilder { // Use BatchGetPhotosResponse.newBuilder() to construct. private BatchGetPhotosResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchGetPhotosResponse() { results_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BatchGetPhotosResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { results_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } results_.add( input.readMessage(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { results_ = java.util.Collections.unmodifiableList(results_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchGetPhotosResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchGetPhotosResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** *
     * List of results for each individual photo requested, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public java.util.List getResultsList() { return results_; } /** *
     * List of results for each individual photo requested, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public java.util.List getResultsOrBuilderList() { return results_; } /** *
     * List of results for each individual photo requested, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public int getResultsCount() { return results_.size(); } /** *
     * List of results for each individual photo requested, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse getResults(int index) { return results_.get(index); } /** *
     * List of results for each individual photo requested, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponseOrBuilder getResultsOrBuilder( int index) { return results_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < results_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, results_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse)) { return super.equals(obj); } com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse other = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse) obj; boolean result = true; result = result && getResultsList() .equals(other.getResultsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Response to batch get of photos.
     * 
* * Protobuf type {@code google.streetview.publish.v1.BatchGetPhotosResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.streetview.publish.v1.BatchGetPhotosResponse) com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchGetPhotosResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchGetPhotosResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse.Builder.class); } // Construct using com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResultsFieldBuilder(); } } public Builder clear() { super.clear(); if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resultsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchGetPhotosResponse_descriptor; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse getDefaultInstanceForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse.getDefaultInstance(); } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse build() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse buildPartial() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse result = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { results_ = java.util.Collections.unmodifiableList(results_); bitField0_ = (bitField0_ & ~0x00000001); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse) { return mergeFrom((com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse other) { if (other == com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse.getDefaultInstance()) return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResultsIsMutable(); results_.addAll(other.results_); } onChanged(); } } else { if (!other.results_.isEmpty()) { if (resultsBuilder_.isEmpty()) { resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponseOrBuilder> resultsBuilder_; /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { return resultsBuilder_.getMessageList(); } } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public int getResultsCount() { if (resultsBuilder_ == null) { return results_.size(); } else { return resultsBuilder_.getCount(); } } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse getResults(int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessage(index); } } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder setResults( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.set(index, value); onChanged(); } else { resultsBuilder_.setMessage(index, value); } return this; } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder setResults( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); onChanged(); } else { resultsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder addResults(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(value); onChanged(); } else { resultsBuilder_.addMessage(value); } return this; } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder addResults( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(index, value); onChanged(); } else { resultsBuilder_.addMessage(index, value); } return this; } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder addResults( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(builderForValue.build()); onChanged(); } else { resultsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder addResults( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); onChanged(); } else { resultsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder addAllResults( java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); } return this; } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resultsBuilder_.clear(); } return this; } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.remove(index); onChanged(); } else { resultsBuilder_.remove(index); } return this; } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder getResultsBuilder( int index) { return getResultsFieldBuilder().getBuilder(index); } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponseOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public java.util.List getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(results_); } } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder addResultsBuilder() { return getResultsFieldBuilder().addBuilder( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.getDefaultInstance()); } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder addResultsBuilder( int index) { return getResultsFieldBuilder().addBuilder( index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.getDefaultInstance()); } /** *
       * List of results for each individual photo requested, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public java.util.List getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponseOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponseOrBuilder>( results_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.streetview.publish.v1.BatchGetPhotosResponse) } // @@protoc_insertion_point(class_scope:google.streetview.publish.v1.BatchGetPhotosResponse) private static final com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse(); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchGetPhotosResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchGetPhotosResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchGetPhotosResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PhotoResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.streetview.publish.v1.PhotoResponse) com.google.protobuf.MessageOrBuilder { /** *
     * The status for the operation to get or update a single photo in the batch
     * request.
     * 
* * .google.rpc.Status status = 1; */ boolean hasStatus(); /** *
     * The status for the operation to get or update a single photo in the batch
     * request.
     * 
* * .google.rpc.Status status = 1; */ com.google.rpc.Status getStatus(); /** *
     * The status for the operation to get or update a single photo in the batch
     * request.
     * 
* * .google.rpc.Status status = 1; */ com.google.rpc.StatusOrBuilder getStatusOrBuilder(); /** *
     * The photo resource, if the request was successful.
     * 
* * .google.streetview.publish.v1.Photo photo = 2; */ boolean hasPhoto(); /** *
     * The photo resource, if the request was successful.
     * 
* * .google.streetview.publish.v1.Photo photo = 2; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo getPhoto(); /** *
     * The photo resource, if the request was successful.
     * 
* * .google.streetview.publish.v1.Photo photo = 2; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder getPhotoOrBuilder(); } /** *
   * Response payload for a single `Photo` in batch operations including
   * `BatchGetPhotosRequest` and `BatchUpdatePhotosRequest`.
   * 
* * Protobuf type {@code google.streetview.publish.v1.PhotoResponse} */ public static final class PhotoResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.streetview.publish.v1.PhotoResponse) PhotoResponseOrBuilder { // Use PhotoResponse.newBuilder() to construct. private PhotoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PhotoResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PhotoResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { com.google.rpc.Status.Builder subBuilder = null; if (status_ != null) { subBuilder = status_.toBuilder(); } status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(status_); status_ = subBuilder.buildPartial(); } break; } case 18: { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder subBuilder = null; if (photo_ != null) { subBuilder = photo_.toBuilder(); } photo_ = input.readMessage(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(photo_); photo_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_PhotoResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_PhotoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private com.google.rpc.Status status_; /** *
     * The status for the operation to get or update a single photo in the batch
     * request.
     * 
* * .google.rpc.Status status = 1; */ public boolean hasStatus() { return status_ != null; } /** *
     * The status for the operation to get or update a single photo in the batch
     * request.
     * 
* * .google.rpc.Status status = 1; */ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** *
     * The status for the operation to get or update a single photo in the batch
     * request.
     * 
* * .google.rpc.Status status = 1; */ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { return getStatus(); } public static final int PHOTO_FIELD_NUMBER = 2; private com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo photo_; /** *
     * The photo resource, if the request was successful.
     * 
* * .google.streetview.publish.v1.Photo photo = 2; */ public boolean hasPhoto() { return photo_ != null; } /** *
     * The photo resource, if the request was successful.
     * 
* * .google.streetview.publish.v1.Photo photo = 2; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo getPhoto() { return photo_ == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.getDefaultInstance() : photo_; } /** *
     * The photo resource, if the request was successful.
     * 
* * .google.streetview.publish.v1.Photo photo = 2; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder getPhotoOrBuilder() { return getPhoto(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (status_ != null) { output.writeMessage(1, getStatus()); } if (photo_ != null) { output.writeMessage(2, getPhoto()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStatus()); } if (photo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPhoto()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse)) { return super.equals(obj); } com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse other = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse) obj; boolean result = true; result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && getStatus() .equals(other.getStatus()); } result = result && (hasPhoto() == other.hasPhoto()); if (hasPhoto()) { result = result && getPhoto() .equals(other.getPhoto()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasPhoto()) { hash = (37 * hash) + PHOTO_FIELD_NUMBER; hash = (53 * hash) + getPhoto().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Response payload for a single `Photo` in batch operations including
     * `BatchGetPhotosRequest` and `BatchUpdatePhotosRequest`.
     * 
* * Protobuf type {@code google.streetview.publish.v1.PhotoResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.streetview.publish.v1.PhotoResponse) com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_PhotoResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_PhotoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder.class); } // Construct using com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (statusBuilder_ == null) { status_ = null; } else { status_ = null; statusBuilder_ = null; } if (photoBuilder_ == null) { photo_ = null; } else { photo_ = null; photoBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_PhotoResponse_descriptor; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse getDefaultInstanceForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.getDefaultInstance(); } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse build() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse buildPartial() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse result = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse(this); if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } if (photoBuilder_ == null) { result.photo_ = photo_; } else { result.photo_ = photoBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse) { return mergeFrom((com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse other) { if (other == com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (other.hasPhoto()) { mergePhoto(other.getPhoto()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.rpc.Status status_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; /** *
       * The status for the operation to get or update a single photo in the batch
       * request.
       * 
* * .google.rpc.Status status = 1; */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** *
       * The status for the operation to get or update a single photo in the batch
       * request.
       * 
* * .google.rpc.Status status = 1; */ public com.google.rpc.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** *
       * The status for the operation to get or update a single photo in the batch
       * request.
       * 
* * .google.rpc.Status status = 1; */ public Builder setStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } return this; } /** *
       * The status for the operation to get or update a single photo in the batch
       * request.
       * 
* * .google.rpc.Status status = 1; */ public Builder setStatus( com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The status for the operation to get or update a single photo in the batch
       * request.
       * 
* * .google.rpc.Status status = 1; */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } return this; } /** *
       * The status for the operation to get or update a single photo in the batch
       * request.
       * 
* * .google.rpc.Status status = 1; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { status_ = null; statusBuilder_ = null; } return this; } /** *
       * The status for the operation to get or update a single photo in the batch
       * request.
       * 
* * .google.rpc.Status status = 1; */ public com.google.rpc.Status.Builder getStatusBuilder() { onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
       * The status for the operation to get or update a single photo in the batch
       * request.
       * 
* * .google.rpc.Status status = 1; */ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** *
       * The status for the operation to get or update a single photo in the batch
       * request.
       * 
* * .google.rpc.Status status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo photo_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder> photoBuilder_; /** *
       * The photo resource, if the request was successful.
       * 
* * .google.streetview.publish.v1.Photo photo = 2; */ public boolean hasPhoto() { return photoBuilder_ != null || photo_ != null; } /** *
       * The photo resource, if the request was successful.
       * 
* * .google.streetview.publish.v1.Photo photo = 2; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo getPhoto() { if (photoBuilder_ == null) { return photo_ == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.getDefaultInstance() : photo_; } else { return photoBuilder_.getMessage(); } } /** *
       * The photo resource, if the request was successful.
       * 
* * .google.streetview.publish.v1.Photo photo = 2; */ public Builder setPhoto(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo value) { if (photoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } photo_ = value; onChanged(); } else { photoBuilder_.setMessage(value); } return this; } /** *
       * The photo resource, if the request was successful.
       * 
* * .google.streetview.publish.v1.Photo photo = 2; */ public Builder setPhoto( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder builderForValue) { if (photoBuilder_ == null) { photo_ = builderForValue.build(); onChanged(); } else { photoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The photo resource, if the request was successful.
       * 
* * .google.streetview.publish.v1.Photo photo = 2; */ public Builder mergePhoto(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo value) { if (photoBuilder_ == null) { if (photo_ != null) { photo_ = com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.newBuilder(photo_).mergeFrom(value).buildPartial(); } else { photo_ = value; } onChanged(); } else { photoBuilder_.mergeFrom(value); } return this; } /** *
       * The photo resource, if the request was successful.
       * 
* * .google.streetview.publish.v1.Photo photo = 2; */ public Builder clearPhoto() { if (photoBuilder_ == null) { photo_ = null; onChanged(); } else { photo_ = null; photoBuilder_ = null; } return this; } /** *
       * The photo resource, if the request was successful.
       * 
* * .google.streetview.publish.v1.Photo photo = 2; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder getPhotoBuilder() { onChanged(); return getPhotoFieldBuilder().getBuilder(); } /** *
       * The photo resource, if the request was successful.
       * 
* * .google.streetview.publish.v1.Photo photo = 2; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder getPhotoOrBuilder() { if (photoBuilder_ != null) { return photoBuilder_.getMessageOrBuilder(); } else { return photo_ == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.getDefaultInstance() : photo_; } } /** *
       * The photo resource, if the request was successful.
       * 
* * .google.streetview.publish.v1.Photo photo = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder> getPhotoFieldBuilder() { if (photoBuilder_ == null) { photoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder>( getPhoto(), getParentForChildren(), isClean()); photo_ = null; } return photoBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.streetview.publish.v1.PhotoResponse) } // @@protoc_insertion_point(class_scope:google.streetview.publish.v1.PhotoResponse) private static final com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse(); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PhotoResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PhotoResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListPhotosRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.streetview.publish.v1.ListPhotosRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies if a download URL for the photos bytes should be returned in the
     * Photos response.
     * 
* * .google.streetview.publish.v1.PhotoView view = 1; */ int getViewValue(); /** *
     * Specifies if a download URL for the photos bytes should be returned in the
     * Photos response.
     * 
* * .google.streetview.publish.v1.PhotoView view = 1; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView getView(); /** *
     * The maximum number of photos to return.
     * `page_size` must be non-negative. If `page_size` is zero or is not
     * provided, the default page size of 100 will be used.
     * The number of photos returned in the response may be less than `page_size`
     * if the number of photos that belong to the user is less than `page_size`.
     * 
* * int32 page_size = 2; */ int getPageSize(); /** *
     * The next_page_token value returned from a previous List request, if any.
     * 
* * string page_token = 3; */ java.lang.String getPageToken(); /** *
     * The next_page_token value returned from a previous List request, if any.
     * 
* * string page_token = 3; */ com.google.protobuf.ByteString getPageTokenBytes(); /** *
     * The filter expression.
     * Example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`
     * 
* * string filter = 4; */ java.lang.String getFilter(); /** *
     * The filter expression.
     * Example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`
     * 
* * string filter = 4; */ com.google.protobuf.ByteString getFilterBytes(); } /** *
   * 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 will be returned.
   * - 'page_size' determines the maximum number of photos to return.
   * - 'page_token' is the next page token value returned from a previous List
   *     request, if any.
   * 
* * Protobuf type {@code google.streetview.publish.v1.ListPhotosRequest} */ public static final class ListPhotosRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.streetview.publish.v1.ListPhotosRequest) ListPhotosRequestOrBuilder { // Use ListPhotosRequest.newBuilder() to construct. private ListPhotosRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListPhotosRequest() { view_ = 0; pageSize_ = 0; pageToken_ = ""; filter_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ListPhotosRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); view_ = rawValue; break; } case 16: { pageSize_ = input.readInt32(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); filter_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_ListPhotosRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_ListPhotosRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest.Builder.class); } public static final int VIEW_FIELD_NUMBER = 1; private int view_; /** *
     * Specifies if a download URL for the photos bytes should be returned in the
     * Photos response.
     * 
* * .google.streetview.publish.v1.PhotoView view = 1; */ public int getViewValue() { return view_; } /** *
     * Specifies if a download URL for the photos bytes should be returned in the
     * Photos response.
     * 
* * .google.streetview.publish.v1.PhotoView view = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView getView() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView result = com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.valueOf(view_); return result == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.UNRECOGNIZED : result; } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** *
     * The maximum number of photos to return.
     * `page_size` must be non-negative. If `page_size` is zero or is not
     * provided, the default page size of 100 will be used.
     * The number of photos returned in the response may be less than `page_size`
     * if the number of photos that belong to the user is less than `page_size`.
     * 
* * int32 page_size = 2; */ public int getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** *
     * The next_page_token value returned from a previous List request, if any.
     * 
* * string page_token = 3; */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** *
     * The next_page_token value returned from a previous List request, if any.
     * 
* * string page_token = 3; */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** *
     * The filter expression.
     * Example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`
     * 
* * string filter = 4; */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** *
     * The filter expression.
     * Example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`
     * 
* * string filter = 4; */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (view_ != com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.BASIC.getNumber()) { output.writeEnum(1, view_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } if (!getFilterBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (view_ != com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.BASIC.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, view_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, pageSize_); } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (!getFilterBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest)) { return super.equals(obj); } com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest other = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest) obj; boolean result = true; result = result && view_ == other.view_; result = result && (getPageSize() == other.getPageSize()); result = result && getPageToken() .equals(other.getPageToken()); result = result && getFilter() .equals(other.getFilter()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + view_; hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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 will be returned.
     * - 'page_size' determines the maximum number of photos to return.
     * - 'page_token' is the next page token value returned from a previous List
     *     request, if any.
     * 
* * Protobuf type {@code google.streetview.publish.v1.ListPhotosRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.streetview.publish.v1.ListPhotosRequest) com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_ListPhotosRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_ListPhotosRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest.Builder.class); } // Construct using com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); view_ = 0; pageSize_ = 0; pageToken_ = ""; filter_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_ListPhotosRequest_descriptor; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest getDefaultInstanceForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest.getDefaultInstance(); } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest build() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest buildPartial() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest result = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest(this); result.view_ = view_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.filter_ = filter_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest) { return mergeFrom((com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest other) { if (other == com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest.getDefaultInstance()) return this; if (other.view_ != 0) { setViewValue(other.getViewValue()); } if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int view_ = 0; /** *
       * Specifies if a download URL for the photos bytes should be returned in the
       * Photos response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 1; */ public int getViewValue() { return view_; } /** *
       * Specifies if a download URL for the photos bytes should be returned in the
       * Photos response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 1; */ public Builder setViewValue(int value) { view_ = value; onChanged(); return this; } /** *
       * Specifies if a download URL for the photos bytes should be returned in the
       * Photos response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView getView() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView result = com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.valueOf(view_); return result == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView.UNRECOGNIZED : result; } /** *
       * Specifies if a download URL for the photos bytes should be returned in the
       * Photos response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 1; */ public Builder setView(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoView value) { if (value == null) { throw new NullPointerException(); } view_ = value.getNumber(); onChanged(); return this; } /** *
       * Specifies if a download URL for the photos bytes should be returned in the
       * Photos response.
       * 
* * .google.streetview.publish.v1.PhotoView view = 1; */ public Builder clearView() { view_ = 0; onChanged(); return this; } private int pageSize_ ; /** *
       * The maximum number of photos to return.
       * `page_size` must be non-negative. If `page_size` is zero or is not
       * provided, the default page size of 100 will be used.
       * The number of photos returned in the response may be less than `page_size`
       * if the number of photos that belong to the user is less than `page_size`.
       * 
* * int32 page_size = 2; */ public int getPageSize() { return pageSize_; } /** *
       * The maximum number of photos to return.
       * `page_size` must be non-negative. If `page_size` is zero or is not
       * provided, the default page size of 100 will be used.
       * The number of photos returned in the response may be less than `page_size`
       * if the number of photos that belong to the user is less than `page_size`.
       * 
* * int32 page_size = 2; */ public Builder setPageSize(int value) { pageSize_ = value; onChanged(); return this; } /** *
       * The maximum number of photos to return.
       * `page_size` must be non-negative. If `page_size` is zero or is not
       * provided, the default page size of 100 will be used.
       * The number of photos returned in the response may be less than `page_size`
       * if the number of photos that belong to the user is less than `page_size`.
       * 
* * int32 page_size = 2; */ public Builder clearPageSize() { pageSize_ = 0; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** *
       * The next_page_token value returned from a previous List request, if any.
       * 
* * string page_token = 3; */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The next_page_token value returned from a previous List request, if any.
       * 
* * string page_token = 3; */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The next_page_token value returned from a previous List request, if any.
       * 
* * string page_token = 3; */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /** *
       * The next_page_token value returned from a previous List request, if any.
       * 
* * string page_token = 3; */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** *
       * The next_page_token value returned from a previous List request, if any.
       * 
* * string page_token = 3; */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; } private java.lang.Object filter_ = ""; /** *
       * The filter expression.
       * Example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`
       * 
* * string filter = 4; */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The filter expression.
       * Example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`
       * 
* * string filter = 4; */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The filter expression.
       * Example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`
       * 
* * string filter = 4; */ public Builder setFilter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); return this; } /** *
       * The filter expression.
       * Example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`
       * 
* * string filter = 4; */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** *
       * The filter expression.
       * Example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`
       * 
* * string filter = 4; */ public Builder setFilterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.streetview.publish.v1.ListPhotosRequest) } // @@protoc_insertion_point(class_scope:google.streetview.publish.v1.ListPhotosRequest) private static final com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest(); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ListPhotosRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListPhotosRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListPhotosResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.streetview.publish.v1.ListPhotosResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of photos. There will be a maximum number of items returned based on
     * the page_size field in the request.
     * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ java.util.List getPhotosList(); /** *
     * List of photos. There will be a maximum number of items returned based on
     * the page_size field in the request.
     * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo getPhotos(int index); /** *
     * List of photos. There will be a maximum number of items returned based on
     * the page_size field in the request.
     * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ int getPhotosCount(); /** *
     * List of photos. There will be a maximum number of items returned based on
     * the page_size field in the request.
     * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ java.util.List getPhotosOrBuilderList(); /** *
     * List of photos. There will be a maximum number of items returned based on
     * the page_size field in the request.
     * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder getPhotosOrBuilder( int index); /** *
     * Token to retrieve the next page of results, or empty if there are no
     * more results in the list.
     * 
* * string next_page_token = 2; */ java.lang.String getNextPageToken(); /** *
     * Token to retrieve the next page of results, or empty if there are no
     * more results in the list.
     * 
* * string next_page_token = 2; */ com.google.protobuf.ByteString getNextPageTokenBytes(); } /** *
   * Response to list all photos that belong to a user.
   * 
* * Protobuf type {@code google.streetview.publish.v1.ListPhotosResponse} */ public static final class ListPhotosResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.streetview.publish.v1.ListPhotosResponse) ListPhotosResponseOrBuilder { // Use ListPhotosResponse.newBuilder() to construct. private ListPhotosResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListPhotosResponse() { photos_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ListPhotosResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { photos_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } photos_.add( input.readMessage(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { photos_ = java.util.Collections.unmodifiableList(photos_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_ListPhotosResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_ListPhotosResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse.Builder.class); } private int bitField0_; public static final int PHOTOS_FIELD_NUMBER = 1; private java.util.List photos_; /** *
     * List of photos. There will be a maximum number of items returned based on
     * the page_size field in the request.
     * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public java.util.List getPhotosList() { return photos_; } /** *
     * List of photos. There will be a maximum number of items returned based on
     * the page_size field in the request.
     * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public java.util.List getPhotosOrBuilderList() { return photos_; } /** *
     * List of photos. There will be a maximum number of items returned based on
     * the page_size field in the request.
     * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public int getPhotosCount() { return photos_.size(); } /** *
     * List of photos. There will be a maximum number of items returned based on
     * the page_size field in the request.
     * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo getPhotos(int index) { return photos_.get(index); } /** *
     * List of photos. There will be a maximum number of items returned based on
     * the page_size field in the request.
     * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder getPhotosOrBuilder( int index) { return photos_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** *
     * Token to retrieve the next page of results, or empty if there are no
     * more results in the list.
     * 
* * string next_page_token = 2; */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** *
     * Token to retrieve the next page of results, or empty if there are no
     * more results in the list.
     * 
* * string next_page_token = 2; */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < photos_.size(); i++) { output.writeMessage(1, photos_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < photos_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, photos_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse)) { return super.equals(obj); } com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse other = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse) obj; boolean result = true; result = result && getPhotosList() .equals(other.getPhotosList()); result = result && getNextPageToken() .equals(other.getNextPageToken()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPhotosCount() > 0) { hash = (37 * hash) + PHOTOS_FIELD_NUMBER; hash = (53 * hash) + getPhotosList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Response to list all photos that belong to a user.
     * 
* * Protobuf type {@code google.streetview.publish.v1.ListPhotosResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.streetview.publish.v1.ListPhotosResponse) com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_ListPhotosResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_ListPhotosResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse.Builder.class); } // Construct using com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPhotosFieldBuilder(); } } public Builder clear() { super.clear(); if (photosBuilder_ == null) { photos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { photosBuilder_.clear(); } nextPageToken_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_ListPhotosResponse_descriptor; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse getDefaultInstanceForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse.getDefaultInstance(); } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse build() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse buildPartial() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse result = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (photosBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { photos_ = java.util.Collections.unmodifiableList(photos_); bitField0_ = (bitField0_ & ~0x00000001); } result.photos_ = photos_; } else { result.photos_ = photosBuilder_.build(); } result.nextPageToken_ = nextPageToken_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse) { return mergeFrom((com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse other) { if (other == com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse.getDefaultInstance()) return this; if (photosBuilder_ == null) { if (!other.photos_.isEmpty()) { if (photos_.isEmpty()) { photos_ = other.photos_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePhotosIsMutable(); photos_.addAll(other.photos_); } onChanged(); } } else { if (!other.photos_.isEmpty()) { if (photosBuilder_.isEmpty()) { photosBuilder_.dispose(); photosBuilder_ = null; photos_ = other.photos_; bitField0_ = (bitField0_ & ~0x00000001); photosBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPhotosFieldBuilder() : null; } else { photosBuilder_.addAllMessages(other.photos_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List photos_ = java.util.Collections.emptyList(); private void ensurePhotosIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { photos_ = new java.util.ArrayList(photos_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder> photosBuilder_; /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public java.util.List getPhotosList() { if (photosBuilder_ == null) { return java.util.Collections.unmodifiableList(photos_); } else { return photosBuilder_.getMessageList(); } } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public int getPhotosCount() { if (photosBuilder_ == null) { return photos_.size(); } else { return photosBuilder_.getCount(); } } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo getPhotos(int index) { if (photosBuilder_ == null) { return photos_.get(index); } else { return photosBuilder_.getMessage(index); } } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public Builder setPhotos( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo value) { if (photosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePhotosIsMutable(); photos_.set(index, value); onChanged(); } else { photosBuilder_.setMessage(index, value); } return this; } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public Builder setPhotos( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder builderForValue) { if (photosBuilder_ == null) { ensurePhotosIsMutable(); photos_.set(index, builderForValue.build()); onChanged(); } else { photosBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public Builder addPhotos(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo value) { if (photosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePhotosIsMutable(); photos_.add(value); onChanged(); } else { photosBuilder_.addMessage(value); } return this; } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public Builder addPhotos( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo value) { if (photosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePhotosIsMutable(); photos_.add(index, value); onChanged(); } else { photosBuilder_.addMessage(index, value); } return this; } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public Builder addPhotos( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder builderForValue) { if (photosBuilder_ == null) { ensurePhotosIsMutable(); photos_.add(builderForValue.build()); onChanged(); } else { photosBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public Builder addPhotos( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder builderForValue) { if (photosBuilder_ == null) { ensurePhotosIsMutable(); photos_.add(index, builderForValue.build()); onChanged(); } else { photosBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public Builder addAllPhotos( java.lang.Iterable values) { if (photosBuilder_ == null) { ensurePhotosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, photos_); onChanged(); } else { photosBuilder_.addAllMessages(values); } return this; } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public Builder clearPhotos() { if (photosBuilder_ == null) { photos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { photosBuilder_.clear(); } return this; } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public Builder removePhotos(int index) { if (photosBuilder_ == null) { ensurePhotosIsMutable(); photos_.remove(index); onChanged(); } else { photosBuilder_.remove(index); } return this; } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder getPhotosBuilder( int index) { return getPhotosFieldBuilder().getBuilder(index); } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder getPhotosOrBuilder( int index) { if (photosBuilder_ == null) { return photos_.get(index); } else { return photosBuilder_.getMessageOrBuilder(index); } } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public java.util.List getPhotosOrBuilderList() { if (photosBuilder_ != null) { return photosBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(photos_); } } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder addPhotosBuilder() { return getPhotosFieldBuilder().addBuilder( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.getDefaultInstance()); } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder addPhotosBuilder( int index) { return getPhotosFieldBuilder().addBuilder( index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.getDefaultInstance()); } /** *
       * List of photos. There will be a maximum number of items returned based on
       * the page_size field in the request.
       * 
* * repeated .google.streetview.publish.v1.Photo photos = 1; */ public java.util.List getPhotosBuilderList() { return getPhotosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder> getPhotosFieldBuilder() { if (photosBuilder_ == null) { photosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder>( photos_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); photos_ = null; } return photosBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * Token to retrieve the next page of results, or empty if there are no
       * more results in the list.
       * 
* * string next_page_token = 2; */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Token to retrieve the next page of results, or empty if there are no
       * more results in the list.
       * 
* * string next_page_token = 2; */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Token to retrieve the next page of results, or empty if there are no
       * more results in the list.
       * 
* * string next_page_token = 2; */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
       * Token to retrieve the next page of results, or empty if there are no
       * more results in the list.
       * 
* * string next_page_token = 2; */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** *
       * Token to retrieve the next page of results, or empty if there are no
       * more results in the list.
       * 
* * string next_page_token = 2; */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.streetview.publish.v1.ListPhotosResponse) } // @@protoc_insertion_point(class_scope:google.streetview.publish.v1.ListPhotosResponse) private static final com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse(); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ListPhotosResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListPhotosResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.ListPhotosResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdatePhotoRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.streetview.publish.v1.UpdatePhotoRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Required. Photo object containing the new metadata. Only the fields
     * specified in `update_mask` are used. If `update_mask` is not present, the
     * update applies to all fields.
     * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
     * well. Otherwise, the request will fail.
     * 
* * .google.streetview.publish.v1.Photo photo = 1; */ boolean hasPhoto(); /** *
     * Required. Photo object containing the new metadata. Only the fields
     * specified in `update_mask` are used. If `update_mask` is not present, the
     * update applies to all fields.
     * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
     * well. Otherwise, the request will fail.
     * 
* * .google.streetview.publish.v1.Photo photo = 1; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo getPhoto(); /** *
     * Required. Photo object containing the new metadata. Only the fields
     * specified in `update_mask` are used. If `update_mask` is not present, the
     * update applies to all fields.
     * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
     * well. Otherwise, the request will fail.
     * 
* * .google.streetview.publish.v1.Photo photo = 1; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder getPhotoOrBuilder(); /** *
     * Mask that identifies fields on the photo metadata to update.
     * If not present, the old Photo metadata will be entirely replaced with the
     * new 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`
     * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
     * values will be replaced with the new contents. For example, if
     * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
     * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
     * removed.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ boolean hasUpdateMask(); /** *
     * Mask that identifies fields on the photo metadata to update.
     * If not present, the old Photo metadata will be entirely replaced with the
     * new 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`
     * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
     * values will be replaced with the new contents. For example, if
     * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
     * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
     * removed.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ com.google.protobuf.FieldMask getUpdateMask(); /** *
     * Mask that identifies fields on the photo metadata to update.
     * If not present, the old Photo metadata will be entirely replaced with the
     * new 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`
     * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
     * values will be replaced with the new contents. For example, if
     * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
     * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
     * removed.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } /** *
   * Request to update the metadata of a photo.
   * Updating the pixels of a photo is not supported.
   * 
* * Protobuf type {@code google.streetview.publish.v1.UpdatePhotoRequest} */ public static final class UpdatePhotoRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.streetview.publish.v1.UpdatePhotoRequest) UpdatePhotoRequestOrBuilder { // Use UpdatePhotoRequest.newBuilder() to construct. private UpdatePhotoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdatePhotoRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private UpdatePhotoRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder subBuilder = null; if (photo_ != null) { subBuilder = photo_.toBuilder(); } photo_ = input.readMessage(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(photo_); photo_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.FieldMask.Builder subBuilder = null; if (updateMask_ != null) { subBuilder = updateMask_.toBuilder(); } updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(updateMask_); updateMask_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_UpdatePhotoRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_UpdatePhotoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.Builder.class); } public static final int PHOTO_FIELD_NUMBER = 1; private com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo photo_; /** *
     * Required. Photo object containing the new metadata. Only the fields
     * specified in `update_mask` are used. If `update_mask` is not present, the
     * update applies to all fields.
     * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
     * well. Otherwise, the request will fail.
     * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public boolean hasPhoto() { return photo_ != null; } /** *
     * Required. Photo object containing the new metadata. Only the fields
     * specified in `update_mask` are used. If `update_mask` is not present, the
     * update applies to all fields.
     * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
     * well. Otherwise, the request will fail.
     * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo getPhoto() { return photo_ == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.getDefaultInstance() : photo_; } /** *
     * Required. Photo object containing the new metadata. Only the fields
     * specified in `update_mask` are used. If `update_mask` is not present, the
     * update applies to all fields.
     * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
     * well. Otherwise, the request will fail.
     * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder getPhotoOrBuilder() { return getPhoto(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** *
     * Mask that identifies fields on the photo metadata to update.
     * If not present, the old Photo metadata will be entirely replaced with the
     * new 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`
     * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
     * values will be replaced with the new contents. For example, if
     * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
     * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
     * removed.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ public boolean hasUpdateMask() { return updateMask_ != null; } /** *
     * Mask that identifies fields on the photo metadata to update.
     * If not present, the old Photo metadata will be entirely replaced with the
     * new 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`
     * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
     * values will be replaced with the new contents. For example, if
     * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
     * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
     * removed.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** *
     * Mask that identifies fields on the photo metadata to update.
     * If not present, the old Photo metadata will be entirely replaced with the
     * new 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`
     * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
     * values will be replaced with the new contents. For example, if
     * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
     * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
     * removed.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (photo_ != null) { output.writeMessage(1, getPhoto()); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (photo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPhoto()); } if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getUpdateMask()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest)) { return super.equals(obj); } com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest other = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest) obj; boolean result = true; result = result && (hasPhoto() == other.hasPhoto()); if (hasPhoto()) { result = result && getPhoto() .equals(other.getPhoto()); } result = result && (hasUpdateMask() == other.hasUpdateMask()); if (hasUpdateMask()) { result = result && getUpdateMask() .equals(other.getUpdateMask()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPhoto()) { hash = (37 * hash) + PHOTO_FIELD_NUMBER; hash = (53 * hash) + getPhoto().hashCode(); } if (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Request to update the metadata of a photo.
     * Updating the pixels of a photo is not supported.
     * 
* * Protobuf type {@code google.streetview.publish.v1.UpdatePhotoRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.streetview.publish.v1.UpdatePhotoRequest) com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_UpdatePhotoRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_UpdatePhotoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.Builder.class); } // Construct using com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (photoBuilder_ == null) { photo_ = null; } else { photo_ = null; photoBuilder_ = null; } if (updateMaskBuilder_ == null) { updateMask_ = null; } else { updateMask_ = null; updateMaskBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_UpdatePhotoRequest_descriptor; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest getDefaultInstanceForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.getDefaultInstance(); } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest build() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest buildPartial() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest result = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest(this); if (photoBuilder_ == null) { result.photo_ = photo_; } else { result.photo_ = photoBuilder_.build(); } if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { result.updateMask_ = updateMaskBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest) { return mergeFrom((com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest other) { if (other == com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.getDefaultInstance()) return this; if (other.hasPhoto()) { mergePhoto(other.getPhoto()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo photo_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder> photoBuilder_; /** *
       * Required. Photo object containing the new metadata. Only the fields
       * specified in `update_mask` are used. If `update_mask` is not present, the
       * update applies to all fields.
       * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
       * well. Otherwise, the request will fail.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public boolean hasPhoto() { return photoBuilder_ != null || photo_ != null; } /** *
       * Required. Photo object containing the new metadata. Only the fields
       * specified in `update_mask` are used. If `update_mask` is not present, the
       * update applies to all fields.
       * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
       * well. Otherwise, the request will fail.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo getPhoto() { if (photoBuilder_ == null) { return photo_ == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.getDefaultInstance() : photo_; } else { return photoBuilder_.getMessage(); } } /** *
       * Required. Photo object containing the new metadata. Only the fields
       * specified in `update_mask` are used. If `update_mask` is not present, the
       * update applies to all fields.
       * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
       * well. Otherwise, the request will fail.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public Builder setPhoto(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo value) { if (photoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } photo_ = value; onChanged(); } else { photoBuilder_.setMessage(value); } return this; } /** *
       * Required. Photo object containing the new metadata. Only the fields
       * specified in `update_mask` are used. If `update_mask` is not present, the
       * update applies to all fields.
       * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
       * well. Otherwise, the request will fail.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public Builder setPhoto( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder builderForValue) { if (photoBuilder_ == null) { photo_ = builderForValue.build(); onChanged(); } else { photoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Required. Photo object containing the new metadata. Only the fields
       * specified in `update_mask` are used. If `update_mask` is not present, the
       * update applies to all fields.
       * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
       * well. Otherwise, the request will fail.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public Builder mergePhoto(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo value) { if (photoBuilder_ == null) { if (photo_ != null) { photo_ = com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.newBuilder(photo_).mergeFrom(value).buildPartial(); } else { photo_ = value; } onChanged(); } else { photoBuilder_.mergeFrom(value); } return this; } /** *
       * Required. Photo object containing the new metadata. Only the fields
       * specified in `update_mask` are used. If `update_mask` is not present, the
       * update applies to all fields.
       * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
       * well. Otherwise, the request will fail.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public Builder clearPhoto() { if (photoBuilder_ == null) { photo_ = null; onChanged(); } else { photo_ = null; photoBuilder_ = null; } return this; } /** *
       * Required. Photo object containing the new metadata. Only the fields
       * specified in `update_mask` are used. If `update_mask` is not present, the
       * update applies to all fields.
       * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
       * well. Otherwise, the request will fail.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder getPhotoBuilder() { onChanged(); return getPhotoFieldBuilder().getBuilder(); } /** *
       * Required. Photo object containing the new metadata. Only the fields
       * specified in `update_mask` are used. If `update_mask` is not present, the
       * update applies to all fields.
       * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
       * well. Otherwise, the request will fail.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder getPhotoOrBuilder() { if (photoBuilder_ != null) { return photoBuilder_.getMessageOrBuilder(); } else { return photo_ == null ? com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.getDefaultInstance() : photo_; } } /** *
       * Required. Photo object containing the new metadata. Only the fields
       * specified in `update_mask` are used. If `update_mask` is not present, the
       * update applies to all fields.
       * **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
       * well. Otherwise, the request will fail.
       * 
* * .google.streetview.publish.v1.Photo photo = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder> getPhotoFieldBuilder() { if (photoBuilder_ == null) { photoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.PhotoOrBuilder>( getPhoto(), getParentForChildren(), isClean()); photo_ = null; } return photoBuilder_; } private com.google.protobuf.FieldMask updateMask_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** *
       * Mask that identifies fields on the photo metadata to update.
       * If not present, the old Photo metadata will be entirely replaced with the
       * new 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`
       * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
       * values will be replaced with the new contents. For example, if
       * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
       * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
       * removed.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** *
       * Mask that identifies fields on the photo metadata to update.
       * If not present, the old Photo metadata will be entirely replaced with the
       * new 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`
       * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
       * values will be replaced with the new contents. For example, if
       * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
       * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
       * removed.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** *
       * Mask that identifies fields on the photo metadata to update.
       * If not present, the old Photo metadata will be entirely replaced with the
       * new 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`
       * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
       * values will be replaced with the new contents. For example, if
       * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
       * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
       * removed.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateMask_ = value; onChanged(); } else { updateMaskBuilder_.setMessage(value); } return this; } /** *
       * Mask that identifies fields on the photo metadata to update.
       * If not present, the old Photo metadata will be entirely replaced with the
       * new 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`
       * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
       * values will be replaced with the new contents. For example, if
       * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
       * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
       * removed.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder setUpdateMask( com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Mask that identifies fields on the photo metadata to update.
       * If not present, the old Photo metadata will be entirely replaced with the
       * new 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`
       * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
       * values will be replaced with the new contents. For example, if
       * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
       * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
       * removed.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } return this; } /** *
       * Mask that identifies fields on the photo metadata to update.
       * If not present, the old Photo metadata will be entirely replaced with the
       * new 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`
       * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
       * values will be replaced with the new contents. For example, if
       * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
       * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
       * removed.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { updateMask_ = null; onChanged(); } else { updateMask_ = null; updateMaskBuilder_ = null; } return this; } /** *
       * Mask that identifies fields on the photo metadata to update.
       * If not present, the old Photo metadata will be entirely replaced with the
       * new 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`
       * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
       * values will be replaced with the new contents. For example, if
       * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
       * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
       * removed.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** *
       * Mask that identifies fields on the photo metadata to update.
       * If not present, the old Photo metadata will be entirely replaced with the
       * new 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`
       * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
       * values will be replaced with the new contents. For example, if
       * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
       * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
       * removed.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** *
       * Mask that identifies fields on the photo metadata to update.
       * If not present, the old Photo metadata will be entirely replaced with the
       * new 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`
       * **Note:** Repeated fields in `update_mask` mean the entire set of repeated
       * values will be replaced with the new contents. For example, if
       * `UpdatePhotoRequest.photo.update_mask` contains `connections` and
       * `UpdatePhotoRequest.photo.connections` is empty, all connections will be
       * removed.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.streetview.publish.v1.UpdatePhotoRequest) } // @@protoc_insertion_point(class_scope:google.streetview.publish.v1.UpdatePhotoRequest) private static final com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest(); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UpdatePhotoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdatePhotoRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchUpdatePhotosRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.streetview.publish.v1.BatchUpdatePhotosRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Required. List of update photo requests.
     * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ java.util.List getUpdatePhotoRequestsList(); /** *
     * Required. List of update photo requests.
     * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest getUpdatePhotoRequests(int index); /** *
     * Required. List of update photo requests.
     * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ int getUpdatePhotoRequestsCount(); /** *
     * Required. List of update photo requests.
     * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ java.util.List getUpdatePhotoRequestsOrBuilderList(); /** *
     * Required. List of update photo requests.
     * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequestOrBuilder getUpdatePhotoRequestsOrBuilder( int index); } /** *
   * Request to update the metadata of photos.
   * Updating the pixels of photos is not supported.
   * 
* * Protobuf type {@code google.streetview.publish.v1.BatchUpdatePhotosRequest} */ public static final class BatchUpdatePhotosRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.streetview.publish.v1.BatchUpdatePhotosRequest) BatchUpdatePhotosRequestOrBuilder { // Use BatchUpdatePhotosRequest.newBuilder() to construct. private BatchUpdatePhotosRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchUpdatePhotosRequest() { updatePhotoRequests_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BatchUpdatePhotosRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { updatePhotoRequests_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } updatePhotoRequests_.add( input.readMessage(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { updatePhotoRequests_ = java.util.Collections.unmodifiableList(updatePhotoRequests_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchUpdatePhotosRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchUpdatePhotosRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest.Builder.class); } public static final int UPDATE_PHOTO_REQUESTS_FIELD_NUMBER = 1; private java.util.List updatePhotoRequests_; /** *
     * Required. List of update photo requests.
     * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public java.util.List getUpdatePhotoRequestsList() { return updatePhotoRequests_; } /** *
     * Required. List of update photo requests.
     * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public java.util.List getUpdatePhotoRequestsOrBuilderList() { return updatePhotoRequests_; } /** *
     * Required. List of update photo requests.
     * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public int getUpdatePhotoRequestsCount() { return updatePhotoRequests_.size(); } /** *
     * Required. List of update photo requests.
     * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest getUpdatePhotoRequests(int index) { return updatePhotoRequests_.get(index); } /** *
     * Required. List of update photo requests.
     * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequestOrBuilder getUpdatePhotoRequestsOrBuilder( int index) { return updatePhotoRequests_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < updatePhotoRequests_.size(); i++) { output.writeMessage(1, updatePhotoRequests_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < updatePhotoRequests_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, updatePhotoRequests_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest)) { return super.equals(obj); } com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest other = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest) obj; boolean result = true; result = result && getUpdatePhotoRequestsList() .equals(other.getUpdatePhotoRequestsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getUpdatePhotoRequestsCount() > 0) { hash = (37 * hash) + UPDATE_PHOTO_REQUESTS_FIELD_NUMBER; hash = (53 * hash) + getUpdatePhotoRequestsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Request to update the metadata of photos.
     * Updating the pixels of photos is not supported.
     * 
* * Protobuf type {@code google.streetview.publish.v1.BatchUpdatePhotosRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.streetview.publish.v1.BatchUpdatePhotosRequest) com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchUpdatePhotosRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchUpdatePhotosRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest.Builder.class); } // Construct using com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUpdatePhotoRequestsFieldBuilder(); } } public Builder clear() { super.clear(); if (updatePhotoRequestsBuilder_ == null) { updatePhotoRequests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { updatePhotoRequestsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchUpdatePhotosRequest_descriptor; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest getDefaultInstanceForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest.getDefaultInstance(); } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest build() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest buildPartial() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest result = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest(this); int from_bitField0_ = bitField0_; if (updatePhotoRequestsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { updatePhotoRequests_ = java.util.Collections.unmodifiableList(updatePhotoRequests_); bitField0_ = (bitField0_ & ~0x00000001); } result.updatePhotoRequests_ = updatePhotoRequests_; } else { result.updatePhotoRequests_ = updatePhotoRequestsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest) { return mergeFrom((com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest other) { if (other == com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest.getDefaultInstance()) return this; if (updatePhotoRequestsBuilder_ == null) { if (!other.updatePhotoRequests_.isEmpty()) { if (updatePhotoRequests_.isEmpty()) { updatePhotoRequests_ = other.updatePhotoRequests_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUpdatePhotoRequestsIsMutable(); updatePhotoRequests_.addAll(other.updatePhotoRequests_); } onChanged(); } } else { if (!other.updatePhotoRequests_.isEmpty()) { if (updatePhotoRequestsBuilder_.isEmpty()) { updatePhotoRequestsBuilder_.dispose(); updatePhotoRequestsBuilder_ = null; updatePhotoRequests_ = other.updatePhotoRequests_; bitField0_ = (bitField0_ & ~0x00000001); updatePhotoRequestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUpdatePhotoRequestsFieldBuilder() : null; } else { updatePhotoRequestsBuilder_.addAllMessages(other.updatePhotoRequests_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List updatePhotoRequests_ = java.util.Collections.emptyList(); private void ensureUpdatePhotoRequestsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { updatePhotoRequests_ = new java.util.ArrayList(updatePhotoRequests_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequestOrBuilder> updatePhotoRequestsBuilder_; /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public java.util.List getUpdatePhotoRequestsList() { if (updatePhotoRequestsBuilder_ == null) { return java.util.Collections.unmodifiableList(updatePhotoRequests_); } else { return updatePhotoRequestsBuilder_.getMessageList(); } } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public int getUpdatePhotoRequestsCount() { if (updatePhotoRequestsBuilder_ == null) { return updatePhotoRequests_.size(); } else { return updatePhotoRequestsBuilder_.getCount(); } } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest getUpdatePhotoRequests(int index) { if (updatePhotoRequestsBuilder_ == null) { return updatePhotoRequests_.get(index); } else { return updatePhotoRequestsBuilder_.getMessage(index); } } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public Builder setUpdatePhotoRequests( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest value) { if (updatePhotoRequestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpdatePhotoRequestsIsMutable(); updatePhotoRequests_.set(index, value); onChanged(); } else { updatePhotoRequestsBuilder_.setMessage(index, value); } return this; } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public Builder setUpdatePhotoRequests( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.Builder builderForValue) { if (updatePhotoRequestsBuilder_ == null) { ensureUpdatePhotoRequestsIsMutable(); updatePhotoRequests_.set(index, builderForValue.build()); onChanged(); } else { updatePhotoRequestsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public Builder addUpdatePhotoRequests(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest value) { if (updatePhotoRequestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpdatePhotoRequestsIsMutable(); updatePhotoRequests_.add(value); onChanged(); } else { updatePhotoRequestsBuilder_.addMessage(value); } return this; } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public Builder addUpdatePhotoRequests( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest value) { if (updatePhotoRequestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpdatePhotoRequestsIsMutable(); updatePhotoRequests_.add(index, value); onChanged(); } else { updatePhotoRequestsBuilder_.addMessage(index, value); } return this; } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public Builder addUpdatePhotoRequests( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.Builder builderForValue) { if (updatePhotoRequestsBuilder_ == null) { ensureUpdatePhotoRequestsIsMutable(); updatePhotoRequests_.add(builderForValue.build()); onChanged(); } else { updatePhotoRequestsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public Builder addUpdatePhotoRequests( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.Builder builderForValue) { if (updatePhotoRequestsBuilder_ == null) { ensureUpdatePhotoRequestsIsMutable(); updatePhotoRequests_.add(index, builderForValue.build()); onChanged(); } else { updatePhotoRequestsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public Builder addAllUpdatePhotoRequests( java.lang.Iterable values) { if (updatePhotoRequestsBuilder_ == null) { ensureUpdatePhotoRequestsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, updatePhotoRequests_); onChanged(); } else { updatePhotoRequestsBuilder_.addAllMessages(values); } return this; } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public Builder clearUpdatePhotoRequests() { if (updatePhotoRequestsBuilder_ == null) { updatePhotoRequests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { updatePhotoRequestsBuilder_.clear(); } return this; } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public Builder removeUpdatePhotoRequests(int index) { if (updatePhotoRequestsBuilder_ == null) { ensureUpdatePhotoRequestsIsMutable(); updatePhotoRequests_.remove(index); onChanged(); } else { updatePhotoRequestsBuilder_.remove(index); } return this; } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.Builder getUpdatePhotoRequestsBuilder( int index) { return getUpdatePhotoRequestsFieldBuilder().getBuilder(index); } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequestOrBuilder getUpdatePhotoRequestsOrBuilder( int index) { if (updatePhotoRequestsBuilder_ == null) { return updatePhotoRequests_.get(index); } else { return updatePhotoRequestsBuilder_.getMessageOrBuilder(index); } } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public java.util.List getUpdatePhotoRequestsOrBuilderList() { if (updatePhotoRequestsBuilder_ != null) { return updatePhotoRequestsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(updatePhotoRequests_); } } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.Builder addUpdatePhotoRequestsBuilder() { return getUpdatePhotoRequestsFieldBuilder().addBuilder( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.getDefaultInstance()); } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.Builder addUpdatePhotoRequestsBuilder( int index) { return getUpdatePhotoRequestsFieldBuilder().addBuilder( index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.getDefaultInstance()); } /** *
       * Required. List of update photo requests.
       * 
* * repeated .google.streetview.publish.v1.UpdatePhotoRequest update_photo_requests = 1; */ public java.util.List getUpdatePhotoRequestsBuilderList() { return getUpdatePhotoRequestsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequestOrBuilder> getUpdatePhotoRequestsFieldBuilder() { if (updatePhotoRequestsBuilder_ == null) { updatePhotoRequestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequest.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.UpdatePhotoRequestOrBuilder>( updatePhotoRequests_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); updatePhotoRequests_ = null; } return updatePhotoRequestsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.streetview.publish.v1.BatchUpdatePhotosRequest) } // @@protoc_insertion_point(class_scope:google.streetview.publish.v1.BatchUpdatePhotosRequest) private static final com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest(); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchUpdatePhotosRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchUpdatePhotosRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchUpdatePhotosResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.streetview.publish.v1.BatchUpdatePhotosResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of results for each individual photo updated, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ java.util.List getResultsList(); /** *
     * List of results for each individual photo updated, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse getResults(int index); /** *
     * List of results for each individual photo updated, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ int getResultsCount(); /** *
     * List of results for each individual photo updated, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ java.util.List getResultsOrBuilderList(); /** *
     * List of results for each individual photo updated, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponseOrBuilder getResultsOrBuilder( int index); } /** *
   * Response to batch update of metadata of one or more photos.
   * 
* * Protobuf type {@code google.streetview.publish.v1.BatchUpdatePhotosResponse} */ public static final class BatchUpdatePhotosResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.streetview.publish.v1.BatchUpdatePhotosResponse) BatchUpdatePhotosResponseOrBuilder { // Use BatchUpdatePhotosResponse.newBuilder() to construct. private BatchUpdatePhotosResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchUpdatePhotosResponse() { results_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BatchUpdatePhotosResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { results_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } results_.add( input.readMessage(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { results_ = java.util.Collections.unmodifiableList(results_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchUpdatePhotosResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchUpdatePhotosResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** *
     * List of results for each individual photo updated, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public java.util.List getResultsList() { return results_; } /** *
     * List of results for each individual photo updated, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public java.util.List getResultsOrBuilderList() { return results_; } /** *
     * List of results for each individual photo updated, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public int getResultsCount() { return results_.size(); } /** *
     * List of results for each individual photo updated, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse getResults(int index) { return results_.get(index); } /** *
     * List of results for each individual photo updated, in the same order as
     * the request.
     * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponseOrBuilder getResultsOrBuilder( int index) { return results_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < results_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, results_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse)) { return super.equals(obj); } com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse other = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse) obj; boolean result = true; result = result && getResultsList() .equals(other.getResultsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Response to batch update of metadata of one or more photos.
     * 
* * Protobuf type {@code google.streetview.publish.v1.BatchUpdatePhotosResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.streetview.publish.v1.BatchUpdatePhotosResponse) com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchUpdatePhotosResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchUpdatePhotosResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse.Builder.class); } // Construct using com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResultsFieldBuilder(); } } public Builder clear() { super.clear(); if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resultsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchUpdatePhotosResponse_descriptor; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse getDefaultInstanceForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse.getDefaultInstance(); } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse build() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse buildPartial() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse result = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { results_ = java.util.Collections.unmodifiableList(results_); bitField0_ = (bitField0_ & ~0x00000001); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse) { return mergeFrom((com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse other) { if (other == com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse.getDefaultInstance()) return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResultsIsMutable(); results_.addAll(other.results_); } onChanged(); } } else { if (!other.results_.isEmpty()) { if (resultsBuilder_.isEmpty()) { resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponseOrBuilder> resultsBuilder_; /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { return resultsBuilder_.getMessageList(); } } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public int getResultsCount() { if (resultsBuilder_ == null) { return results_.size(); } else { return resultsBuilder_.getCount(); } } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse getResults(int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessage(index); } } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder setResults( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.set(index, value); onChanged(); } else { resultsBuilder_.setMessage(index, value); } return this; } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder setResults( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); onChanged(); } else { resultsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder addResults(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(value); onChanged(); } else { resultsBuilder_.addMessage(value); } return this; } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder addResults( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(index, value); onChanged(); } else { resultsBuilder_.addMessage(index, value); } return this; } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder addResults( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(builderForValue.build()); onChanged(); } else { resultsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder addResults( int index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); onChanged(); } else { resultsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder addAllResults( java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); } return this; } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resultsBuilder_.clear(); } return this; } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.remove(index); onChanged(); } else { resultsBuilder_.remove(index); } return this; } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder getResultsBuilder( int index) { return getResultsFieldBuilder().getBuilder(index); } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponseOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public java.util.List getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(results_); } } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder addResultsBuilder() { return getResultsFieldBuilder().addBuilder( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.getDefaultInstance()); } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder addResultsBuilder( int index) { return getResultsFieldBuilder().addBuilder( index, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.getDefaultInstance()); } /** *
       * List of results for each individual photo updated, in the same order as
       * the request.
       * 
* * repeated .google.streetview.publish.v1.PhotoResponse results = 1; */ public java.util.List getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponseOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponse.Builder, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.PhotoResponseOrBuilder>( results_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.streetview.publish.v1.BatchUpdatePhotosResponse) } // @@protoc_insertion_point(class_scope:google.streetview.publish.v1.BatchUpdatePhotosResponse) private static final com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse(); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchUpdatePhotosResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchUpdatePhotosResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchUpdatePhotosResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeletePhotoRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.streetview.publish.v1.DeletePhotoRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Required. ID of the photo.
     * 
* * string photo_id = 1; */ java.lang.String getPhotoId(); /** *
     * Required. ID of the photo.
     * 
* * string photo_id = 1; */ com.google.protobuf.ByteString getPhotoIdBytes(); } /** *
   * Request to delete a photo.
   * 
* * Protobuf type {@code google.streetview.publish.v1.DeletePhotoRequest} */ public static final class DeletePhotoRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.streetview.publish.v1.DeletePhotoRequest) DeletePhotoRequestOrBuilder { // Use DeletePhotoRequest.newBuilder() to construct. private DeletePhotoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeletePhotoRequest() { photoId_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DeletePhotoRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); photoId_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_DeletePhotoRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_DeletePhotoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest.Builder.class); } public static final int PHOTO_ID_FIELD_NUMBER = 1; private volatile java.lang.Object photoId_; /** *
     * Required. ID of the photo.
     * 
* * string photo_id = 1; */ public java.lang.String getPhotoId() { java.lang.Object ref = photoId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); photoId_ = s; return s; } } /** *
     * Required. ID of the photo.
     * 
* * string photo_id = 1; */ public com.google.protobuf.ByteString getPhotoIdBytes() { java.lang.Object ref = photoId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); photoId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getPhotoIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, photoId_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getPhotoIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, photoId_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest)) { return super.equals(obj); } com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest other = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest) obj; boolean result = true; result = result && getPhotoId() .equals(other.getPhotoId()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PHOTO_ID_FIELD_NUMBER; hash = (53 * hash) + getPhotoId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Request to delete a photo.
     * 
* * Protobuf type {@code google.streetview.publish.v1.DeletePhotoRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.streetview.publish.v1.DeletePhotoRequest) com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_DeletePhotoRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_DeletePhotoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest.Builder.class); } // Construct using com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); photoId_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_DeletePhotoRequest_descriptor; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest getDefaultInstanceForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest.getDefaultInstance(); } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest build() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest buildPartial() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest result = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest(this); result.photoId_ = photoId_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest) { return mergeFrom((com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest other) { if (other == com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest.getDefaultInstance()) return this; if (!other.getPhotoId().isEmpty()) { photoId_ = other.photoId_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object photoId_ = ""; /** *
       * Required. ID of the photo.
       * 
* * string photo_id = 1; */ public java.lang.String getPhotoId() { java.lang.Object ref = photoId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); photoId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. ID of the photo.
       * 
* * string photo_id = 1; */ public com.google.protobuf.ByteString getPhotoIdBytes() { java.lang.Object ref = photoId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); photoId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. ID of the photo.
       * 
* * string photo_id = 1; */ public Builder setPhotoId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } photoId_ = value; onChanged(); return this; } /** *
       * Required. ID of the photo.
       * 
* * string photo_id = 1; */ public Builder clearPhotoId() { photoId_ = getDefaultInstance().getPhotoId(); onChanged(); return this; } /** *
       * Required. ID of the photo.
       * 
* * string photo_id = 1; */ public Builder setPhotoIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); photoId_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.streetview.publish.v1.DeletePhotoRequest) } // @@protoc_insertion_point(class_scope:google.streetview.publish.v1.DeletePhotoRequest) private static final com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest(); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeletePhotoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeletePhotoRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.DeletePhotoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchDeletePhotosRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.streetview.publish.v1.BatchDeletePhotosRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Required. List of delete photo requests. For HTTP GET requests, the URL
     * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ java.util.List getPhotoIdsList(); /** *
     * Required. List of delete photo requests. For HTTP GET requests, the URL
     * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ int getPhotoIdsCount(); /** *
     * Required. List of delete photo requests. For HTTP GET requests, the URL
     * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ java.lang.String getPhotoIds(int index); /** *
     * Required. List of delete photo requests. For HTTP GET requests, the URL
     * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ com.google.protobuf.ByteString getPhotoIdsBytes(int index); } /** *
   * Request to delete multiple photos.
   * 
* * Protobuf type {@code google.streetview.publish.v1.BatchDeletePhotosRequest} */ public static final class BatchDeletePhotosRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.streetview.publish.v1.BatchDeletePhotosRequest) BatchDeletePhotosRequestOrBuilder { // Use BatchDeletePhotosRequest.newBuilder() to construct. private BatchDeletePhotosRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchDeletePhotosRequest() { photoIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BatchDeletePhotosRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { photoIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } photoIds_.add(s); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { photoIds_ = photoIds_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchDeletePhotosRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchDeletePhotosRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest.Builder.class); } public static final int PHOTO_IDS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList photoIds_; /** *
     * Required. List of delete photo requests. For HTTP GET requests, the URL
     * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ public com.google.protobuf.ProtocolStringList getPhotoIdsList() { return photoIds_; } /** *
     * Required. List of delete photo requests. For HTTP GET requests, the URL
     * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ public int getPhotoIdsCount() { return photoIds_.size(); } /** *
     * Required. List of delete photo requests. For HTTP GET requests, the URL
     * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ public java.lang.String getPhotoIds(int index) { return photoIds_.get(index); } /** *
     * Required. List of delete photo requests. For HTTP GET requests, the URL
     * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
     * 
* * repeated string photo_ids = 1; */ public com.google.protobuf.ByteString getPhotoIdsBytes(int index) { return photoIds_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < photoIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, photoIds_.getRaw(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < photoIds_.size(); i++) { dataSize += computeStringSizeNoTag(photoIds_.getRaw(i)); } size += dataSize; size += 1 * getPhotoIdsList().size(); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest)) { return super.equals(obj); } com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest other = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest) obj; boolean result = true; result = result && getPhotoIdsList() .equals(other.getPhotoIdsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPhotoIdsCount() > 0) { hash = (37 * hash) + PHOTO_IDS_FIELD_NUMBER; hash = (53 * hash) + getPhotoIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Request to delete multiple photos.
     * 
* * Protobuf type {@code google.streetview.publish.v1.BatchDeletePhotosRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.streetview.publish.v1.BatchDeletePhotosRequest) com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchDeletePhotosRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchDeletePhotosRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest.Builder.class); } // Construct using com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); photoIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchDeletePhotosRequest_descriptor; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest getDefaultInstanceForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest.getDefaultInstance(); } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest build() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest buildPartial() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest result = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { photoIds_ = photoIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.photoIds_ = photoIds_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest) { return mergeFrom((com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest other) { if (other == com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest.getDefaultInstance()) return this; if (!other.photoIds_.isEmpty()) { if (photoIds_.isEmpty()) { photoIds_ = other.photoIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePhotoIdsIsMutable(); photoIds_.addAll(other.photoIds_); } onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList photoIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePhotoIdsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { photoIds_ = new com.google.protobuf.LazyStringArrayList(photoIds_); bitField0_ |= 0x00000001; } } /** *
       * Required. List of delete photo requests. For HTTP GET requests, the URL
       * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public com.google.protobuf.ProtocolStringList getPhotoIdsList() { return photoIds_.getUnmodifiableView(); } /** *
       * Required. List of delete photo requests. For HTTP GET requests, the URL
       * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public int getPhotoIdsCount() { return photoIds_.size(); } /** *
       * Required. List of delete photo requests. For HTTP GET requests, the URL
       * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public java.lang.String getPhotoIds(int index) { return photoIds_.get(index); } /** *
       * Required. List of delete photo requests. For HTTP GET requests, the URL
       * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public com.google.protobuf.ByteString getPhotoIdsBytes(int index) { return photoIds_.getByteString(index); } /** *
       * Required. List of delete photo requests. For HTTP GET requests, the URL
       * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public Builder setPhotoIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePhotoIdsIsMutable(); photoIds_.set(index, value); onChanged(); return this; } /** *
       * Required. List of delete photo requests. For HTTP GET requests, the URL
       * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public Builder addPhotoIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePhotoIdsIsMutable(); photoIds_.add(value); onChanged(); return this; } /** *
       * Required. List of delete photo requests. For HTTP GET requests, the URL
       * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public Builder addAllPhotoIds( java.lang.Iterable values) { ensurePhotoIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, photoIds_); onChanged(); return this; } /** *
       * Required. List of delete photo requests. For HTTP GET requests, the URL
       * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public Builder clearPhotoIds() { photoIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Required. List of delete photo requests. For HTTP GET requests, the URL
       * query parameter should be `photoIds=<id1>&photoIds=<id2>&...`.
       * 
* * repeated string photo_ids = 1; */ public Builder addPhotoIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePhotoIdsIsMutable(); photoIds_.add(value); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.streetview.publish.v1.BatchDeletePhotosRequest) } // @@protoc_insertion_point(class_scope:google.streetview.publish.v1.BatchDeletePhotosRequest) private static final com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest(); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchDeletePhotosRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchDeletePhotosRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchDeletePhotosResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.streetview.publish.v1.BatchDeletePhotosResponse) com.google.protobuf.MessageOrBuilder { /** *
     * The status for the operation to delete a single photo in the batch request.
     * 
* * repeated .google.rpc.Status status = 1; */ java.util.List getStatusList(); /** *
     * The status for the operation to delete a single photo in the batch request.
     * 
* * repeated .google.rpc.Status status = 1; */ com.google.rpc.Status getStatus(int index); /** *
     * The status for the operation to delete a single photo in the batch request.
     * 
* * repeated .google.rpc.Status status = 1; */ int getStatusCount(); /** *
     * The status for the operation to delete a single photo in the batch request.
     * 
* * repeated .google.rpc.Status status = 1; */ java.util.List getStatusOrBuilderList(); /** *
     * The status for the operation to delete a single photo in the batch request.
     * 
* * repeated .google.rpc.Status status = 1; */ com.google.rpc.StatusOrBuilder getStatusOrBuilder( int index); } /** *
   * Response to batch delete of one or more photos.
   * 
* * Protobuf type {@code google.streetview.publish.v1.BatchDeletePhotosResponse} */ public static final class BatchDeletePhotosResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.streetview.publish.v1.BatchDeletePhotosResponse) BatchDeletePhotosResponseOrBuilder { // Use BatchDeletePhotosResponse.newBuilder() to construct. private BatchDeletePhotosResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchDeletePhotosResponse() { status_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BatchDeletePhotosResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { status_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } status_.add( input.readMessage(com.google.rpc.Status.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { status_ = java.util.Collections.unmodifiableList(status_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchDeletePhotosResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchDeletePhotosResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private java.util.List status_; /** *
     * The status for the operation to delete a single photo in the batch request.
     * 
* * repeated .google.rpc.Status status = 1; */ public java.util.List getStatusList() { return status_; } /** *
     * The status for the operation to delete a single photo in the batch request.
     * 
* * repeated .google.rpc.Status status = 1; */ public java.util.List getStatusOrBuilderList() { return status_; } /** *
     * The status for the operation to delete a single photo in the batch request.
     * 
* * repeated .google.rpc.Status status = 1; */ public int getStatusCount() { return status_.size(); } /** *
     * The status for the operation to delete a single photo in the batch request.
     * 
* * repeated .google.rpc.Status status = 1; */ public com.google.rpc.Status getStatus(int index) { return status_.get(index); } /** *
     * The status for the operation to delete a single photo in the batch request.
     * 
* * repeated .google.rpc.Status status = 1; */ public com.google.rpc.StatusOrBuilder getStatusOrBuilder( int index) { return status_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < status_.size(); i++) { output.writeMessage(1, status_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < status_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, status_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse)) { return super.equals(obj); } com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse other = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse) obj; boolean result = true; result = result && getStatusList() .equals(other.getStatusList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getStatusCount() > 0) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatusList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Response to batch delete of one or more photos.
     * 
* * Protobuf type {@code google.streetview.publish.v1.BatchDeletePhotosResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.streetview.publish.v1.BatchDeletePhotosResponse) com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchDeletePhotosResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchDeletePhotosResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse.class, com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse.Builder.class); } // Construct using com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStatusFieldBuilder(); } } public Builder clear() { super.clear(); if (statusBuilder_ == null) { status_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { statusBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.internal_static_google_streetview_publish_v1_BatchDeletePhotosResponse_descriptor; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse getDefaultInstanceForType() { return com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse.getDefaultInstance(); } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse build() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse buildPartial() { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse result = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse(this); int from_bitField0_ = bitField0_; if (statusBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { status_ = java.util.Collections.unmodifiableList(status_); bitField0_ = (bitField0_ & ~0x00000001); } result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse) { return mergeFrom((com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse other) { if (other == com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse.getDefaultInstance()) return this; if (statusBuilder_ == null) { if (!other.status_.isEmpty()) { if (status_.isEmpty()) { status_ = other.status_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureStatusIsMutable(); status_.addAll(other.status_); } onChanged(); } } else { if (!other.status_.isEmpty()) { if (statusBuilder_.isEmpty()) { statusBuilder_.dispose(); statusBuilder_ = null; status_ = other.status_; bitField0_ = (bitField0_ & ~0x00000001); statusBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStatusFieldBuilder() : null; } else { statusBuilder_.addAllMessages(other.status_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List status_ = java.util.Collections.emptyList(); private void ensureStatusIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { status_ = new java.util.ArrayList(status_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public java.util.List getStatusList() { if (statusBuilder_ == null) { return java.util.Collections.unmodifiableList(status_); } else { return statusBuilder_.getMessageList(); } } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public int getStatusCount() { if (statusBuilder_ == null) { return status_.size(); } else { return statusBuilder_.getCount(); } } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public com.google.rpc.Status getStatus(int index) { if (statusBuilder_ == null) { return status_.get(index); } else { return statusBuilder_.getMessage(index); } } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public Builder setStatus( int index, com.google.rpc.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatusIsMutable(); status_.set(index, value); onChanged(); } else { statusBuilder_.setMessage(index, value); } return this; } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public Builder setStatus( int index, com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { ensureStatusIsMutable(); status_.set(index, builderForValue.build()); onChanged(); } else { statusBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public Builder addStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatusIsMutable(); status_.add(value); onChanged(); } else { statusBuilder_.addMessage(value); } return this; } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public Builder addStatus( int index, com.google.rpc.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatusIsMutable(); status_.add(index, value); onChanged(); } else { statusBuilder_.addMessage(index, value); } return this; } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public Builder addStatus( com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { ensureStatusIsMutable(); status_.add(builderForValue.build()); onChanged(); } else { statusBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public Builder addStatus( int index, com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { ensureStatusIsMutable(); status_.add(index, builderForValue.build()); onChanged(); } else { statusBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public Builder addAllStatus( java.lang.Iterable values) { if (statusBuilder_ == null) { ensureStatusIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, status_); onChanged(); } else { statusBuilder_.addAllMessages(values); } return this; } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { statusBuilder_.clear(); } return this; } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public Builder removeStatus(int index) { if (statusBuilder_ == null) { ensureStatusIsMutable(); status_.remove(index); onChanged(); } else { statusBuilder_.remove(index); } return this; } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public com.google.rpc.Status.Builder getStatusBuilder( int index) { return getStatusFieldBuilder().getBuilder(index); } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public com.google.rpc.StatusOrBuilder getStatusOrBuilder( int index) { if (statusBuilder_ == null) { return status_.get(index); } else { return statusBuilder_.getMessageOrBuilder(index); } } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public java.util.List getStatusOrBuilderList() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(status_); } } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public com.google.rpc.Status.Builder addStatusBuilder() { return getStatusFieldBuilder().addBuilder( com.google.rpc.Status.getDefaultInstance()); } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public com.google.rpc.Status.Builder addStatusBuilder( int index) { return getStatusFieldBuilder().addBuilder( index, com.google.rpc.Status.getDefaultInstance()); } /** *
       * The status for the operation to delete a single photo in the batch request.
       * 
* * repeated .google.rpc.Status status = 1; */ public java.util.List getStatusBuilderList() { return getStatusFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( status_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.streetview.publish.v1.BatchDeletePhotosResponse) } // @@protoc_insertion_point(class_scope:google.streetview.publish.v1.BatchDeletePhotosResponse) private static final com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse(); } public static com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchDeletePhotosResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchDeletePhotosResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.geo.ugc.streetview.publish.v1.StreetViewPublishRpcMessages.BatchDeletePhotosResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_streetview_publish_v1_CreatePhotoRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_streetview_publish_v1_CreatePhotoRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_streetview_publish_v1_GetPhotoRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_streetview_publish_v1_GetPhotoRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_streetview_publish_v1_BatchGetPhotosRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_streetview_publish_v1_BatchGetPhotosRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_streetview_publish_v1_BatchGetPhotosResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_streetview_publish_v1_BatchGetPhotosResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_streetview_publish_v1_PhotoResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_streetview_publish_v1_PhotoResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_streetview_publish_v1_ListPhotosRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_streetview_publish_v1_ListPhotosRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_streetview_publish_v1_ListPhotosResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_streetview_publish_v1_ListPhotosResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_streetview_publish_v1_UpdatePhotoRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_streetview_publish_v1_UpdatePhotoRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_streetview_publish_v1_BatchUpdatePhotosRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_streetview_publish_v1_BatchUpdatePhotosRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_streetview_publish_v1_BatchUpdatePhotosResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_streetview_publish_v1_BatchUpdatePhotosResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_streetview_publish_v1_DeletePhotoRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_streetview_publish_v1_DeletePhotoRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_streetview_publish_v1_BatchDeletePhotosRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_streetview_publish_v1_BatchDeletePhotosRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_streetview_publish_v1_BatchDeletePhotosResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_streetview_publish_v1_BatchDeletePhotosResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n.google/streetview/publish/v1/rpcmessag" + "es.proto\022\034google.streetview.publish.v1\032 " + "google/protobuf/field_mask.proto\032\027google" + "/rpc/status.proto\032,google/streetview/pub" + "lish/v1/resources.proto\"H\n\022CreatePhotoRe" + "quest\0222\n\005photo\030\001 \001(\0132#.google.streetview" + ".publish.v1.Photo\"Z\n\017GetPhotoRequest\022\020\n\010" + "photo_id\030\001 \001(\t\0225\n\004view\030\002 \001(\0162\'.google.st" + "reetview.publish.v1.PhotoView\"a\n\025BatchGe" + "tPhotosRequest\022\021\n\tphoto_ids\030\001 \003(\t\0225\n\004vie", "w\030\002 \001(\0162\'.google.streetview.publish.v1.P" + "hotoView\"V\n\026BatchGetPhotosResponse\022<\n\007re" + "sults\030\001 \003(\0132+.google.streetview.publish." + "v1.PhotoResponse\"g\n\rPhotoResponse\022\"\n\006sta" + "tus\030\001 \001(\0132\022.google.rpc.Status\0222\n\005photo\030\002" + " \001(\0132#.google.streetview.publish.v1.Phot" + "o\"\201\001\n\021ListPhotosRequest\0225\n\004view\030\001 \001(\0162\'." + "google.streetview.publish.v1.PhotoView\022\021" + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n" + "\006filter\030\004 \001(\t\"b\n\022ListPhotosResponse\0223\n\006p", "hotos\030\001 \003(\0132#.google.streetview.publish." + "v1.Photo\022\027\n\017next_page_token\030\002 \001(\t\"y\n\022Upd" + "atePhotoRequest\0222\n\005photo\030\001 \001(\0132#.google." + "streetview.publish.v1.Photo\022/\n\013update_ma" + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"k\n\030" + "BatchUpdatePhotosRequest\022O\n\025update_photo" + "_requests\030\001 \003(\01320.google.streetview.publ" + "ish.v1.UpdatePhotoRequest\"Y\n\031BatchUpdate" + "PhotosResponse\022<\n\007results\030\001 \003(\0132+.google" + ".streetview.publish.v1.PhotoResponse\"&\n\022", "DeletePhotoRequest\022\020\n\010photo_id\030\001 \001(\t\"-\n\030" + "BatchDeletePhotosRequest\022\021\n\tphoto_ids\030\001 " + "\003(\t\"?\n\031BatchDeletePhotosResponse\022\"\n\006stat" + "us\030\001 \003(\0132\022.google.rpc.Status*0\n\tPhotoVie" + "w\022\t\n\005BASIC\020\000\022\030\n\024INCLUDE_DOWNLOAD_URL\020\001B\215" + "\001\n(com.google.geo.ugc.streetview.publish" + ".v1B\034StreetViewPublishRpcMessagesZCgoogl" + "e.golang.org/genproto/googleapis/streetv" + "iew/publish/v1;publishb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.getDescriptor(), }, assigner); internal_static_google_streetview_publish_v1_CreatePhotoRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_streetview_publish_v1_CreatePhotoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_streetview_publish_v1_CreatePhotoRequest_descriptor, new java.lang.String[] { "Photo", }); internal_static_google_streetview_publish_v1_GetPhotoRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_streetview_publish_v1_GetPhotoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_streetview_publish_v1_GetPhotoRequest_descriptor, new java.lang.String[] { "PhotoId", "View", }); internal_static_google_streetview_publish_v1_BatchGetPhotosRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_streetview_publish_v1_BatchGetPhotosRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_streetview_publish_v1_BatchGetPhotosRequest_descriptor, new java.lang.String[] { "PhotoIds", "View", }); internal_static_google_streetview_publish_v1_BatchGetPhotosResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_google_streetview_publish_v1_BatchGetPhotosResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_streetview_publish_v1_BatchGetPhotosResponse_descriptor, new java.lang.String[] { "Results", }); internal_static_google_streetview_publish_v1_PhotoResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_streetview_publish_v1_PhotoResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_streetview_publish_v1_PhotoResponse_descriptor, new java.lang.String[] { "Status", "Photo", }); internal_static_google_streetview_publish_v1_ListPhotosRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_google_streetview_publish_v1_ListPhotosRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_streetview_publish_v1_ListPhotosRequest_descriptor, new java.lang.String[] { "View", "PageSize", "PageToken", "Filter", }); internal_static_google_streetview_publish_v1_ListPhotosResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_google_streetview_publish_v1_ListPhotosResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_streetview_publish_v1_ListPhotosResponse_descriptor, new java.lang.String[] { "Photos", "NextPageToken", }); internal_static_google_streetview_publish_v1_UpdatePhotoRequest_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_google_streetview_publish_v1_UpdatePhotoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_streetview_publish_v1_UpdatePhotoRequest_descriptor, new java.lang.String[] { "Photo", "UpdateMask", }); internal_static_google_streetview_publish_v1_BatchUpdatePhotosRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_google_streetview_publish_v1_BatchUpdatePhotosRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_streetview_publish_v1_BatchUpdatePhotosRequest_descriptor, new java.lang.String[] { "UpdatePhotoRequests", }); internal_static_google_streetview_publish_v1_BatchUpdatePhotosResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_google_streetview_publish_v1_BatchUpdatePhotosResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_streetview_publish_v1_BatchUpdatePhotosResponse_descriptor, new java.lang.String[] { "Results", }); internal_static_google_streetview_publish_v1_DeletePhotoRequest_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_google_streetview_publish_v1_DeletePhotoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_streetview_publish_v1_DeletePhotoRequest_descriptor, new java.lang.String[] { "PhotoId", }); internal_static_google_streetview_publish_v1_BatchDeletePhotosRequest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_google_streetview_publish_v1_BatchDeletePhotosRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_streetview_publish_v1_BatchDeletePhotosRequest_descriptor, new java.lang.String[] { "PhotoIds", }); internal_static_google_streetview_publish_v1_BatchDeletePhotosResponse_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_google_streetview_publish_v1_BatchDeletePhotosResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_streetview_publish_v1_BatchDeletePhotosResponse_descriptor, new java.lang.String[] { "Status", }); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy