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

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

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

package yandex.cloud.api.billing.v1;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * Type of the pricing version.
   * 
* * Protobuf enum {@code yandex.cloud.billing.v1.PricingVersionType} */ public enum PricingVersionType implements com.google.protobuf.ProtocolMessageEnum { /** * PRICING_VERSION_TYPE_UNSPECIFIED = 0; */ PRICING_VERSION_TYPE_UNSPECIFIED(0), /** *
     * Regular price.
     * 
* * STREET_PRICE = 1; */ STREET_PRICE(1), /** *
     * Price is overridden by a contract. Defined in the scope of a billing account.
     * 
* * CONTRACT_PRICE = 2; */ CONTRACT_PRICE(2), UNRECOGNIZED(-1), ; /** * PRICING_VERSION_TYPE_UNSPECIFIED = 0; */ public static final int PRICING_VERSION_TYPE_UNSPECIFIED_VALUE = 0; /** *
     * Regular price.
     * 
* * STREET_PRICE = 1; */ public static final int STREET_PRICE_VALUE = 1; /** *
     * Price is overridden by a contract. Defined in the scope of a billing account.
     * 
* * CONTRACT_PRICE = 2; */ public static final int CONTRACT_PRICE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PricingVersionType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static PricingVersionType forNumber(int value) { switch (value) { case 0: return PRICING_VERSION_TYPE_UNSPECIFIED; case 1: return STREET_PRICE; case 2: return CONTRACT_PRICE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PricingVersionType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PricingVersionType findValueByNumber(int number) { return PricingVersionType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.billing.v1.SkuOuterClass.getDescriptor().getEnumTypes().get(0); } private static final PricingVersionType[] VALUES = values(); public static PricingVersionType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private PricingVersionType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.billing.v1.PricingVersionType) } public interface SkuOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.Sku) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the SKU.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the SKU.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Name of the SKU.
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * Name of the SKU.
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the sku.
     * 
* * string description = 3; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the sku.
     * 
* * string description = 3; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * ID of the service that sku belongs to.
     * 
* * string service_id = 4; * @return The serviceId. */ java.lang.String getServiceId(); /** *
     * ID of the service that sku belongs to.
     * 
* * string service_id = 4; * @return The bytes for serviceId. */ com.google.protobuf.ByteString getServiceIdBytes(); /** *
     * Pricing unit of the SKU, e.g. `core*hour`, `gbyte*hour`.
     * 
* * string pricing_unit = 5; * @return The pricingUnit. */ java.lang.String getPricingUnit(); /** *
     * Pricing unit of the SKU, e.g. `core*hour`, `gbyte*hour`.
     * 
* * string pricing_unit = 5; * @return The bytes for pricingUnit. */ com.google.protobuf.ByteString getPricingUnitBytes(); /** *
     * List of pricing versions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ java.util.List getPricingVersionsList(); /** *
     * List of pricing versions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion getPricingVersions(int index); /** *
     * List of pricing versions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ int getPricingVersionsCount(); /** *
     * List of pricing versions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ java.util.List getPricingVersionsOrBuilderList(); /** *
     * List of pricing versions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionOrBuilder getPricingVersionsOrBuilder( int index); } /** *
   * A Stock keeping unit resource.
   * 
* * Protobuf type {@code yandex.cloud.billing.v1.Sku} */ public static final class Sku extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.Sku) SkuOrBuilder { private static final long serialVersionUID = 0L; // Use Sku.newBuilder() to construct. private Sku(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Sku() { id_ = ""; name_ = ""; description_ = ""; serviceId_ = ""; pricingUnit_ = ""; pricingVersions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Sku(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Sku( 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: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); serviceId_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); pricingUnit_ = s; break; } case 50: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { pricingVersions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } pricingVersions_.add( input.readMessage(yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.parser(), extensionRegistry)); 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)) { pricingVersions_ = java.util.Collections.unmodifiableList(pricingVersions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_Sku_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_Sku_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.SkuOuterClass.Sku.class, yandex.cloud.api.billing.v1.SkuOuterClass.Sku.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the SKU.
     * 
* * string id = 1; * @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.
     * 
* * string id = 1; * @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 NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * Name of the SKU.
     * 
* * string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * Name of the SKU.
     * 
* * string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** *
     * Description of the sku.
     * 
* * string description = 3; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** *
     * Description of the sku.
     * 
* * string description = 3; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVICE_ID_FIELD_NUMBER = 4; private volatile java.lang.Object serviceId_; /** *
     * ID of the service that sku belongs to.
     * 
* * string service_id = 4; * @return The serviceId. */ @java.lang.Override public java.lang.String getServiceId() { java.lang.Object ref = serviceId_; 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(); serviceId_ = s; return s; } } /** *
     * ID of the service that sku belongs to.
     * 
* * string service_id = 4; * @return The bytes for serviceId. */ @java.lang.Override public com.google.protobuf.ByteString getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRICING_UNIT_FIELD_NUMBER = 5; private volatile java.lang.Object pricingUnit_; /** *
     * Pricing unit of the SKU, e.g. `core*hour`, `gbyte*hour`.
     * 
* * string pricing_unit = 5; * @return The pricingUnit. */ @java.lang.Override public java.lang.String getPricingUnit() { java.lang.Object ref = pricingUnit_; 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(); pricingUnit_ = s; return s; } } /** *
     * Pricing unit of the SKU, e.g. `core*hour`, `gbyte*hour`.
     * 
* * string pricing_unit = 5; * @return The bytes for pricingUnit. */ @java.lang.Override public com.google.protobuf.ByteString getPricingUnitBytes() { java.lang.Object ref = pricingUnit_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pricingUnit_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRICING_VERSIONS_FIELD_NUMBER = 6; private java.util.List pricingVersions_; /** *
     * List of pricing versions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ @java.lang.Override public java.util.List getPricingVersionsList() { return pricingVersions_; } /** *
     * List of pricing versions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ @java.lang.Override public java.util.List getPricingVersionsOrBuilderList() { return pricingVersions_; } /** *
     * List of pricing versions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ @java.lang.Override public int getPricingVersionsCount() { return pricingVersions_.size(); } /** *
     * List of pricing versions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion getPricingVersions(int index) { return pricingVersions_.get(index); } /** *
     * List of pricing versions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionOrBuilder getPricingVersionsOrBuilder( int index) { return pricingVersions_.get(index); } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, serviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pricingUnit_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pricingUnit_); } for (int i = 0; i < pricingVersions_.size(); i++) { output.writeMessage(6, pricingVersions_.get(i)); } 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, serviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pricingUnit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pricingUnit_); } for (int i = 0; i < pricingVersions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, pricingVersions_.get(i)); } 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.SkuOuterClass.Sku)) { return super.equals(obj); } yandex.cloud.api.billing.v1.SkuOuterClass.Sku other = (yandex.cloud.api.billing.v1.SkuOuterClass.Sku) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getServiceId() .equals(other.getServiceId())) return false; if (!getPricingUnit() .equals(other.getPricingUnit())) return false; if (!getPricingVersionsList() .equals(other.getPricingVersionsList())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + SERVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceId().hashCode(); hash = (37 * hash) + PRICING_UNIT_FIELD_NUMBER; hash = (53 * hash) + getPricingUnit().hashCode(); if (getPricingVersionsCount() > 0) { hash = (37 * hash) + PRICING_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getPricingVersionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.billing.v1.SkuOuterClass.Sku parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuOuterClass.Sku 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.SkuOuterClass.Sku parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuOuterClass.Sku 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.SkuOuterClass.Sku parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuOuterClass.Sku 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.SkuOuterClass.Sku parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuOuterClass.Sku 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.SkuOuterClass.Sku parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuOuterClass.Sku 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.SkuOuterClass.Sku 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.SkuOuterClass.Sku 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.SkuOuterClass.Sku 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; } /** *
     * A Stock keeping unit resource.
     * 
* * Protobuf type {@code yandex.cloud.billing.v1.Sku} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.Sku) yandex.cloud.api.billing.v1.SkuOuterClass.SkuOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_Sku_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_Sku_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.SkuOuterClass.Sku.class, yandex.cloud.api.billing.v1.SkuOuterClass.Sku.Builder.class); } // Construct using yandex.cloud.api.billing.v1.SkuOuterClass.Sku.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPricingVersionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; description_ = ""; serviceId_ = ""; pricingUnit_ = ""; if (pricingVersionsBuilder_ == null) { pricingVersions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { pricingVersionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_Sku_descriptor; } @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.Sku getDefaultInstanceForType() { return yandex.cloud.api.billing.v1.SkuOuterClass.Sku.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.Sku build() { yandex.cloud.api.billing.v1.SkuOuterClass.Sku result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.Sku buildPartial() { yandex.cloud.api.billing.v1.SkuOuterClass.Sku result = new yandex.cloud.api.billing.v1.SkuOuterClass.Sku(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; result.description_ = description_; result.serviceId_ = serviceId_; result.pricingUnit_ = pricingUnit_; if (pricingVersionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { pricingVersions_ = java.util.Collections.unmodifiableList(pricingVersions_); bitField0_ = (bitField0_ & ~0x00000001); } result.pricingVersions_ = pricingVersions_; } else { result.pricingVersions_ = pricingVersionsBuilder_.build(); } 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.SkuOuterClass.Sku) { return mergeFrom((yandex.cloud.api.billing.v1.SkuOuterClass.Sku)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.billing.v1.SkuOuterClass.Sku other) { if (other == yandex.cloud.api.billing.v1.SkuOuterClass.Sku.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getServiceId().isEmpty()) { serviceId_ = other.serviceId_; onChanged(); } if (!other.getPricingUnit().isEmpty()) { pricingUnit_ = other.pricingUnit_; onChanged(); } if (pricingVersionsBuilder_ == null) { if (!other.pricingVersions_.isEmpty()) { if (pricingVersions_.isEmpty()) { pricingVersions_ = other.pricingVersions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePricingVersionsIsMutable(); pricingVersions_.addAll(other.pricingVersions_); } onChanged(); } } else { if (!other.pricingVersions_.isEmpty()) { if (pricingVersionsBuilder_.isEmpty()) { pricingVersionsBuilder_.dispose(); pricingVersionsBuilder_ = null; pricingVersions_ = other.pricingVersions_; bitField0_ = (bitField0_ & ~0x00000001); pricingVersionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPricingVersionsFieldBuilder() : null; } else { pricingVersionsBuilder_.addAllMessages(other.pricingVersions_); } } } 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.SkuOuterClass.Sku parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.billing.v1.SkuOuterClass.Sku) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the SKU.
       * 
* * string id = 1; * @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.
       * 
* * string id = 1; * @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.
       * 
* * string id = 1; * @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.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the SKU.
       * 
* * string id = 1; * @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 name_ = ""; /** *
       * Name of the SKU.
       * 
* * string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the SKU.
       * 
* * string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the SKU.
       * 
* * string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the SKU.
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the SKU.
       * 
* * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the sku.
       * 
* * string description = 3; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the sku.
       * 
* * string description = 3; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the sku.
       * 
* * string description = 3; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the sku.
       * 
* * string description = 3; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the sku.
       * 
* * string description = 3; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object serviceId_ = ""; /** *
       * ID of the service that sku belongs to.
       * 
* * string service_id = 4; * @return The serviceId. */ public java.lang.String getServiceId() { java.lang.Object ref = serviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the service that sku belongs to.
       * 
* * string service_id = 4; * @return The bytes for serviceId. */ public com.google.protobuf.ByteString getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the service that sku belongs to.
       * 
* * string service_id = 4; * @param value The serviceId to set. * @return This builder for chaining. */ public Builder setServiceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serviceId_ = value; onChanged(); return this; } /** *
       * ID of the service that sku belongs to.
       * 
* * string service_id = 4; * @return This builder for chaining. */ public Builder clearServiceId() { serviceId_ = getDefaultInstance().getServiceId(); onChanged(); return this; } /** *
       * ID of the service that sku belongs to.
       * 
* * string service_id = 4; * @param value The bytes for serviceId to set. * @return This builder for chaining. */ public Builder setServiceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceId_ = value; onChanged(); return this; } private java.lang.Object pricingUnit_ = ""; /** *
       * Pricing unit of the SKU, e.g. `core*hour`, `gbyte*hour`.
       * 
* * string pricing_unit = 5; * @return The pricingUnit. */ public java.lang.String getPricingUnit() { java.lang.Object ref = pricingUnit_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pricingUnit_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Pricing unit of the SKU, e.g. `core*hour`, `gbyte*hour`.
       * 
* * string pricing_unit = 5; * @return The bytes for pricingUnit. */ public com.google.protobuf.ByteString getPricingUnitBytes() { java.lang.Object ref = pricingUnit_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pricingUnit_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Pricing unit of the SKU, e.g. `core*hour`, `gbyte*hour`.
       * 
* * string pricing_unit = 5; * @param value The pricingUnit to set. * @return This builder for chaining. */ public Builder setPricingUnit( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pricingUnit_ = value; onChanged(); return this; } /** *
       * Pricing unit of the SKU, e.g. `core*hour`, `gbyte*hour`.
       * 
* * string pricing_unit = 5; * @return This builder for chaining. */ public Builder clearPricingUnit() { pricingUnit_ = getDefaultInstance().getPricingUnit(); onChanged(); return this; } /** *
       * Pricing unit of the SKU, e.g. `core*hour`, `gbyte*hour`.
       * 
* * string pricing_unit = 5; * @param value The bytes for pricingUnit to set. * @return This builder for chaining. */ public Builder setPricingUnitBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pricingUnit_ = value; onChanged(); return this; } private java.util.List pricingVersions_ = java.util.Collections.emptyList(); private void ensurePricingVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pricingVersions_ = new java.util.ArrayList(pricingVersions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion, yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.Builder, yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionOrBuilder> pricingVersionsBuilder_; /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public java.util.List getPricingVersionsList() { if (pricingVersionsBuilder_ == null) { return java.util.Collections.unmodifiableList(pricingVersions_); } else { return pricingVersionsBuilder_.getMessageList(); } } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public int getPricingVersionsCount() { if (pricingVersionsBuilder_ == null) { return pricingVersions_.size(); } else { return pricingVersionsBuilder_.getCount(); } } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion getPricingVersions(int index) { if (pricingVersionsBuilder_ == null) { return pricingVersions_.get(index); } else { return pricingVersionsBuilder_.getMessage(index); } } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public Builder setPricingVersions( int index, yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion value) { if (pricingVersionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePricingVersionsIsMutable(); pricingVersions_.set(index, value); onChanged(); } else { pricingVersionsBuilder_.setMessage(index, value); } return this; } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public Builder setPricingVersions( int index, yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.Builder builderForValue) { if (pricingVersionsBuilder_ == null) { ensurePricingVersionsIsMutable(); pricingVersions_.set(index, builderForValue.build()); onChanged(); } else { pricingVersionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public Builder addPricingVersions(yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion value) { if (pricingVersionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePricingVersionsIsMutable(); pricingVersions_.add(value); onChanged(); } else { pricingVersionsBuilder_.addMessage(value); } return this; } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public Builder addPricingVersions( int index, yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion value) { if (pricingVersionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePricingVersionsIsMutable(); pricingVersions_.add(index, value); onChanged(); } else { pricingVersionsBuilder_.addMessage(index, value); } return this; } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public Builder addPricingVersions( yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.Builder builderForValue) { if (pricingVersionsBuilder_ == null) { ensurePricingVersionsIsMutable(); pricingVersions_.add(builderForValue.build()); onChanged(); } else { pricingVersionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public Builder addPricingVersions( int index, yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.Builder builderForValue) { if (pricingVersionsBuilder_ == null) { ensurePricingVersionsIsMutable(); pricingVersions_.add(index, builderForValue.build()); onChanged(); } else { pricingVersionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public Builder addAllPricingVersions( java.lang.Iterable values) { if (pricingVersionsBuilder_ == null) { ensurePricingVersionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pricingVersions_); onChanged(); } else { pricingVersionsBuilder_.addAllMessages(values); } return this; } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public Builder clearPricingVersions() { if (pricingVersionsBuilder_ == null) { pricingVersions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { pricingVersionsBuilder_.clear(); } return this; } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public Builder removePricingVersions(int index) { if (pricingVersionsBuilder_ == null) { ensurePricingVersionsIsMutable(); pricingVersions_.remove(index); onChanged(); } else { pricingVersionsBuilder_.remove(index); } return this; } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.Builder getPricingVersionsBuilder( int index) { return getPricingVersionsFieldBuilder().getBuilder(index); } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionOrBuilder getPricingVersionsOrBuilder( int index) { if (pricingVersionsBuilder_ == null) { return pricingVersions_.get(index); } else { return pricingVersionsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public java.util.List getPricingVersionsOrBuilderList() { if (pricingVersionsBuilder_ != null) { return pricingVersionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pricingVersions_); } } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.Builder addPricingVersionsBuilder() { return getPricingVersionsFieldBuilder().addBuilder( yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.getDefaultInstance()); } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.Builder addPricingVersionsBuilder( int index) { return getPricingVersionsFieldBuilder().addBuilder( index, yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.getDefaultInstance()); } /** *
       * List of pricing versions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingVersion pricing_versions = 6; */ public java.util.List getPricingVersionsBuilderList() { return getPricingVersionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion, yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.Builder, yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionOrBuilder> getPricingVersionsFieldBuilder() { if (pricingVersionsBuilder_ == null) { pricingVersionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion, yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.Builder, yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionOrBuilder>( pricingVersions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); pricingVersions_ = null; } return pricingVersionsBuilder_; } @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.Sku) } // @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.Sku) private static final yandex.cloud.api.billing.v1.SkuOuterClass.Sku DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.SkuOuterClass.Sku(); } public static yandex.cloud.api.billing.v1.SkuOuterClass.Sku getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Sku parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Sku(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.SkuOuterClass.Sku getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PricingVersionOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.PricingVersion) com.google.protobuf.MessageOrBuilder { /** *
     * Type of the pricing version.
     * 
* * .yandex.cloud.billing.v1.PricingVersionType type = 1; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** *
     * Type of the pricing version.
     * 
* * .yandex.cloud.billing.v1.PricingVersionType type = 1; * @return The type. */ yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionType getType(); /** *
     * Timestamp pricing version is active since inclusive.
     * The pricing version is active until next pricing version effective time exclusive.
     * 
* * .google.protobuf.Timestamp effective_time = 2; * @return Whether the effectiveTime field is set. */ boolean hasEffectiveTime(); /** *
     * Timestamp pricing version is active since inclusive.
     * The pricing version is active until next pricing version effective time exclusive.
     * 
* * .google.protobuf.Timestamp effective_time = 2; * @return The effectiveTime. */ com.google.protobuf.Timestamp getEffectiveTime(); /** *
     * Timestamp pricing version is active since inclusive.
     * The pricing version is active until next pricing version effective time exclusive.
     * 
* * .google.protobuf.Timestamp effective_time = 2; */ com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder(); /** *
     * List of pricing expressions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ java.util.List getPricingExpressionsList(); /** *
     * List of pricing expressions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression getPricingExpressions(int index); /** *
     * List of pricing expressions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ int getPricingExpressionsCount(); /** *
     * List of pricing expressions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ java.util.List getPricingExpressionsOrBuilderList(); /** *
     * List of pricing expressions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpressionOrBuilder getPricingExpressionsOrBuilder( int index); } /** *
   * Pricing version of the SKU.
   * Defines current and past prices for the sku.
   * 
* * Protobuf type {@code yandex.cloud.billing.v1.PricingVersion} */ public static final class PricingVersion extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.PricingVersion) PricingVersionOrBuilder { private static final long serialVersionUID = 0L; // Use PricingVersion.newBuilder() to construct. private PricingVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PricingVersion() { type_ = 0; pricingExpressions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PricingVersion(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PricingVersion( 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 8: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 18: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (effectiveTime_ != null) { subBuilder = effectiveTime_.toBuilder(); } effectiveTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveTime_); effectiveTime_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { pricingExpressions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } pricingExpressions_.add( input.readMessage(yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.parser(), extensionRegistry)); 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)) { pricingExpressions_ = java.util.Collections.unmodifiableList(pricingExpressions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_PricingVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_PricingVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.class, yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** *
     * Type of the pricing version.
     * 
* * .yandex.cloud.billing.v1.PricingVersionType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * Type of the pricing version.
     * 
* * .yandex.cloud.billing.v1.PricingVersionType type = 1; * @return The type. */ @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionType getType() { @SuppressWarnings("deprecation") yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionType result = yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionType.valueOf(type_); return result == null ? yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionType.UNRECOGNIZED : result; } public static final int EFFECTIVE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp effectiveTime_; /** *
     * Timestamp pricing version is active since inclusive.
     * The pricing version is active until next pricing version effective time exclusive.
     * 
* * .google.protobuf.Timestamp effective_time = 2; * @return Whether the effectiveTime field is set. */ @java.lang.Override public boolean hasEffectiveTime() { return effectiveTime_ != null; } /** *
     * Timestamp pricing version is active since inclusive.
     * The pricing version is active until next pricing version effective time exclusive.
     * 
* * .google.protobuf.Timestamp effective_time = 2; * @return The effectiveTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEffectiveTime() { return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } /** *
     * Timestamp pricing version is active since inclusive.
     * The pricing version is active until next pricing version effective time exclusive.
     * 
* * .google.protobuf.Timestamp effective_time = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() { return getEffectiveTime(); } public static final int PRICING_EXPRESSIONS_FIELD_NUMBER = 3; private java.util.List pricingExpressions_; /** *
     * List of pricing expressions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ @java.lang.Override public java.util.List getPricingExpressionsList() { return pricingExpressions_; } /** *
     * List of pricing expressions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ @java.lang.Override public java.util.List getPricingExpressionsOrBuilderList() { return pricingExpressions_; } /** *
     * List of pricing expressions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ @java.lang.Override public int getPricingExpressionsCount() { return pricingExpressions_.size(); } /** *
     * List of pricing expressions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression getPricingExpressions(int index) { return pricingExpressions_.get(index); } /** *
     * List of pricing expressions.
     * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpressionOrBuilder getPricingExpressionsOrBuilder( int index) { return pricingExpressions_.get(index); } 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 (type_ != yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionType.PRICING_VERSION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (effectiveTime_ != null) { output.writeMessage(2, getEffectiveTime()); } for (int i = 0; i < pricingExpressions_.size(); i++) { output.writeMessage(3, pricingExpressions_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionType.PRICING_VERSION_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (effectiveTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEffectiveTime()); } for (int i = 0; i < pricingExpressions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, pricingExpressions_.get(i)); } 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.SkuOuterClass.PricingVersion)) { return super.equals(obj); } yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion other = (yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion) obj; if (type_ != other.type_) return false; if (hasEffectiveTime() != other.hasEffectiveTime()) return false; if (hasEffectiveTime()) { if (!getEffectiveTime() .equals(other.getEffectiveTime())) return false; } if (!getPricingExpressionsList() .equals(other.getPricingExpressionsList())) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasEffectiveTime()) { hash = (37 * hash) + EFFECTIVE_TIME_FIELD_NUMBER; hash = (53 * hash) + getEffectiveTime().hashCode(); } if (getPricingExpressionsCount() > 0) { hash = (37 * hash) + PRICING_EXPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + getPricingExpressionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion 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.SkuOuterClass.PricingVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion 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.SkuOuterClass.PricingVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion 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.SkuOuterClass.PricingVersion parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion 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.SkuOuterClass.PricingVersion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion 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.SkuOuterClass.PricingVersion 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.SkuOuterClass.PricingVersion 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.SkuOuterClass.PricingVersion 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; } /** *
     * Pricing version of the SKU.
     * Defines current and past prices for the sku.
     * 
* * Protobuf type {@code yandex.cloud.billing.v1.PricingVersion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.PricingVersion) yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_PricingVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_PricingVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.class, yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.Builder.class); } // Construct using yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPricingExpressionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); type_ = 0; if (effectiveTimeBuilder_ == null) { effectiveTime_ = null; } else { effectiveTime_ = null; effectiveTimeBuilder_ = null; } if (pricingExpressionsBuilder_ == null) { pricingExpressions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { pricingExpressionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_PricingVersion_descriptor; } @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion getDefaultInstanceForType() { return yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion build() { yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion buildPartial() { yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion result = new yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion(this); int from_bitField0_ = bitField0_; result.type_ = type_; if (effectiveTimeBuilder_ == null) { result.effectiveTime_ = effectiveTime_; } else { result.effectiveTime_ = effectiveTimeBuilder_.build(); } if (pricingExpressionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { pricingExpressions_ = java.util.Collections.unmodifiableList(pricingExpressions_); bitField0_ = (bitField0_ & ~0x00000001); } result.pricingExpressions_ = pricingExpressions_; } else { result.pricingExpressions_ = pricingExpressionsBuilder_.build(); } 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.SkuOuterClass.PricingVersion) { return mergeFrom((yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion other) { if (other == yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasEffectiveTime()) { mergeEffectiveTime(other.getEffectiveTime()); } if (pricingExpressionsBuilder_ == null) { if (!other.pricingExpressions_.isEmpty()) { if (pricingExpressions_.isEmpty()) { pricingExpressions_ = other.pricingExpressions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePricingExpressionsIsMutable(); pricingExpressions_.addAll(other.pricingExpressions_); } onChanged(); } } else { if (!other.pricingExpressions_.isEmpty()) { if (pricingExpressionsBuilder_.isEmpty()) { pricingExpressionsBuilder_.dispose(); pricingExpressionsBuilder_ = null; pricingExpressions_ = other.pricingExpressions_; bitField0_ = (bitField0_ & ~0x00000001); pricingExpressionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPricingExpressionsFieldBuilder() : null; } else { pricingExpressionsBuilder_.addAllMessages(other.pricingExpressions_); } } } 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.SkuOuterClass.PricingVersion parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** *
       * Type of the pricing version.
       * 
* * .yandex.cloud.billing.v1.PricingVersionType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
       * Type of the pricing version.
       * 
* * .yandex.cloud.billing.v1.PricingVersionType type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** *
       * Type of the pricing version.
       * 
* * .yandex.cloud.billing.v1.PricingVersionType type = 1; * @return The type. */ @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionType getType() { @SuppressWarnings("deprecation") yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionType result = yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionType.valueOf(type_); return result == null ? yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionType.UNRECOGNIZED : result; } /** *
       * Type of the pricing version.
       * 
* * .yandex.cloud.billing.v1.PricingVersionType type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersionType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
       * Type of the pricing version.
       * 
* * .yandex.cloud.billing.v1.PricingVersionType type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private com.google.protobuf.Timestamp effectiveTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> effectiveTimeBuilder_; /** *
       * Timestamp pricing version is active since inclusive.
       * The pricing version is active until next pricing version effective time exclusive.
       * 
* * .google.protobuf.Timestamp effective_time = 2; * @return Whether the effectiveTime field is set. */ public boolean hasEffectiveTime() { return effectiveTimeBuilder_ != null || effectiveTime_ != null; } /** *
       * Timestamp pricing version is active since inclusive.
       * The pricing version is active until next pricing version effective time exclusive.
       * 
* * .google.protobuf.Timestamp effective_time = 2; * @return The effectiveTime. */ public com.google.protobuf.Timestamp getEffectiveTime() { if (effectiveTimeBuilder_ == null) { return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } else { return effectiveTimeBuilder_.getMessage(); } } /** *
       * Timestamp pricing version is active since inclusive.
       * The pricing version is active until next pricing version effective time exclusive.
       * 
* * .google.protobuf.Timestamp effective_time = 2; */ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) { if (effectiveTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveTime_ = value; onChanged(); } else { effectiveTimeBuilder_.setMessage(value); } return this; } /** *
       * Timestamp pricing version is active since inclusive.
       * The pricing version is active until next pricing version effective time exclusive.
       * 
* * .google.protobuf.Timestamp effective_time = 2; */ public Builder setEffectiveTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (effectiveTimeBuilder_ == null) { effectiveTime_ = builderForValue.build(); onChanged(); } else { effectiveTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp pricing version is active since inclusive.
       * The pricing version is active until next pricing version effective time exclusive.
       * 
* * .google.protobuf.Timestamp effective_time = 2; */ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) { if (effectiveTimeBuilder_ == null) { if (effectiveTime_ != null) { effectiveTime_ = com.google.protobuf.Timestamp.newBuilder(effectiveTime_).mergeFrom(value).buildPartial(); } else { effectiveTime_ = value; } onChanged(); } else { effectiveTimeBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp pricing version is active since inclusive.
       * The pricing version is active until next pricing version effective time exclusive.
       * 
* * .google.protobuf.Timestamp effective_time = 2; */ public Builder clearEffectiveTime() { if (effectiveTimeBuilder_ == null) { effectiveTime_ = null; onChanged(); } else { effectiveTime_ = null; effectiveTimeBuilder_ = null; } return this; } /** *
       * Timestamp pricing version is active since inclusive.
       * The pricing version is active until next pricing version effective time exclusive.
       * 
* * .google.protobuf.Timestamp effective_time = 2; */ public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder() { onChanged(); return getEffectiveTimeFieldBuilder().getBuilder(); } /** *
       * Timestamp pricing version is active since inclusive.
       * The pricing version is active until next pricing version effective time exclusive.
       * 
* * .google.protobuf.Timestamp effective_time = 2; */ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() { if (effectiveTimeBuilder_ != null) { return effectiveTimeBuilder_.getMessageOrBuilder(); } else { return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } } /** *
       * Timestamp pricing version is active since inclusive.
       * The pricing version is active until next pricing version effective time exclusive.
       * 
* * .google.protobuf.Timestamp effective_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEffectiveTimeFieldBuilder() { if (effectiveTimeBuilder_ == null) { effectiveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getEffectiveTime(), getParentForChildren(), isClean()); effectiveTime_ = null; } return effectiveTimeBuilder_; } private java.util.List pricingExpressions_ = java.util.Collections.emptyList(); private void ensurePricingExpressionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pricingExpressions_ = new java.util.ArrayList(pricingExpressions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression, yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.Builder, yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpressionOrBuilder> pricingExpressionsBuilder_; /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public java.util.List getPricingExpressionsList() { if (pricingExpressionsBuilder_ == null) { return java.util.Collections.unmodifiableList(pricingExpressions_); } else { return pricingExpressionsBuilder_.getMessageList(); } } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public int getPricingExpressionsCount() { if (pricingExpressionsBuilder_ == null) { return pricingExpressions_.size(); } else { return pricingExpressionsBuilder_.getCount(); } } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression getPricingExpressions(int index) { if (pricingExpressionsBuilder_ == null) { return pricingExpressions_.get(index); } else { return pricingExpressionsBuilder_.getMessage(index); } } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public Builder setPricingExpressions( int index, yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression value) { if (pricingExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePricingExpressionsIsMutable(); pricingExpressions_.set(index, value); onChanged(); } else { pricingExpressionsBuilder_.setMessage(index, value); } return this; } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public Builder setPricingExpressions( int index, yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.Builder builderForValue) { if (pricingExpressionsBuilder_ == null) { ensurePricingExpressionsIsMutable(); pricingExpressions_.set(index, builderForValue.build()); onChanged(); } else { pricingExpressionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public Builder addPricingExpressions(yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression value) { if (pricingExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePricingExpressionsIsMutable(); pricingExpressions_.add(value); onChanged(); } else { pricingExpressionsBuilder_.addMessage(value); } return this; } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public Builder addPricingExpressions( int index, yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression value) { if (pricingExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePricingExpressionsIsMutable(); pricingExpressions_.add(index, value); onChanged(); } else { pricingExpressionsBuilder_.addMessage(index, value); } return this; } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public Builder addPricingExpressions( yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.Builder builderForValue) { if (pricingExpressionsBuilder_ == null) { ensurePricingExpressionsIsMutable(); pricingExpressions_.add(builderForValue.build()); onChanged(); } else { pricingExpressionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public Builder addPricingExpressions( int index, yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.Builder builderForValue) { if (pricingExpressionsBuilder_ == null) { ensurePricingExpressionsIsMutable(); pricingExpressions_.add(index, builderForValue.build()); onChanged(); } else { pricingExpressionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public Builder addAllPricingExpressions( java.lang.Iterable values) { if (pricingExpressionsBuilder_ == null) { ensurePricingExpressionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pricingExpressions_); onChanged(); } else { pricingExpressionsBuilder_.addAllMessages(values); } return this; } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public Builder clearPricingExpressions() { if (pricingExpressionsBuilder_ == null) { pricingExpressions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { pricingExpressionsBuilder_.clear(); } return this; } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public Builder removePricingExpressions(int index) { if (pricingExpressionsBuilder_ == null) { ensurePricingExpressionsIsMutable(); pricingExpressions_.remove(index); onChanged(); } else { pricingExpressionsBuilder_.remove(index); } return this; } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.Builder getPricingExpressionsBuilder( int index) { return getPricingExpressionsFieldBuilder().getBuilder(index); } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpressionOrBuilder getPricingExpressionsOrBuilder( int index) { if (pricingExpressionsBuilder_ == null) { return pricingExpressions_.get(index); } else { return pricingExpressionsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public java.util.List getPricingExpressionsOrBuilderList() { if (pricingExpressionsBuilder_ != null) { return pricingExpressionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pricingExpressions_); } } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.Builder addPricingExpressionsBuilder() { return getPricingExpressionsFieldBuilder().addBuilder( yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.getDefaultInstance()); } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.Builder addPricingExpressionsBuilder( int index) { return getPricingExpressionsFieldBuilder().addBuilder( index, yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.getDefaultInstance()); } /** *
       * List of pricing expressions.
       * 
* * repeated .yandex.cloud.billing.v1.PricingExpression pricing_expressions = 3; */ public java.util.List getPricingExpressionsBuilderList() { return getPricingExpressionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression, yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.Builder, yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpressionOrBuilder> getPricingExpressionsFieldBuilder() { if (pricingExpressionsBuilder_ == null) { pricingExpressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression, yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.Builder, yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpressionOrBuilder>( pricingExpressions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); pricingExpressions_ = null; } return pricingExpressionsBuilder_; } @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.PricingVersion) } // @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.PricingVersion) private static final yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion(); } public static yandex.cloud.api.billing.v1.SkuOuterClass.PricingVersion getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PricingVersion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PricingVersion(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.SkuOuterClass.PricingVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PricingExpressionOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.PricingExpression) com.google.protobuf.MessageOrBuilder { /** *
     * List of rates.
     * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ java.util.List getRatesList(); /** *
     * List of rates.
     * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ yandex.cloud.api.billing.v1.SkuOuterClass.Rate getRates(int index); /** *
     * List of rates.
     * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ int getRatesCount(); /** *
     * List of rates.
     * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ java.util.List getRatesOrBuilderList(); /** *
     * List of rates.
     * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ yandex.cloud.api.billing.v1.SkuOuterClass.RateOrBuilder getRatesOrBuilder( int index); } /** *
   * Pricing expression of the pricing version.
   * Defines price for the sku.
   * 
* * Protobuf type {@code yandex.cloud.billing.v1.PricingExpression} */ public static final class PricingExpression extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.PricingExpression) PricingExpressionOrBuilder { private static final long serialVersionUID = 0L; // Use PricingExpression.newBuilder() to construct. private PricingExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PricingExpression() { rates_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PricingExpression(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PricingExpression( 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 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { rates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } rates_.add( input.readMessage(yandex.cloud.api.billing.v1.SkuOuterClass.Rate.parser(), extensionRegistry)); 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)) { rates_ = java.util.Collections.unmodifiableList(rates_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_PricingExpression_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_PricingExpression_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.class, yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.Builder.class); } public static final int RATES_FIELD_NUMBER = 2; private java.util.List rates_; /** *
     * List of rates.
     * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ @java.lang.Override public java.util.List getRatesList() { return rates_; } /** *
     * List of rates.
     * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ @java.lang.Override public java.util.List getRatesOrBuilderList() { return rates_; } /** *
     * List of rates.
     * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ @java.lang.Override public int getRatesCount() { return rates_.size(); } /** *
     * List of rates.
     * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.Rate getRates(int index) { return rates_.get(index); } /** *
     * List of rates.
     * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.RateOrBuilder getRatesOrBuilder( int index) { return rates_.get(index); } 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 < rates_.size(); i++) { output.writeMessage(2, rates_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < rates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, rates_.get(i)); } 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.SkuOuterClass.PricingExpression)) { return super.equals(obj); } yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression other = (yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression) obj; if (!getRatesList() .equals(other.getRatesList())) 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 (getRatesCount() > 0) { hash = (37 * hash) + RATES_FIELD_NUMBER; hash = (53 * hash) + getRatesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression 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.SkuOuterClass.PricingExpression parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression 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.SkuOuterClass.PricingExpression parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression 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.SkuOuterClass.PricingExpression parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression 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.SkuOuterClass.PricingExpression parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression 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.SkuOuterClass.PricingExpression 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.SkuOuterClass.PricingExpression 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.SkuOuterClass.PricingExpression 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; } /** *
     * Pricing expression of the pricing version.
     * Defines price for the sku.
     * 
* * Protobuf type {@code yandex.cloud.billing.v1.PricingExpression} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.PricingExpression) yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpressionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_PricingExpression_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_PricingExpression_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.class, yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.Builder.class); } // Construct using yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRatesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (ratesBuilder_ == null) { rates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { ratesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_PricingExpression_descriptor; } @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression getDefaultInstanceForType() { return yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression build() { yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression buildPartial() { yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression result = new yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression(this); int from_bitField0_ = bitField0_; if (ratesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { rates_ = java.util.Collections.unmodifiableList(rates_); bitField0_ = (bitField0_ & ~0x00000001); } result.rates_ = rates_; } else { result.rates_ = ratesBuilder_.build(); } 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.SkuOuterClass.PricingExpression) { return mergeFrom((yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression other) { if (other == yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression.getDefaultInstance()) return this; if (ratesBuilder_ == null) { if (!other.rates_.isEmpty()) { if (rates_.isEmpty()) { rates_ = other.rates_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRatesIsMutable(); rates_.addAll(other.rates_); } onChanged(); } } else { if (!other.rates_.isEmpty()) { if (ratesBuilder_.isEmpty()) { ratesBuilder_.dispose(); ratesBuilder_ = null; rates_ = other.rates_; bitField0_ = (bitField0_ & ~0x00000001); ratesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRatesFieldBuilder() : null; } else { ratesBuilder_.addAllMessages(other.rates_); } } } 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.SkuOuterClass.PricingExpression parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List rates_ = java.util.Collections.emptyList(); private void ensureRatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { rates_ = new java.util.ArrayList(rates_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.billing.v1.SkuOuterClass.Rate, yandex.cloud.api.billing.v1.SkuOuterClass.Rate.Builder, yandex.cloud.api.billing.v1.SkuOuterClass.RateOrBuilder> ratesBuilder_; /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public java.util.List getRatesList() { if (ratesBuilder_ == null) { return java.util.Collections.unmodifiableList(rates_); } else { return ratesBuilder_.getMessageList(); } } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public int getRatesCount() { if (ratesBuilder_ == null) { return rates_.size(); } else { return ratesBuilder_.getCount(); } } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public yandex.cloud.api.billing.v1.SkuOuterClass.Rate getRates(int index) { if (ratesBuilder_ == null) { return rates_.get(index); } else { return ratesBuilder_.getMessage(index); } } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public Builder setRates( int index, yandex.cloud.api.billing.v1.SkuOuterClass.Rate value) { if (ratesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRatesIsMutable(); rates_.set(index, value); onChanged(); } else { ratesBuilder_.setMessage(index, value); } return this; } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public Builder setRates( int index, yandex.cloud.api.billing.v1.SkuOuterClass.Rate.Builder builderForValue) { if (ratesBuilder_ == null) { ensureRatesIsMutable(); rates_.set(index, builderForValue.build()); onChanged(); } else { ratesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public Builder addRates(yandex.cloud.api.billing.v1.SkuOuterClass.Rate value) { if (ratesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRatesIsMutable(); rates_.add(value); onChanged(); } else { ratesBuilder_.addMessage(value); } return this; } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public Builder addRates( int index, yandex.cloud.api.billing.v1.SkuOuterClass.Rate value) { if (ratesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRatesIsMutable(); rates_.add(index, value); onChanged(); } else { ratesBuilder_.addMessage(index, value); } return this; } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public Builder addRates( yandex.cloud.api.billing.v1.SkuOuterClass.Rate.Builder builderForValue) { if (ratesBuilder_ == null) { ensureRatesIsMutable(); rates_.add(builderForValue.build()); onChanged(); } else { ratesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public Builder addRates( int index, yandex.cloud.api.billing.v1.SkuOuterClass.Rate.Builder builderForValue) { if (ratesBuilder_ == null) { ensureRatesIsMutable(); rates_.add(index, builderForValue.build()); onChanged(); } else { ratesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public Builder addAllRates( java.lang.Iterable values) { if (ratesBuilder_ == null) { ensureRatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rates_); onChanged(); } else { ratesBuilder_.addAllMessages(values); } return this; } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public Builder clearRates() { if (ratesBuilder_ == null) { rates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { ratesBuilder_.clear(); } return this; } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public Builder removeRates(int index) { if (ratesBuilder_ == null) { ensureRatesIsMutable(); rates_.remove(index); onChanged(); } else { ratesBuilder_.remove(index); } return this; } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public yandex.cloud.api.billing.v1.SkuOuterClass.Rate.Builder getRatesBuilder( int index) { return getRatesFieldBuilder().getBuilder(index); } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public yandex.cloud.api.billing.v1.SkuOuterClass.RateOrBuilder getRatesOrBuilder( int index) { if (ratesBuilder_ == null) { return rates_.get(index); } else { return ratesBuilder_.getMessageOrBuilder(index); } } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public java.util.List getRatesOrBuilderList() { if (ratesBuilder_ != null) { return ratesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rates_); } } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public yandex.cloud.api.billing.v1.SkuOuterClass.Rate.Builder addRatesBuilder() { return getRatesFieldBuilder().addBuilder( yandex.cloud.api.billing.v1.SkuOuterClass.Rate.getDefaultInstance()); } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public yandex.cloud.api.billing.v1.SkuOuterClass.Rate.Builder addRatesBuilder( int index) { return getRatesFieldBuilder().addBuilder( index, yandex.cloud.api.billing.v1.SkuOuterClass.Rate.getDefaultInstance()); } /** *
       * List of rates.
       * 
* * repeated .yandex.cloud.billing.v1.Rate rates = 2; */ public java.util.List getRatesBuilderList() { return getRatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.billing.v1.SkuOuterClass.Rate, yandex.cloud.api.billing.v1.SkuOuterClass.Rate.Builder, yandex.cloud.api.billing.v1.SkuOuterClass.RateOrBuilder> getRatesFieldBuilder() { if (ratesBuilder_ == null) { ratesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.billing.v1.SkuOuterClass.Rate, yandex.cloud.api.billing.v1.SkuOuterClass.Rate.Builder, yandex.cloud.api.billing.v1.SkuOuterClass.RateOrBuilder>( rates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); rates_ = null; } return ratesBuilder_; } @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.PricingExpression) } // @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.PricingExpression) private static final yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression(); } public static yandex.cloud.api.billing.v1.SkuOuterClass.PricingExpression getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PricingExpression parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PricingExpression(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.SkuOuterClass.PricingExpression getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RateOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.Rate) com.google.protobuf.MessageOrBuilder { /** *
     * Start of the pricing quantity interval. The end of the interval is the start pricing quantity of the next rate.
     * 
* * string start_pricing_quantity = 1; * @return The startPricingQuantity. */ java.lang.String getStartPricingQuantity(); /** *
     * Start of the pricing quantity interval. The end of the interval is the start pricing quantity of the next rate.
     * 
* * string start_pricing_quantity = 1; * @return The bytes for startPricingQuantity. */ com.google.protobuf.ByteString getStartPricingQuantityBytes(); /** *
     * Unit price for the pricing quantity interval.
     * 
* * string unit_price = 2; * @return The unitPrice. */ java.lang.String getUnitPrice(); /** *
     * Unit price for the pricing quantity interval.
     * 
* * string unit_price = 2; * @return The bytes for unitPrice. */ com.google.protobuf.ByteString getUnitPriceBytes(); /** *
     * Currency of the unit price.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 3; * @return The currency. */ java.lang.String getCurrency(); /** *
     * Currency of the unit price.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 3; * @return The bytes for currency. */ com.google.protobuf.ByteString getCurrencyBytes(); } /** *
   * Rate of the pricing expression.
   * Define unit price for pricing quantity interval.
   * 
* * Protobuf type {@code yandex.cloud.billing.v1.Rate} */ public static final class Rate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.Rate) RateOrBuilder { private static final long serialVersionUID = 0L; // Use Rate.newBuilder() to construct. private Rate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Rate() { startPricingQuantity_ = ""; unitPrice_ = ""; currency_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Rate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Rate( 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(); startPricingQuantity_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); unitPrice_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); currency_ = 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.SkuOuterClass.internal_static_yandex_cloud_billing_v1_Rate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_Rate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.SkuOuterClass.Rate.class, yandex.cloud.api.billing.v1.SkuOuterClass.Rate.Builder.class); } public static final int START_PRICING_QUANTITY_FIELD_NUMBER = 1; private volatile java.lang.Object startPricingQuantity_; /** *
     * Start of the pricing quantity interval. The end of the interval is the start pricing quantity of the next rate.
     * 
* * string start_pricing_quantity = 1; * @return The startPricingQuantity. */ @java.lang.Override public java.lang.String getStartPricingQuantity() { java.lang.Object ref = startPricingQuantity_; 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(); startPricingQuantity_ = s; return s; } } /** *
     * Start of the pricing quantity interval. The end of the interval is the start pricing quantity of the next rate.
     * 
* * string start_pricing_quantity = 1; * @return The bytes for startPricingQuantity. */ @java.lang.Override public com.google.protobuf.ByteString getStartPricingQuantityBytes() { java.lang.Object ref = startPricingQuantity_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); startPricingQuantity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UNIT_PRICE_FIELD_NUMBER = 2; private volatile java.lang.Object unitPrice_; /** *
     * Unit price for the pricing quantity interval.
     * 
* * string unit_price = 2; * @return The unitPrice. */ @java.lang.Override public java.lang.String getUnitPrice() { java.lang.Object ref = unitPrice_; 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(); unitPrice_ = s; return s; } } /** *
     * Unit price for the pricing quantity interval.
     * 
* * string unit_price = 2; * @return The bytes for unitPrice. */ @java.lang.Override public com.google.protobuf.ByteString getUnitPriceBytes() { java.lang.Object ref = unitPrice_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); unitPrice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CURRENCY_FIELD_NUMBER = 3; private volatile java.lang.Object currency_; /** *
     * Currency of the unit price.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 3; * @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 unit price.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 3; * @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; } } 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(startPricingQuantity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startPricingQuantity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitPrice_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unitPrice_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, currency_); } 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(startPricingQuantity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, startPricingQuantity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitPrice_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unitPrice_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, currency_); } 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.SkuOuterClass.Rate)) { return super.equals(obj); } yandex.cloud.api.billing.v1.SkuOuterClass.Rate other = (yandex.cloud.api.billing.v1.SkuOuterClass.Rate) obj; if (!getStartPricingQuantity() .equals(other.getStartPricingQuantity())) return false; if (!getUnitPrice() .equals(other.getUnitPrice())) return false; if (!getCurrency() .equals(other.getCurrency())) 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) + START_PRICING_QUANTITY_FIELD_NUMBER; hash = (53 * hash) + getStartPricingQuantity().hashCode(); hash = (37 * hash) + UNIT_PRICE_FIELD_NUMBER; hash = (53 * hash) + getUnitPrice().hashCode(); hash = (37 * hash) + CURRENCY_FIELD_NUMBER; hash = (53 * hash) + getCurrency().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.billing.v1.SkuOuterClass.Rate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuOuterClass.Rate 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.SkuOuterClass.Rate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuOuterClass.Rate 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.SkuOuterClass.Rate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.SkuOuterClass.Rate 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.SkuOuterClass.Rate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuOuterClass.Rate 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.SkuOuterClass.Rate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.SkuOuterClass.Rate 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.SkuOuterClass.Rate 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.SkuOuterClass.Rate 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.SkuOuterClass.Rate 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; } /** *
     * Rate of the pricing expression.
     * Define unit price for pricing quantity interval.
     * 
* * Protobuf type {@code yandex.cloud.billing.v1.Rate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.Rate) yandex.cloud.api.billing.v1.SkuOuterClass.RateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_Rate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_Rate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.SkuOuterClass.Rate.class, yandex.cloud.api.billing.v1.SkuOuterClass.Rate.Builder.class); } // Construct using yandex.cloud.api.billing.v1.SkuOuterClass.Rate.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(); startPricingQuantity_ = ""; unitPrice_ = ""; currency_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.billing.v1.SkuOuterClass.internal_static_yandex_cloud_billing_v1_Rate_descriptor; } @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.Rate getDefaultInstanceForType() { return yandex.cloud.api.billing.v1.SkuOuterClass.Rate.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.Rate build() { yandex.cloud.api.billing.v1.SkuOuterClass.Rate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.billing.v1.SkuOuterClass.Rate buildPartial() { yandex.cloud.api.billing.v1.SkuOuterClass.Rate result = new yandex.cloud.api.billing.v1.SkuOuterClass.Rate(this); result.startPricingQuantity_ = startPricingQuantity_; result.unitPrice_ = unitPrice_; result.currency_ = currency_; 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.SkuOuterClass.Rate) { return mergeFrom((yandex.cloud.api.billing.v1.SkuOuterClass.Rate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.billing.v1.SkuOuterClass.Rate other) { if (other == yandex.cloud.api.billing.v1.SkuOuterClass.Rate.getDefaultInstance()) return this; if (!other.getStartPricingQuantity().isEmpty()) { startPricingQuantity_ = other.startPricingQuantity_; onChanged(); } if (!other.getUnitPrice().isEmpty()) { unitPrice_ = other.unitPrice_; onChanged(); } if (!other.getCurrency().isEmpty()) { currency_ = other.currency_; 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.SkuOuterClass.Rate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.billing.v1.SkuOuterClass.Rate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object startPricingQuantity_ = ""; /** *
       * Start of the pricing quantity interval. The end of the interval is the start pricing quantity of the next rate.
       * 
* * string start_pricing_quantity = 1; * @return The startPricingQuantity. */ public java.lang.String getStartPricingQuantity() { java.lang.Object ref = startPricingQuantity_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startPricingQuantity_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Start of the pricing quantity interval. The end of the interval is the start pricing quantity of the next rate.
       * 
* * string start_pricing_quantity = 1; * @return The bytes for startPricingQuantity. */ public com.google.protobuf.ByteString getStartPricingQuantityBytes() { java.lang.Object ref = startPricingQuantity_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); startPricingQuantity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Start of the pricing quantity interval. The end of the interval is the start pricing quantity of the next rate.
       * 
* * string start_pricing_quantity = 1; * @param value The startPricingQuantity to set. * @return This builder for chaining. */ public Builder setStartPricingQuantity( java.lang.String value) { if (value == null) { throw new NullPointerException(); } startPricingQuantity_ = value; onChanged(); return this; } /** *
       * Start of the pricing quantity interval. The end of the interval is the start pricing quantity of the next rate.
       * 
* * string start_pricing_quantity = 1; * @return This builder for chaining. */ public Builder clearStartPricingQuantity() { startPricingQuantity_ = getDefaultInstance().getStartPricingQuantity(); onChanged(); return this; } /** *
       * Start of the pricing quantity interval. The end of the interval is the start pricing quantity of the next rate.
       * 
* * string start_pricing_quantity = 1; * @param value The bytes for startPricingQuantity to set. * @return This builder for chaining. */ public Builder setStartPricingQuantityBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); startPricingQuantity_ = value; onChanged(); return this; } private java.lang.Object unitPrice_ = ""; /** *
       * Unit price for the pricing quantity interval.
       * 
* * string unit_price = 2; * @return The unitPrice. */ public java.lang.String getUnitPrice() { java.lang.Object ref = unitPrice_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unitPrice_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Unit price for the pricing quantity interval.
       * 
* * string unit_price = 2; * @return The bytes for unitPrice. */ public com.google.protobuf.ByteString getUnitPriceBytes() { java.lang.Object ref = unitPrice_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); unitPrice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Unit price for the pricing quantity interval.
       * 
* * string unit_price = 2; * @param value The unitPrice to set. * @return This builder for chaining. */ public Builder setUnitPrice( java.lang.String value) { if (value == null) { throw new NullPointerException(); } unitPrice_ = value; onChanged(); return this; } /** *
       * Unit price for the pricing quantity interval.
       * 
* * string unit_price = 2; * @return This builder for chaining. */ public Builder clearUnitPrice() { unitPrice_ = getDefaultInstance().getUnitPrice(); onChanged(); return this; } /** *
       * Unit price for the pricing quantity interval.
       * 
* * string unit_price = 2; * @param value The bytes for unitPrice to set. * @return This builder for chaining. */ public Builder setUnitPriceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); unitPrice_ = value; onChanged(); return this; } private java.lang.Object currency_ = ""; /** *
       * Currency of the unit price.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 3; * @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 unit price.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 3; * @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 unit price.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 3; * @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 unit price.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 3; * @return This builder for chaining. */ public Builder clearCurrency() { currency_ = getDefaultInstance().getCurrency(); onChanged(); return this; } /** *
       * Currency of the unit price.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 3; * @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; } @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.Rate) } // @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.Rate) private static final yandex.cloud.api.billing.v1.SkuOuterClass.Rate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.SkuOuterClass.Rate(); } public static yandex.cloud.api.billing.v1.SkuOuterClass.Rate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Rate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Rate(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.SkuOuterClass.Rate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_billing_v1_Sku_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_billing_v1_Sku_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_billing_v1_PricingVersion_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_billing_v1_PricingVersion_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_billing_v1_PricingExpression_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_billing_v1_PricingExpression_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_billing_v1_Rate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_billing_v1_Rate_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.proto\022\027yan" + "dex.cloud.billing.v1\032\037google/protobuf/ti" + "mestamp.proto\"\241\001\n\003Sku\022\n\n\002id\030\001 \001(\t\022\014\n\004nam" + "e\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\022\n\nservice_" + "id\030\004 \001(\t\022\024\n\014pricing_unit\030\005 \001(\t\022A\n\020pricin" + "g_versions\030\006 \003(\0132\'.yandex.cloud.billing." + "v1.PricingVersion\"\310\001\n\016PricingVersion\0229\n\004" + "type\030\001 \001(\0162+.yandex.cloud.billing.v1.Pri" + "cingVersionType\0222\n\016effective_time\030\002 \001(\0132" + "\032.google.protobuf.Timestamp\022G\n\023pricing_e" + "xpressions\030\003 \003(\0132*.yandex.cloud.billing." + "v1.PricingExpression\"A\n\021PricingExpressio" + "n\022,\n\005rates\030\002 \003(\0132\035.yandex.cloud.billing." + "v1.Rate\"L\n\004Rate\022\036\n\026start_pricing_quantit" + "y\030\001 \001(\t\022\022\n\nunit_price\030\002 \001(\t\022\020\n\010currency\030" + "\003 \001(\t*`\n\022PricingVersionType\022$\n PRICING_V" + "ERSION_TYPE_UNSPECIFIED\020\000\022\020\n\014STREET_PRIC" + "E\020\001\022\022\n\016CONTRACT_PRICE\020\002Bb\n\033yandex.cloud." + "api.billing.v1ZCgithub.com/yandex-cloud/" + "go-genproto/yandex/cloud/billing/v1;bill" + "ingb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_yandex_cloud_billing_v1_Sku_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_billing_v1_Sku_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_billing_v1_Sku_descriptor, new java.lang.String[] { "Id", "Name", "Description", "ServiceId", "PricingUnit", "PricingVersions", }); internal_static_yandex_cloud_billing_v1_PricingVersion_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_billing_v1_PricingVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_billing_v1_PricingVersion_descriptor, new java.lang.String[] { "Type", "EffectiveTime", "PricingExpressions", }); internal_static_yandex_cloud_billing_v1_PricingExpression_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_billing_v1_PricingExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_billing_v1_PricingExpression_descriptor, new java.lang.String[] { "Rates", }); internal_static_yandex_cloud_billing_v1_Rate_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_billing_v1_Rate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_billing_v1_Rate_descriptor, new java.lang.String[] { "StartPricingQuantity", "UnitPrice", "Currency", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy