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

yandex.cloud.api.ydb.v1.LocationServiceOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/ydb/v1/location_service.proto

package yandex.cloud.api.ydb.v1;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface GetLocationRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.ydb.v1.GetLocationRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Required. ID of the location to return.
     * 
* * string location_id = 1 [(.yandex.cloud.required) = true]; * @return The locationId. */ java.lang.String getLocationId(); /** *
     * Required. ID of the location to return.
     * 
* * string location_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for locationId. */ com.google.protobuf.ByteString getLocationIdBytes(); } /** * Protobuf type {@code yandex.cloud.ydb.v1.GetLocationRequest} */ public static final class GetLocationRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ydb.v1.GetLocationRequest) GetLocationRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetLocationRequest.newBuilder() to construct. private GetLocationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetLocationRequest() { locationId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetLocationRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetLocationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); locationId_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_GetLocationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_GetLocationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest.class, yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest.Builder.class); } public static final int LOCATION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object locationId_; /** *
     * Required. ID of the location to return.
     * 
* * string location_id = 1 [(.yandex.cloud.required) = true]; * @return The locationId. */ @java.lang.Override public java.lang.String getLocationId() { java.lang.Object ref = locationId_; 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(); locationId_ = s; return s; } } /** *
     * Required. ID of the location to return.
     * 
* * string location_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for locationId. */ @java.lang.Override public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); locationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, locationId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, locationId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest)) { return super.equals(obj); } yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest other = (yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest) obj; if (!getLocationId() .equals(other.getLocationId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER; hash = (53 * hash) + getLocationId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest 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 yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest 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 yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code yandex.cloud.ydb.v1.GetLocationRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ydb.v1.GetLocationRequest) yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_GetLocationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_GetLocationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest.class, yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest.Builder.class); } // Construct using yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); locationId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_GetLocationRequest_descriptor; } @java.lang.Override public yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest getDefaultInstanceForType() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest build() { yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest buildPartial() { yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest result = new yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest(this); result.locationId_ = locationId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest) { return mergeFrom((yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest other) { if (other == yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest.getDefaultInstance()) return this; if (!other.getLocationId().isEmpty()) { locationId_ = other.locationId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object locationId_ = ""; /** *
       * Required. ID of the location to return.
       * 
* * string location_id = 1 [(.yandex.cloud.required) = true]; * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. ID of the location to return.
       * 
* * string location_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for locationId. */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); locationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. ID of the location to return.
       * 
* * string location_id = 1 [(.yandex.cloud.required) = true]; * @param value The locationId to set. * @return This builder for chaining. */ public Builder setLocationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } locationId_ = value; onChanged(); return this; } /** *
       * Required. ID of the location to return.
       * 
* * string location_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearLocationId() { locationId_ = getDefaultInstance().getLocationId(); onChanged(); return this; } /** *
       * Required. ID of the location to return.
       * 
* * string location_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for locationId to set. * @return This builder for chaining. */ public Builder setLocationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); locationId_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.ydb.v1.GetLocationRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.ydb.v1.GetLocationRequest) private static final yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest(); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetLocationRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetLocationRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.ydb.v1.LocationServiceOuterClass.GetLocationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListLocationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.ydb.v1.ListLocationsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * The maximum number of results per page that should be returned. If the number of available
     * results is larger than `page_size`, the service returns a `next_page_token` that can be used
     * to get the next page of results in subsequent ListLocations requests.
     * Acceptable values are 0 to 1000, inclusive. Default value: 100.
     * 
* * int64 page_size = 1 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. Set `page_token` to the `next_page_token` returned by a previous ListLocations
     * request to get the next page of results.
     * 
* * string page_token = 2 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. Set `page_token` to the `next_page_token` returned by a previous ListLocations
     * request to get the next page of results.
     * 
* * string page_token = 2 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.ydb.v1.ListLocationsRequest} */ public static final class ListLocationsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ydb.v1.ListLocationsRequest) ListLocationsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListLocationsRequest.newBuilder() to construct. private ListLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListLocationsRequest() { pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListLocationsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListLocationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { pageSize_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_ListLocationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_ListLocationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest.class, yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest.Builder.class); } public static final int PAGE_SIZE_FIELD_NUMBER = 1; private long pageSize_; /** *
     * The maximum number of results per page that should be returned. If the number of available
     * results is larger than `page_size`, the service returns a `next_page_token` that can be used
     * to get the next page of results in subsequent ListLocations requests.
     * Acceptable values are 0 to 1000, inclusive. Default value: 100.
     * 
* * int64 page_size = 1 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** *
     * Page token. Set `page_token` to the `next_page_token` returned by a previous ListLocations
     * request to get the next page of results.
     * 
* * string page_token = 2 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ @java.lang.Override 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; } } /** *
     * Page token. Set `page_token` to the `next_page_token` returned by a previous ListLocations
     * request to get the next page of results.
     * 
* * string page_token = 2 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ @java.lang.Override 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; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageSize_ != 0L) { output.writeInt64(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest)) { return super.equals(obj); } yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest other = (yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest) obj; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest 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 yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest 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 yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code yandex.cloud.ydb.v1.ListLocationsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ydb.v1.ListLocationsRequest) yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_ListLocationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_ListLocationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest.class, yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest.Builder.class); } // Construct using yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); pageSize_ = 0L; pageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_ListLocationsRequest_descriptor; } @java.lang.Override public yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest getDefaultInstanceForType() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest build() { yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest buildPartial() { yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest result = new yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest(this); result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest) { return mergeFrom((yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest other) { if (other == yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest.getDefaultInstance()) return this; if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long pageSize_ ; /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `page_size`, the service returns a `next_page_token` that can be used
       * to get the next page of results in subsequent ListLocations requests.
       * Acceptable values are 0 to 1000, inclusive. Default value: 100.
       * 
* * int64 page_size = 1 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `page_size`, the service returns a `next_page_token` that can be used
       * to get the next page of results in subsequent ListLocations requests.
       * Acceptable values are 0 to 1000, inclusive. Default value: 100.
       * 
* * int64 page_size = 1 [(.yandex.cloud.value) = "0-1000"]; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; } /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `page_size`, the service returns a `next_page_token` that can be used
       * to get the next page of results in subsequent ListLocations requests.
       * Acceptable values are 0 to 1000, inclusive. Default value: 100.
       * 
* * int64 page_size = 1 [(.yandex.cloud.value) = "0-1000"]; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** *
       * Page token. Set `page_token` to the `next_page_token` returned by a previous ListLocations
       * request to get the next page of results.
       * 
* * string page_token = 2 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ 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; } } /** *
       * Page token. Set `page_token` to the `next_page_token` returned by a previous ListLocations
       * request to get the next page of results.
       * 
* * string page_token = 2 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ 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; } } /** *
       * Page token. Set `page_token` to the `next_page_token` returned by a previous ListLocations
       * request to get the next page of results.
       * 
* * string page_token = 2 [(.yandex.cloud.length) = "<=100"]; * @param value The pageToken to set. * @return This builder for chaining. */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /** *
       * Page token. Set `page_token` to the `next_page_token` returned by a previous ListLocations
       * request to get the next page of results.
       * 
* * string page_token = 2 [(.yandex.cloud.length) = "<=100"]; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** *
       * Page token. Set `page_token` to the `next_page_token` returned by a previous ListLocations
       * request to get the next page of results.
       * 
* * string page_token = 2 [(.yandex.cloud.length) = "<=100"]; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.ydb.v1.ListLocationsRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.ydb.v1.ListLocationsRequest) private static final yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest(); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListLocationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListLocationsRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListLocationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.ydb.v1.ListLocationsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Requested list of locations.
     * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ java.util.List getLocationsList(); /** *
     * Requested list of locations.
     * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ yandex.cloud.api.ydb.v1.LocationOuterClass.Location getLocations(int index); /** *
     * Requested list of locations.
     * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ int getLocationsCount(); /** *
     * Requested list of locations.
     * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ java.util.List getLocationsOrBuilderList(); /** *
     * Requested list of locations.
     * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ yandex.cloud.api.ydb.v1.LocationOuterClass.LocationOrBuilder getLocationsOrBuilder( int index); /** *
     * This token allows you to get the next page of results for ListLocations requests,
     * if the number of results is larger than `page_size` specified in the request.
     * To get the next page, specify the value of `next_page_token` as a value for
     * the `page_token` parameter in the next ListLocations request. Subsequent ListLocations
     * requests will have their own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** *
     * This token allows you to get the next page of results for ListLocations requests,
     * if the number of results is larger than `page_size` specified in the request.
     * To get the next page, specify the value of `next_page_token` as a value for
     * the `page_token` parameter in the next ListLocations request. Subsequent ListLocations
     * requests will have their own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.ydb.v1.ListLocationsResponse} */ public static final class ListLocationsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ydb.v1.ListLocationsResponse) ListLocationsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListLocationsResponse.newBuilder() to construct. private ListLocationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListLocationsResponse() { locations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListLocationsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListLocationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } locations_.add( input.readMessage(yandex.cloud.api.ydb.v1.LocationOuterClass.Location.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_ListLocationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_ListLocationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse.class, yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse.Builder.class); } public static final int LOCATIONS_FIELD_NUMBER = 1; private java.util.List locations_; /** *
     * Requested list of locations.
     * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ @java.lang.Override public java.util.List getLocationsList() { return locations_; } /** *
     * Requested list of locations.
     * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ @java.lang.Override public java.util.List getLocationsOrBuilderList() { return locations_; } /** *
     * Requested list of locations.
     * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ @java.lang.Override public int getLocationsCount() { return locations_.size(); } /** *
     * Requested list of locations.
     * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ @java.lang.Override public yandex.cloud.api.ydb.v1.LocationOuterClass.Location getLocations(int index) { return locations_.get(index); } /** *
     * Requested list of locations.
     * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ @java.lang.Override public yandex.cloud.api.ydb.v1.LocationOuterClass.LocationOrBuilder getLocationsOrBuilder( int index) { return locations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** *
     * This token allows you to get the next page of results for ListLocations requests,
     * if the number of results is larger than `page_size` specified in the request.
     * To get the next page, specify the value of `next_page_token` as a value for
     * the `page_token` parameter in the next ListLocations request. Subsequent ListLocations
     * requests will have their own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ @java.lang.Override 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; } } /** *
     * This token allows you to get the next page of results for ListLocations requests,
     * if the number of results is larger than `page_size` specified in the request.
     * To get the next page, specify the value of `next_page_token` as a value for
     * the `page_token` parameter in the next ListLocations request. Subsequent ListLocations
     * requests will have their own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ @java.lang.Override 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < locations_.size(); i++) { output.writeMessage(1, locations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < locations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, locations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse)) { return super.equals(obj); } yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse other = (yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse) obj; if (!getLocationsList() .equals(other.getLocationsList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getLocationsCount() > 0) { hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; hash = (53 * hash) + getLocationsList().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 yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse 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 yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse 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 yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * Protobuf type {@code yandex.cloud.ydb.v1.ListLocationsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ydb.v1.ListLocationsResponse) yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_ListLocationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_ListLocationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse.class, yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse.Builder.class); } // Construct using yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLocationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (locationsBuilder_ == null) { locations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { locationsBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.internal_static_yandex_cloud_ydb_v1_ListLocationsResponse_descriptor; } @java.lang.Override public yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse getDefaultInstanceForType() { return yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse build() { yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse buildPartial() { yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse result = new yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse(this); int from_bitField0_ = bitField0_; if (locationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); bitField0_ = (bitField0_ & ~0x00000001); } result.locations_ = locations_; } else { result.locations_ = locationsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse) { return mergeFrom((yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse other) { if (other == yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse.getDefaultInstance()) return this; if (locationsBuilder_ == null) { if (!other.locations_.isEmpty()) { if (locations_.isEmpty()) { locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLocationsIsMutable(); locations_.addAll(other.locations_); } onChanged(); } } else { if (!other.locations_.isEmpty()) { if (locationsBuilder_.isEmpty()) { locationsBuilder_.dispose(); locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); locationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLocationsFieldBuilder() : null; } else { locationsBuilder_.addAllMessages(other.locations_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List locations_ = java.util.Collections.emptyList(); private void ensureLocationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { locations_ = new java.util.ArrayList(locations_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ydb.v1.LocationOuterClass.Location, yandex.cloud.api.ydb.v1.LocationOuterClass.Location.Builder, yandex.cloud.api.ydb.v1.LocationOuterClass.LocationOrBuilder> locationsBuilder_; /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public java.util.List getLocationsList() { if (locationsBuilder_ == null) { return java.util.Collections.unmodifiableList(locations_); } else { return locationsBuilder_.getMessageList(); } } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public int getLocationsCount() { if (locationsBuilder_ == null) { return locations_.size(); } else { return locationsBuilder_.getCount(); } } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public yandex.cloud.api.ydb.v1.LocationOuterClass.Location getLocations(int index) { if (locationsBuilder_ == null) { return locations_.get(index); } else { return locationsBuilder_.getMessage(index); } } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public Builder setLocations( int index, yandex.cloud.api.ydb.v1.LocationOuterClass.Location value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationsIsMutable(); locations_.set(index, value); onChanged(); } else { locationsBuilder_.setMessage(index, value); } return this; } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public Builder setLocations( int index, yandex.cloud.api.ydb.v1.LocationOuterClass.Location.Builder builderForValue) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.set(index, builderForValue.build()); onChanged(); } else { locationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public Builder addLocations(yandex.cloud.api.ydb.v1.LocationOuterClass.Location value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationsIsMutable(); locations_.add(value); onChanged(); } else { locationsBuilder_.addMessage(value); } return this; } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public Builder addLocations( int index, yandex.cloud.api.ydb.v1.LocationOuterClass.Location value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationsIsMutable(); locations_.add(index, value); onChanged(); } else { locationsBuilder_.addMessage(index, value); } return this; } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public Builder addLocations( yandex.cloud.api.ydb.v1.LocationOuterClass.Location.Builder builderForValue) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.add(builderForValue.build()); onChanged(); } else { locationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public Builder addLocations( int index, yandex.cloud.api.ydb.v1.LocationOuterClass.Location.Builder builderForValue) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.add(index, builderForValue.build()); onChanged(); } else { locationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public Builder addAllLocations( java.lang.Iterable values) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, locations_); onChanged(); } else { locationsBuilder_.addAllMessages(values); } return this; } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public Builder clearLocations() { if (locationsBuilder_ == null) { locations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { locationsBuilder_.clear(); } return this; } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public Builder removeLocations(int index) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.remove(index); onChanged(); } else { locationsBuilder_.remove(index); } return this; } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public yandex.cloud.api.ydb.v1.LocationOuterClass.Location.Builder getLocationsBuilder( int index) { return getLocationsFieldBuilder().getBuilder(index); } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public yandex.cloud.api.ydb.v1.LocationOuterClass.LocationOrBuilder getLocationsOrBuilder( int index) { if (locationsBuilder_ == null) { return locations_.get(index); } else { return locationsBuilder_.getMessageOrBuilder(index); } } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public java.util.List getLocationsOrBuilderList() { if (locationsBuilder_ != null) { return locationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(locations_); } } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public yandex.cloud.api.ydb.v1.LocationOuterClass.Location.Builder addLocationsBuilder() { return getLocationsFieldBuilder().addBuilder( yandex.cloud.api.ydb.v1.LocationOuterClass.Location.getDefaultInstance()); } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public yandex.cloud.api.ydb.v1.LocationOuterClass.Location.Builder addLocationsBuilder( int index) { return getLocationsFieldBuilder().addBuilder( index, yandex.cloud.api.ydb.v1.LocationOuterClass.Location.getDefaultInstance()); } /** *
       * Requested list of locations.
       * 
* * repeated .yandex.cloud.ydb.v1.Location locations = 1; */ public java.util.List getLocationsBuilderList() { return getLocationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ydb.v1.LocationOuterClass.Location, yandex.cloud.api.ydb.v1.LocationOuterClass.Location.Builder, yandex.cloud.api.ydb.v1.LocationOuterClass.LocationOrBuilder> getLocationsFieldBuilder() { if (locationsBuilder_ == null) { locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ydb.v1.LocationOuterClass.Location, yandex.cloud.api.ydb.v1.LocationOuterClass.Location.Builder, yandex.cloud.api.ydb.v1.LocationOuterClass.LocationOrBuilder>( locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); locations_ = null; } return locationsBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * This token allows you to get the next page of results for ListLocations requests,
       * if the number of results is larger than `page_size` specified in the request.
       * To get the next page, specify the value of `next_page_token` as a value for
       * the `page_token` parameter in the next ListLocations request. Subsequent ListLocations
       * requests will have their own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The nextPageToken. */ 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; } } /** *
       * This token allows you to get the next page of results for ListLocations requests,
       * if the number of results is larger than `page_size` specified in the request.
       * To get the next page, specify the value of `next_page_token` as a value for
       * the `page_token` parameter in the next ListLocations request. Subsequent ListLocations
       * requests will have their own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ 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; } } /** *
       * This token allows you to get the next page of results for ListLocations requests,
       * if the number of results is larger than `page_size` specified in the request.
       * To get the next page, specify the value of `next_page_token` as a value for
       * the `page_token` parameter in the next ListLocations request. Subsequent ListLocations
       * requests will have their own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
       * This token allows you to get the next page of results for ListLocations requests,
       * if the number of results is larger than `page_size` specified in the request.
       * To get the next page, specify the value of `next_page_token` as a value for
       * the `page_token` parameter in the next ListLocations request. Subsequent ListLocations
       * requests will have their own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** *
       * This token allows you to get the next page of results for ListLocations requests,
       * if the number of results is larger than `page_size` specified in the request.
       * To get the next page, specify the value of `next_page_token` as a value for
       * the `page_token` parameter in the next ListLocations request. Subsequent ListLocations
       * requests will have their own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.ydb.v1.ListLocationsResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.ydb.v1.ListLocationsResponse) private static final yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse(); } public static yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListLocationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListLocationsResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.ydb.v1.LocationServiceOuterClass.ListLocationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ydb_v1_GetLocationRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ydb_v1_GetLocationRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ydb_v1_ListLocationsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ydb_v1_ListLocationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ydb_v1_ListLocationsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ydb_v1_ListLocationsResponse_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*yandex/cloud/ydb/v1/location_service.p" + "roto\022\023yandex.cloud.ydb.v1\032\034google/api/an" + "notations.proto\032\"yandex/cloud/ydb/v1/loc" + "ation.proto\032\035yandex/cloud/validation.pro" + "to\"/\n\022GetLocationRequest\022\031\n\013location_id\030" + "\001 \001(\tB\004\350\3071\001\"T\n\024ListLocationsRequest\022\035\n\tp" + "age_size\030\001 \001(\003B\n\372\3071\0060-1000\022\035\n\npage_token" + "\030\002 \001(\tB\t\212\3101\005<=100\"b\n\025ListLocationsRespon" + "se\0220\n\tlocations\030\001 \003(\0132\035.yandex.cloud.ydb" + ".v1.Location\022\027\n\017next_page_token\030\002 \001(\t2\203\002" + "\n\017LocationService\022v\n\003Get\022\'.yandex.cloud." + "ydb.v1.GetLocationRequest\032\035.yandex.cloud" + ".ydb.v1.Location\"\'\202\323\344\223\002!\022\037/ydb/v1/locati" + "ons/{location_id}\022x\n\004List\022).yandex.cloud" + ".ydb.v1.ListLocationsRequest\032*.yandex.cl" + "oud.ydb.v1.ListLocationsResponse\"\031\202\323\344\223\002\023" + "\022\021/ydb/v1/locationsBV\n\027yandex.cloud.api." + "ydb.v1Z;github.com/yandex-cloud/go-genpr" + "oto/yandex/cloud/ydb/v1;ydbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), yandex.cloud.api.ydb.v1.LocationOuterClass.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), }); internal_static_yandex_cloud_ydb_v1_GetLocationRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_ydb_v1_GetLocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ydb_v1_GetLocationRequest_descriptor, new java.lang.String[] { "LocationId", }); internal_static_yandex_cloud_ydb_v1_ListLocationsRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_ydb_v1_ListLocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ydb_v1_ListLocationsRequest_descriptor, new java.lang.String[] { "PageSize", "PageToken", }); internal_static_yandex_cloud_ydb_v1_ListLocationsResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_ydb_v1_ListLocationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ydb_v1_ListLocationsResponse_descriptor, new java.lang.String[] { "Locations", "NextPageToken", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.AnnotationsProto.http); registry.add(yandex.cloud.api.Validation.length); registry.add(yandex.cloud.api.Validation.required); registry.add(yandex.cloud.api.Validation.value); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); yandex.cloud.api.ydb.v1.LocationOuterClass.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy