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

yandex.cloud.api.billing.v1.SkuServiceOuterClass Maven / Gradle / Ivy

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

package yandex.cloud.api.billing.v1;

public final class SkuServiceOuterClass {
  private SkuServiceOuterClass() {}
  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 GetSkuRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.GetSkuRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the SKU to return.
     * To get the SKU ID, use [SkuService.List] request.
     * 
* * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The id. */ java.lang.String getId(); /** *
     * ID of the SKU to return.
     * To get the SKU ID, use [SkuService.List] request.
     * 
* * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Currency of the SKU.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 2 [(.yandex.cloud.required) = true]; * @return The currency. */ java.lang.String getCurrency(); /** *
     * Currency of the SKU.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 2 [(.yandex.cloud.required) = true]; * @return The bytes for currency. */ com.google.protobuf.ByteString getCurrencyBytes(); /** *
     * Optional ID of the billing account.
     * If specified, contract prices for a particular billing account are included in the response.
     * To get the billing account ID, use [BillingAccountService.List] request.
     * 
* * string billing_account_id = 3; * @return The billingAccountId. */ java.lang.String getBillingAccountId(); /** *
     * Optional ID of the billing account.
     * If specified, contract prices for a particular billing account are included in the response.
     * To get the billing account ID, use [BillingAccountService.List] request.
     * 
* * string billing_account_id = 3; * @return The bytes for billingAccountId. */ com.google.protobuf.ByteString getBillingAccountIdBytes(); } /** * Protobuf type {@code yandex.cloud.billing.v1.GetSkuRequest} */ public static final class GetSkuRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.GetSkuRequest) GetSkuRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetSkuRequest.newBuilder() to construct. private GetSkuRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetSkuRequest() { id_ = ""; currency_ = ""; billingAccountId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetSkuRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetSkuRequest( 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(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); currency_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); billingAccountId_ = 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.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_GetSkuRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_GetSkuRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest.class, yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the SKU to return.
     * To get the SKU ID, use [SkuService.List] request.
     * 
* * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * ID of the SKU to return.
     * To get the SKU ID, use [SkuService.List] request.
     * 
* * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CURRENCY_FIELD_NUMBER = 2; private volatile java.lang.Object currency_; /** *
     * Currency of the SKU.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 2 [(.yandex.cloud.required) = true]; * @return The currency. */ @java.lang.Override public java.lang.String getCurrency() { java.lang.Object ref = currency_; 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(); currency_ = s; return s; } } /** *
     * Currency of the SKU.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 2 [(.yandex.cloud.required) = true]; * @return The bytes for currency. */ @java.lang.Override public com.google.protobuf.ByteString getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currency_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BILLING_ACCOUNT_ID_FIELD_NUMBER = 3; private volatile java.lang.Object billingAccountId_; /** *
     * Optional ID of the billing account.
     * If specified, contract prices for a particular billing account are included in the response.
     * To get the billing account ID, use [BillingAccountService.List] request.
     * 
* * string billing_account_id = 3; * @return The billingAccountId. */ @java.lang.Override public java.lang.String getBillingAccountId() { java.lang.Object ref = billingAccountId_; 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(); billingAccountId_ = s; return s; } } /** *
     * Optional ID of the billing account.
     * If specified, contract prices for a particular billing account are included in the response.
     * To get the billing account ID, use [BillingAccountService.List] request.
     * 
* * string billing_account_id = 3; * @return The bytes for billingAccountId. */ @java.lang.Override public com.google.protobuf.ByteString getBillingAccountIdBytes() { java.lang.Object ref = billingAccountId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); billingAccountId_ = 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, currency_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, billingAccountId_); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currency_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, billingAccountId_); } 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.billing.v1.SkuServiceOuterClass.GetSkuRequest)) { return super.equals(obj); } yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest other = (yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest) obj; if (!getId() .equals(other.getId())) return false; if (!getCurrency() .equals(other.getCurrency())) return false; if (!getBillingAccountId() .equals(other.getBillingAccountId())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + CURRENCY_FIELD_NUMBER; hash = (53 * hash) + getCurrency().hashCode(); hash = (37 * hash) + BILLING_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getBillingAccountId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest 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.billing.v1.SkuServiceOuterClass.GetSkuRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest 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.billing.v1.SkuServiceOuterClass.GetSkuRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest 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.billing.v1.SkuServiceOuterClass.GetSkuRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest 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.billing.v1.SkuServiceOuterClass.GetSkuRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest 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.billing.v1.SkuServiceOuterClass.GetSkuRequest 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.billing.v1.GetSkuRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.GetSkuRequest) yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_GetSkuRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_GetSkuRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest.class, yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest.Builder.class); } // Construct using yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest.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(); id_ = ""; currency_ = ""; billingAccountId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_GetSkuRequest_descriptor; } @java.lang.Override public yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest getDefaultInstanceForType() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest build() { yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest buildPartial() { yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest result = new yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest(this); result.id_ = id_; result.currency_ = currency_; result.billingAccountId_ = billingAccountId_; 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.billing.v1.SkuServiceOuterClass.GetSkuRequest) { return mergeFrom((yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest other) { if (other == yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getCurrency().isEmpty()) { currency_ = other.currency_; onChanged(); } if (!other.getBillingAccountId().isEmpty()) { billingAccountId_ = other.billingAccountId_; 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.billing.v1.SkuServiceOuterClass.GetSkuRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** *
       * ID of the SKU to return.
       * To get the SKU ID, use [SkuService.List] request.
       * 
* * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the SKU to return.
       * To get the SKU ID, use [SkuService.List] request.
       * 
* * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the SKU to return.
       * To get the SKU ID, use [SkuService.List] request.
       * 
* * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the SKU to return.
       * To get the SKU ID, use [SkuService.List] request.
       * 
* * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the SKU to return.
       * To get the SKU ID, use [SkuService.List] request.
       * 
* * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object currency_ = ""; /** *
       * Currency of the SKU.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 2 [(.yandex.cloud.required) = true]; * @return The currency. */ public java.lang.String getCurrency() { java.lang.Object ref = currency_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currency_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Currency of the SKU.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 2 [(.yandex.cloud.required) = true]; * @return The bytes for currency. */ public com.google.protobuf.ByteString getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currency_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Currency of the SKU.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 2 [(.yandex.cloud.required) = true]; * @param value The currency to set. * @return This builder for chaining. */ public Builder setCurrency( java.lang.String value) { if (value == null) { throw new NullPointerException(); } currency_ = value; onChanged(); return this; } /** *
       * Currency of the SKU.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 2 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearCurrency() { currency_ = getDefaultInstance().getCurrency(); onChanged(); return this; } /** *
       * Currency of the SKU.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 2 [(.yandex.cloud.required) = true]; * @param value The bytes for currency to set. * @return This builder for chaining. */ public Builder setCurrencyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currency_ = value; onChanged(); return this; } private java.lang.Object billingAccountId_ = ""; /** *
       * Optional ID of the billing account.
       * If specified, contract prices for a particular billing account are included in the response.
       * To get the billing account ID, use [BillingAccountService.List] request.
       * 
* * string billing_account_id = 3; * @return The billingAccountId. */ public java.lang.String getBillingAccountId() { java.lang.Object ref = billingAccountId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); billingAccountId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Optional ID of the billing account.
       * If specified, contract prices for a particular billing account are included in the response.
       * To get the billing account ID, use [BillingAccountService.List] request.
       * 
* * string billing_account_id = 3; * @return The bytes for billingAccountId. */ public com.google.protobuf.ByteString getBillingAccountIdBytes() { java.lang.Object ref = billingAccountId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); billingAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Optional ID of the billing account.
       * If specified, contract prices for a particular billing account are included in the response.
       * To get the billing account ID, use [BillingAccountService.List] request.
       * 
* * string billing_account_id = 3; * @param value The billingAccountId to set. * @return This builder for chaining. */ public Builder setBillingAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } billingAccountId_ = value; onChanged(); return this; } /** *
       * Optional ID of the billing account.
       * If specified, contract prices for a particular billing account are included in the response.
       * To get the billing account ID, use [BillingAccountService.List] request.
       * 
* * string billing_account_id = 3; * @return This builder for chaining. */ public Builder clearBillingAccountId() { billingAccountId_ = getDefaultInstance().getBillingAccountId(); onChanged(); return this; } /** *
       * Optional ID of the billing account.
       * If specified, contract prices for a particular billing account are included in the response.
       * To get the billing account ID, use [BillingAccountService.List] request.
       * 
* * string billing_account_id = 3; * @param value The bytes for billingAccountId to set. * @return This builder for chaining. */ public Builder setBillingAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); billingAccountId_ = 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.billing.v1.GetSkuRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.GetSkuRequest) private static final yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest(); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.GetSkuRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetSkuRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetSkuRequest(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.billing.v1.SkuServiceOuterClass.GetSkuRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListSkusRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.ListSkusRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Currency of the prices.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 1 [(.yandex.cloud.required) = true]; * @return The currency. */ java.lang.String getCurrency(); /** *
     * Currency of the prices.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 1 [(.yandex.cloud.required) = true]; * @return The bytes for currency. */ com.google.protobuf.ByteString getCurrencyBytes(); /** *
     * Optional ID of the billing account.
     * If specified, contract prices for a particular billing account are included in the response.
     * To get the billing account ID, use [BillingAccountService.List] request.
     * 
* * string billing_account_id = 2; * @return The billingAccountId. */ java.lang.String getBillingAccountId(); /** *
     * Optional ID of the billing account.
     * If specified, contract prices for a particular billing account are included in the response.
     * To get the billing account ID, use [BillingAccountService.List] request.
     * 
* * string billing_account_id = 2; * @return The bytes for billingAccountId. */ com.google.protobuf.ByteString getBillingAccountIdBytes(); /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently you can use filtering only on the [yandex.cloud.billing.v1.Sku.id] and [yandex.cloud.billing.v1.Sku.service_id] field.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * 
* * string filter = 3 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ java.lang.String getFilter(); /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently you can use filtering only on the [yandex.cloud.billing.v1.Sku.id] and [yandex.cloud.billing.v1.Sku.service_id] field.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * 
* * string filter = 3 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size],
     * the service returns a [ListSkusResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * 
* * int64 page_size = 4 [(.yandex.cloud.value) = "<=1000"]; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results,
     * set [page_token] to the [ListSkusResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 5 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results,
     * set [page_token] to the [ListSkusResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 5 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.billing.v1.ListSkusRequest} */ public static final class ListSkusRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.ListSkusRequest) ListSkusRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListSkusRequest.newBuilder() to construct. private ListSkusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListSkusRequest() { currency_ = ""; billingAccountId_ = ""; filter_ = ""; pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListSkusRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListSkusRequest( 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(); currency_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); billingAccountId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); filter_ = s; break; } case 32: { pageSize_ = input.readInt64(); break; } case 42: { 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.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListSkusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListSkusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest.class, yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest.Builder.class); } public static final int CURRENCY_FIELD_NUMBER = 1; private volatile java.lang.Object currency_; /** *
     * Currency of the prices.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 1 [(.yandex.cloud.required) = true]; * @return The currency. */ @java.lang.Override public java.lang.String getCurrency() { java.lang.Object ref = currency_; 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(); currency_ = s; return s; } } /** *
     * Currency of the prices.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 1 [(.yandex.cloud.required) = true]; * @return The bytes for currency. */ @java.lang.Override public com.google.protobuf.ByteString getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currency_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BILLING_ACCOUNT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object billingAccountId_; /** *
     * Optional ID of the billing account.
     * If specified, contract prices for a particular billing account are included in the response.
     * To get the billing account ID, use [BillingAccountService.List] request.
     * 
* * string billing_account_id = 2; * @return The billingAccountId. */ @java.lang.Override public java.lang.String getBillingAccountId() { java.lang.Object ref = billingAccountId_; 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(); billingAccountId_ = s; return s; } } /** *
     * Optional ID of the billing account.
     * If specified, contract prices for a particular billing account are included in the response.
     * To get the billing account ID, use [BillingAccountService.List] request.
     * 
* * string billing_account_id = 2; * @return The bytes for billingAccountId. */ @java.lang.Override public com.google.protobuf.ByteString getBillingAccountIdBytes() { java.lang.Object ref = billingAccountId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); billingAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently you can use filtering only on the [yandex.cloud.billing.v1.Sku.id] and [yandex.cloud.billing.v1.Sku.service_id] field.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * 
* * string filter = 3 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ @java.lang.Override 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; } } /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently you can use filtering only on the [yandex.cloud.billing.v1.Sku.id] and [yandex.cloud.billing.v1.Sku.service_id] field.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * 
* * string filter = 3 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ @java.lang.Override 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; } } public static final int PAGE_SIZE_FIELD_NUMBER = 4; private long pageSize_; /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size],
     * the service returns a [ListSkusResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * 
* * int64 page_size = 4 [(.yandex.cloud.value) = "<=1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 5; private volatile java.lang.Object pageToken_; /** *
     * Page token. To get the next page of results,
     * set [page_token] to the [ListSkusResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 5 [(.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. To get the next page of results,
     * set [page_token] to the [ListSkusResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 5 [(.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currency_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, billingAccountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_); } if (pageSize_ != 0L) { output.writeInt64(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_); } 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(currency_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currency_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, billingAccountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.billing.v1.SkuServiceOuterClass.ListSkusRequest)) { return super.equals(obj); } yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest other = (yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest) obj; if (!getCurrency() .equals(other.getCurrency())) return false; if (!getBillingAccountId() .equals(other.getBillingAccountId())) return false; if (!getFilter() .equals(other.getFilter())) return false; 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) + CURRENCY_FIELD_NUMBER; hash = (53 * hash) + getCurrency().hashCode(); hash = (37 * hash) + BILLING_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getBillingAccountId().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().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.billing.v1.SkuServiceOuterClass.ListSkusRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest 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.billing.v1.SkuServiceOuterClass.ListSkusRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest 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.billing.v1.SkuServiceOuterClass.ListSkusRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest 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.billing.v1.SkuServiceOuterClass.ListSkusRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest 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.billing.v1.SkuServiceOuterClass.ListSkusRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest 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.billing.v1.SkuServiceOuterClass.ListSkusRequest 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.billing.v1.ListSkusRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.ListSkusRequest) yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListSkusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListSkusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest.class, yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest.Builder.class); } // Construct using yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest.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(); currency_ = ""; billingAccountId_ = ""; filter_ = ""; pageSize_ = 0L; pageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListSkusRequest_descriptor; } @java.lang.Override public yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest getDefaultInstanceForType() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest build() { yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest buildPartial() { yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest result = new yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest(this); result.currency_ = currency_; result.billingAccountId_ = billingAccountId_; result.filter_ = filter_; 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.billing.v1.SkuServiceOuterClass.ListSkusRequest) { return mergeFrom((yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest other) { if (other == yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest.getDefaultInstance()) return this; if (!other.getCurrency().isEmpty()) { currency_ = other.currency_; onChanged(); } if (!other.getBillingAccountId().isEmpty()) { billingAccountId_ = other.billingAccountId_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); } 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.billing.v1.SkuServiceOuterClass.ListSkusRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object currency_ = ""; /** *
       * Currency of the prices.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 1 [(.yandex.cloud.required) = true]; * @return The currency. */ public java.lang.String getCurrency() { java.lang.Object ref = currency_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currency_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Currency of the prices.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 1 [(.yandex.cloud.required) = true]; * @return The bytes for currency. */ public com.google.protobuf.ByteString getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currency_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Currency of the prices.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 1 [(.yandex.cloud.required) = true]; * @param value The currency to set. * @return This builder for chaining. */ public Builder setCurrency( java.lang.String value) { if (value == null) { throw new NullPointerException(); } currency_ = value; onChanged(); return this; } /** *
       * Currency of the prices.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearCurrency() { currency_ = getDefaultInstance().getCurrency(); onChanged(); return this; } /** *
       * Currency of the prices.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for currency to set. * @return This builder for chaining. */ public Builder setCurrencyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currency_ = value; onChanged(); return this; } private java.lang.Object billingAccountId_ = ""; /** *
       * Optional ID of the billing account.
       * If specified, contract prices for a particular billing account are included in the response.
       * To get the billing account ID, use [BillingAccountService.List] request.
       * 
* * string billing_account_id = 2; * @return The billingAccountId. */ public java.lang.String getBillingAccountId() { java.lang.Object ref = billingAccountId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); billingAccountId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Optional ID of the billing account.
       * If specified, contract prices for a particular billing account are included in the response.
       * To get the billing account ID, use [BillingAccountService.List] request.
       * 
* * string billing_account_id = 2; * @return The bytes for billingAccountId. */ public com.google.protobuf.ByteString getBillingAccountIdBytes() { java.lang.Object ref = billingAccountId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); billingAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Optional ID of the billing account.
       * If specified, contract prices for a particular billing account are included in the response.
       * To get the billing account ID, use [BillingAccountService.List] request.
       * 
* * string billing_account_id = 2; * @param value The billingAccountId to set. * @return This builder for chaining. */ public Builder setBillingAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } billingAccountId_ = value; onChanged(); return this; } /** *
       * Optional ID of the billing account.
       * If specified, contract prices for a particular billing account are included in the response.
       * To get the billing account ID, use [BillingAccountService.List] request.
       * 
* * string billing_account_id = 2; * @return This builder for chaining. */ public Builder clearBillingAccountId() { billingAccountId_ = getDefaultInstance().getBillingAccountId(); onChanged(); return this; } /** *
       * Optional ID of the billing account.
       * If specified, contract prices for a particular billing account are included in the response.
       * To get the billing account ID, use [BillingAccountService.List] request.
       * 
* * string billing_account_id = 2; * @param value The bytes for billingAccountId to set. * @return This builder for chaining. */ public Builder setBillingAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); billingAccountId_ = value; onChanged(); return this; } private java.lang.Object filter_ = ""; /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently you can use filtering only on the [yandex.cloud.billing.v1.Sku.id] and [yandex.cloud.billing.v1.Sku.service_id] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * 
* * string filter = 3 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ 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; } } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently you can use filtering only on the [yandex.cloud.billing.v1.Sku.id] and [yandex.cloud.billing.v1.Sku.service_id] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * 
* * string filter = 3 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ 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; } } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently you can use filtering only on the [yandex.cloud.billing.v1.Sku.id] and [yandex.cloud.billing.v1.Sku.service_id] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * 
* * string filter = 3 [(.yandex.cloud.length) = "<=1000"]; * @param value The filter to set. * @return This builder for chaining. */ public Builder setFilter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); return this; } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently you can use filtering only on the [yandex.cloud.billing.v1.Sku.id] and [yandex.cloud.billing.v1.Sku.service_id] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * 
* * string filter = 3 [(.yandex.cloud.length) = "<=1000"]; * @return This builder for chaining. */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently you can use filtering only on the [yandex.cloud.billing.v1.Sku.id] and [yandex.cloud.billing.v1.Sku.service_id] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * 
* * string filter = 3 [(.yandex.cloud.length) = "<=1000"]; * @param value The bytes for filter to set. * @return This builder for chaining. */ public Builder setFilterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; onChanged(); return this; } private long pageSize_ ; /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than [page_size],
       * the service returns a [ListSkusResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * 
* * int64 page_size = 4 [(.yandex.cloud.value) = "<=1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than [page_size],
       * the service returns a [ListSkusResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * 
* * int64 page_size = 4 [(.yandex.cloud.value) = "<=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 to return. If the number of available
       * results is larger than [page_size],
       * the service returns a [ListSkusResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * 
* * int64 page_size = 4 [(.yandex.cloud.value) = "<=1000"]; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** *
       * Page token. To get the next page of results,
       * set [page_token] to the [ListSkusResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 5 [(.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. To get the next page of results,
       * set [page_token] to the [ListSkusResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 5 [(.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. To get the next page of results,
       * set [page_token] to the [ListSkusResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 5 [(.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. To get the next page of results,
       * set [page_token] to the [ListSkusResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 5 [(.yandex.cloud.length) = "<=100"]; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** *
       * Page token. To get the next page of results,
       * set [page_token] to the [ListSkusResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 5 [(.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.billing.v1.ListSkusRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.ListSkusRequest) private static final yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest(); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSkusRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListSkusRequest(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.billing.v1.SkuServiceOuterClass.ListSkusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListSkusResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.ListSkusResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of skus.
     * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ java.util.List getSkusList(); /** *
     * List of skus.
     * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ yandex.cloud.api.billing.v1.SkuOuterClass.Sku getSkus(int index); /** *
     * List of skus.
     * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ int getSkusCount(); /** *
     * List of skus.
     * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ java.util.List getSkusOrBuilderList(); /** *
     * List of skus.
     * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ yandex.cloud.api.billing.v1.SkuOuterClass.SkuOrBuilder getSkusOrBuilder( int index); /** *
     * This token allows you to get the next page of results for list requests. If the number of results
     * is larger than [ListSkusRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListSkusRequest.page_token] query parameter
     * in the next list request. Each subsequent list request will have its 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 list requests. If the number of results
     * is larger than [ListSkusRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListSkusRequest.page_token] query parameter
     * in the next list request. Each subsequent list request will have its 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.billing.v1.ListSkusResponse} */ public static final class ListSkusResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.ListSkusResponse) ListSkusResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListSkusResponse.newBuilder() to construct. private ListSkusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListSkusResponse() { skus_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListSkusResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListSkusResponse( 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)) { skus_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } skus_.add( input.readMessage(yandex.cloud.api.billing.v1.SkuOuterClass.Sku.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)) { skus_ = java.util.Collections.unmodifiableList(skus_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListSkusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListSkusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse.class, yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse.Builder.class); } public static final int SKUS_FIELD_NUMBER = 1; private java.util.List skus_; /** *
     * List of skus.
     * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ @java.lang.Override public java.util.List getSkusList() { return skus_; } /** *
     * List of skus.
     * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ @java.lang.Override public java.util.List getSkusOrBuilderList() { return skus_; } /** *
     * List of skus.
     * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ @java.lang.Override public int getSkusCount() { return skus_.size(); } /** *
     * List of skus.
     * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.Sku getSkus(int index) { return skus_.get(index); } /** *
     * List of skus.
     * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.SkuOrBuilder getSkusOrBuilder( int index) { return skus_.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 list requests. If the number of results
     * is larger than [ListSkusRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListSkusRequest.page_token] query parameter
     * in the next list request. Each subsequent list request will have its 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 list requests. If the number of results
     * is larger than [ListSkusRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListSkusRequest.page_token] query parameter
     * in the next list request. Each subsequent list request will have its 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 < skus_.size(); i++) { output.writeMessage(1, skus_.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 < skus_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, skus_.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.billing.v1.SkuServiceOuterClass.ListSkusResponse)) { return super.equals(obj); } yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse other = (yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse) obj; if (!getSkusList() .equals(other.getSkusList())) 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 (getSkusCount() > 0) { hash = (37 * hash) + SKUS_FIELD_NUMBER; hash = (53 * hash) + getSkusList().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.billing.v1.SkuServiceOuterClass.ListSkusResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse 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.billing.v1.SkuServiceOuterClass.ListSkusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse 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.billing.v1.SkuServiceOuterClass.ListSkusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse 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.billing.v1.SkuServiceOuterClass.ListSkusResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse 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.billing.v1.SkuServiceOuterClass.ListSkusResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse 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.billing.v1.SkuServiceOuterClass.ListSkusResponse 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.billing.v1.ListSkusResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.ListSkusResponse) yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListSkusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListSkusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse.class, yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse.Builder.class); } // Construct using yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSkusFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (skusBuilder_ == null) { skus_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { skusBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.internal_static_yandex_cloud_billing_v1_ListSkusResponse_descriptor; } @java.lang.Override public yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse getDefaultInstanceForType() { return yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse build() { yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse buildPartial() { yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse result = new yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse(this); int from_bitField0_ = bitField0_; if (skusBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { skus_ = java.util.Collections.unmodifiableList(skus_); bitField0_ = (bitField0_ & ~0x00000001); } result.skus_ = skus_; } else { result.skus_ = skusBuilder_.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.billing.v1.SkuServiceOuterClass.ListSkusResponse) { return mergeFrom((yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse other) { if (other == yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse.getDefaultInstance()) return this; if (skusBuilder_ == null) { if (!other.skus_.isEmpty()) { if (skus_.isEmpty()) { skus_ = other.skus_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSkusIsMutable(); skus_.addAll(other.skus_); } onChanged(); } } else { if (!other.skus_.isEmpty()) { if (skusBuilder_.isEmpty()) { skusBuilder_.dispose(); skusBuilder_ = null; skus_ = other.skus_; bitField0_ = (bitField0_ & ~0x00000001); skusBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSkusFieldBuilder() : null; } else { skusBuilder_.addAllMessages(other.skus_); } } } 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.billing.v1.SkuServiceOuterClass.ListSkusResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List skus_ = java.util.Collections.emptyList(); private void ensureSkusIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { skus_ = new java.util.ArrayList(skus_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.billing.v1.SkuOuterClass.Sku, yandex.cloud.api.billing.v1.SkuOuterClass.Sku.Builder, yandex.cloud.api.billing.v1.SkuOuterClass.SkuOrBuilder> skusBuilder_; /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public java.util.List getSkusList() { if (skusBuilder_ == null) { return java.util.Collections.unmodifiableList(skus_); } else { return skusBuilder_.getMessageList(); } } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public int getSkusCount() { if (skusBuilder_ == null) { return skus_.size(); } else { return skusBuilder_.getCount(); } } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public yandex.cloud.api.billing.v1.SkuOuterClass.Sku getSkus(int index) { if (skusBuilder_ == null) { return skus_.get(index); } else { return skusBuilder_.getMessage(index); } } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public Builder setSkus( int index, yandex.cloud.api.billing.v1.SkuOuterClass.Sku value) { if (skusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSkusIsMutable(); skus_.set(index, value); onChanged(); } else { skusBuilder_.setMessage(index, value); } return this; } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public Builder setSkus( int index, yandex.cloud.api.billing.v1.SkuOuterClass.Sku.Builder builderForValue) { if (skusBuilder_ == null) { ensureSkusIsMutable(); skus_.set(index, builderForValue.build()); onChanged(); } else { skusBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public Builder addSkus(yandex.cloud.api.billing.v1.SkuOuterClass.Sku value) { if (skusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSkusIsMutable(); skus_.add(value); onChanged(); } else { skusBuilder_.addMessage(value); } return this; } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public Builder addSkus( int index, yandex.cloud.api.billing.v1.SkuOuterClass.Sku value) { if (skusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSkusIsMutable(); skus_.add(index, value); onChanged(); } else { skusBuilder_.addMessage(index, value); } return this; } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public Builder addSkus( yandex.cloud.api.billing.v1.SkuOuterClass.Sku.Builder builderForValue) { if (skusBuilder_ == null) { ensureSkusIsMutable(); skus_.add(builderForValue.build()); onChanged(); } else { skusBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public Builder addSkus( int index, yandex.cloud.api.billing.v1.SkuOuterClass.Sku.Builder builderForValue) { if (skusBuilder_ == null) { ensureSkusIsMutable(); skus_.add(index, builderForValue.build()); onChanged(); } else { skusBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public Builder addAllSkus( java.lang.Iterable values) { if (skusBuilder_ == null) { ensureSkusIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, skus_); onChanged(); } else { skusBuilder_.addAllMessages(values); } return this; } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public Builder clearSkus() { if (skusBuilder_ == null) { skus_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { skusBuilder_.clear(); } return this; } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public Builder removeSkus(int index) { if (skusBuilder_ == null) { ensureSkusIsMutable(); skus_.remove(index); onChanged(); } else { skusBuilder_.remove(index); } return this; } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public yandex.cloud.api.billing.v1.SkuOuterClass.Sku.Builder getSkusBuilder( int index) { return getSkusFieldBuilder().getBuilder(index); } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public yandex.cloud.api.billing.v1.SkuOuterClass.SkuOrBuilder getSkusOrBuilder( int index) { if (skusBuilder_ == null) { return skus_.get(index); } else { return skusBuilder_.getMessageOrBuilder(index); } } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public java.util.List getSkusOrBuilderList() { if (skusBuilder_ != null) { return skusBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(skus_); } } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public yandex.cloud.api.billing.v1.SkuOuterClass.Sku.Builder addSkusBuilder() { return getSkusFieldBuilder().addBuilder( yandex.cloud.api.billing.v1.SkuOuterClass.Sku.getDefaultInstance()); } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public yandex.cloud.api.billing.v1.SkuOuterClass.Sku.Builder addSkusBuilder( int index) { return getSkusFieldBuilder().addBuilder( index, yandex.cloud.api.billing.v1.SkuOuterClass.Sku.getDefaultInstance()); } /** *
       * List of skus.
       * 
* * repeated .yandex.cloud.billing.v1.Sku skus = 1; */ public java.util.List getSkusBuilderList() { return getSkusFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.billing.v1.SkuOuterClass.Sku, yandex.cloud.api.billing.v1.SkuOuterClass.Sku.Builder, yandex.cloud.api.billing.v1.SkuOuterClass.SkuOrBuilder> getSkusFieldBuilder() { if (skusBuilder_ == null) { skusBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.billing.v1.SkuOuterClass.Sku, yandex.cloud.api.billing.v1.SkuOuterClass.Sku.Builder, yandex.cloud.api.billing.v1.SkuOuterClass.SkuOrBuilder>( skus_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); skus_ = null; } return skusBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * This token allows you to get the next page of results for list requests. If the number of results
       * is larger than [ListSkusRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListSkusRequest.page_token] query parameter
       * in the next list request. Each subsequent list request will have its 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 list requests. If the number of results
       * is larger than [ListSkusRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListSkusRequest.page_token] query parameter
       * in the next list request. Each subsequent list request will have its 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 list requests. If the number of results
       * is larger than [ListSkusRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListSkusRequest.page_token] query parameter
       * in the next list request. Each subsequent list request will have its 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 list requests. If the number of results
       * is larger than [ListSkusRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListSkusRequest.page_token] query parameter
       * in the next list request. Each subsequent list request will have its 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 list requests. If the number of results
       * is larger than [ListSkusRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListSkusRequest.page_token] query parameter
       * in the next list request. Each subsequent list request will have its 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.billing.v1.ListSkusResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.ListSkusResponse) private static final yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse(); } public static yandex.cloud.api.billing.v1.SkuServiceOuterClass.ListSkusResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSkusResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListSkusResponse(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.billing.v1.SkuServiceOuterClass.ListSkusResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_billing_v1_GetSkuRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_billing_v1_GetSkuRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_billing_v1_ListSkusRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_billing_v1_ListSkusRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_billing_v1_ListSkusResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_billing_v1_ListSkusResponse_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/billing/v1/sku_service.pr" + "oto\022\027yandex.cloud.billing.v1\032\034google/api" + "/annotations.proto\032!yandex/cloud/billing" + "/v1/sku.proto\032\035yandex/cloud/validation.p" + "roto\"]\n\rGetSkuRequest\022\030\n\002id\030\001 \001(\tB\014\350\3071\001\212" + "\3101\004<=50\022\026\n\010currency\030\002 \001(\tB\004\350\3071\001\022\032\n\022billi" + "ng_account_id\030\003 \001(\t\"\237\001\n\017ListSkusRequest\022" + "\026\n\010currency\030\001 \001(\tB\004\350\3071\001\022\032\n\022billing_accou" + "nt_id\030\002 \001(\t\022\032\n\006filter\030\003 \001(\tB\n\212\3101\006<=1000\022" + "\035\n\tpage_size\030\004 \001(\003B\n\372\3071\006<=1000\022\035\n\npage_t" + "oken\030\005 \001(\tB\t\212\3101\005<=100\"W\n\020ListSkusRespons" + "e\022*\n\004skus\030\001 \003(\0132\034.yandex.cloud.billing.v" + "1.Sku\022\027\n\017next_page_token\030\002 \001(\t2\357\001\n\nSkuSe" + "rvice\022j\n\003Get\022&.yandex.cloud.billing.v1.G" + "etSkuRequest\032\034.yandex.cloud.billing.v1.S" + "ku\"\035\202\323\344\223\002\027\022\025/billing/v1/skus/{id}\022u\n\004Lis" + "t\022(.yandex.cloud.billing.v1.ListSkusRequ" + "est\032).yandex.cloud.billing.v1.ListSkusRe" + "sponse\"\030\202\323\344\223\002\022\022\020/billing/v1/skusBb\n\033yand" + "ex.cloud.api.billing.v1ZCgithub.com/yand" + "ex-cloud/go-genproto/yandex/cloud/billin" + "g/v1;billingb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), yandex.cloud.api.billing.v1.SkuOuterClass.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), }); internal_static_yandex_cloud_billing_v1_GetSkuRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_billing_v1_GetSkuRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_billing_v1_GetSkuRequest_descriptor, new java.lang.String[] { "Id", "Currency", "BillingAccountId", }); internal_static_yandex_cloud_billing_v1_ListSkusRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_billing_v1_ListSkusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_billing_v1_ListSkusRequest_descriptor, new java.lang.String[] { "Currency", "BillingAccountId", "Filter", "PageSize", "PageToken", }); internal_static_yandex_cloud_billing_v1_ListSkusResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_billing_v1_ListSkusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_billing_v1_ListSkusResponse_descriptor, new java.lang.String[] { "Skus", "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.billing.v1.SkuOuterClass.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy