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

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

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

package yandex.cloud.api.billing.v1;

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

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

    /**
     * 
     * ID of the billing account.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the billing account.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Name of the billing account.
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * Name of the billing account.
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * ISO 3166-1 alpha-2 country code of the billing account.
     * 
* * string country_code = 4; * @return The countryCode. */ java.lang.String getCountryCode(); /** *
     * ISO 3166-1 alpha-2 country code of the billing account.
     * 
* * string country_code = 4; * @return The bytes for countryCode. */ com.google.protobuf.ByteString getCountryCodeBytes(); /** *
     * Currency of the billing account.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 5; * @return The currency. */ java.lang.String getCurrency(); /** *
     * Currency of the billing account.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 5; * @return The bytes for currency. */ com.google.protobuf.ByteString getCurrencyBytes(); /** *
     * Represents whether corresponding billable objects can be used or not.
     * 
* * bool active = 6; * @return The active. */ boolean getActive(); /** *
     * Current balance of the billing account.
     * 
* * string balance = 7; * @return The balance. */ java.lang.String getBalance(); /** *
     * Current balance of the billing account.
     * 
* * string balance = 7; * @return The bytes for balance. */ com.google.protobuf.ByteString getBalanceBytes(); } /** *
   * A BillingAccount resource. For more information, see [BillingAccount](/docs/billing/concepts/billing-account).
   * 
* * Protobuf type {@code yandex.cloud.billing.v1.BillingAccount} */ public static final class BillingAccount extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.BillingAccount) BillingAccountOrBuilder { private static final long serialVersionUID = 0L; // Use BillingAccount.newBuilder() to construct. private BillingAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BillingAccount() { id_ = ""; name_ = ""; countryCode_ = ""; currency_ = ""; balance_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BillingAccount(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BillingAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); countryCode_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); currency_ = s; break; } case 48: { active_ = input.readBool(); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); balance_ = 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.BillingAccountOuterClass.internal_static_yandex_cloud_billing_v1_BillingAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.BillingAccountOuterClass.internal_static_yandex_cloud_billing_v1_BillingAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.class, yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the billing account.
     * 
* * 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 billing account.
     * 
* * 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 billing account.
     * 
* * 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 billing account.
     * 
* * 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 CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int COUNTRY_CODE_FIELD_NUMBER = 4; private volatile java.lang.Object countryCode_; /** *
     * ISO 3166-1 alpha-2 country code of the billing account.
     * 
* * string country_code = 4; * @return The countryCode. */ @java.lang.Override public java.lang.String getCountryCode() { java.lang.Object ref = countryCode_; 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(); countryCode_ = s; return s; } } /** *
     * ISO 3166-1 alpha-2 country code of the billing account.
     * 
* * string country_code = 4; * @return The bytes for countryCode. */ @java.lang.Override public com.google.protobuf.ByteString getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); countryCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CURRENCY_FIELD_NUMBER = 5; private volatile java.lang.Object currency_; /** *
     * Currency of the billing account.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 5; * @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 billing account.
     * Can be one of the following:
     * * `RUB`
     * * `USD`
     * * `KZT`
     * 
* * string currency = 5; * @return The bytes for currency. */ @java.lang.Override public com.google.protobuf.ByteString getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currency_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACTIVE_FIELD_NUMBER = 6; private boolean active_; /** *
     * Represents whether corresponding billable objects can be used or not.
     * 
* * bool active = 6; * @return The active. */ @java.lang.Override public boolean getActive() { return active_; } public static final int BALANCE_FIELD_NUMBER = 7; private volatile java.lang.Object balance_; /** *
     * Current balance of the billing account.
     * 
* * string balance = 7; * @return The balance. */ @java.lang.Override public java.lang.String getBalance() { java.lang.Object ref = balance_; 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(); balance_ = s; return s; } } /** *
     * Current balance of the billing account.
     * 
* * string balance = 7; * @return The bytes for balance. */ @java.lang.Override public com.google.protobuf.ByteString getBalanceBytes() { java.lang.Object ref = balance_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); balance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(countryCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, countryCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, currency_); } if (active_ != false) { output.writeBool(6, active_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(balance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, balance_); } 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 (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(countryCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, countryCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, currency_); } if (active_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, active_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(balance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, balance_); } 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.BillingAccountOuterClass.BillingAccount)) { return super.equals(obj); } yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount other = (yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getCountryCode() .equals(other.getCountryCode())) return false; if (!getCurrency() .equals(other.getCurrency())) return false; if (getActive() != other.getActive()) return false; if (!getBalance() .equals(other.getBalance())) 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(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + COUNTRY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCountryCode().hashCode(); hash = (37 * hash) + CURRENCY_FIELD_NUMBER; hash = (53 * hash) + getCurrency().hashCode(); hash = (37 * hash) + ACTIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getActive()); hash = (37 * hash) + BALANCE_FIELD_NUMBER; hash = (53 * hash) + getBalance().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount 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.BillingAccountOuterClass.BillingAccount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount 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.BillingAccountOuterClass.BillingAccount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount 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.BillingAccountOuterClass.BillingAccount parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount 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.BillingAccountOuterClass.BillingAccount parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount 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.BillingAccountOuterClass.BillingAccount 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.BillingAccountOuterClass.BillingAccount 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.BillingAccountOuterClass.BillingAccount 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 BillingAccount resource. For more information, see [BillingAccount](/docs/billing/concepts/billing-account).
     * 
* * Protobuf type {@code yandex.cloud.billing.v1.BillingAccount} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.BillingAccount) yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.BillingAccountOuterClass.internal_static_yandex_cloud_billing_v1_BillingAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.BillingAccountOuterClass.internal_static_yandex_cloud_billing_v1_BillingAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.class, yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.Builder.class); } // Construct using yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } countryCode_ = ""; currency_ = ""; active_ = false; balance_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.billing.v1.BillingAccountOuterClass.internal_static_yandex_cloud_billing_v1_BillingAccount_descriptor; } @java.lang.Override public yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount getDefaultInstanceForType() { return yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount build() { yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount buildPartial() { yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount result = new yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount(this); result.id_ = id_; result.name_ = name_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.countryCode_ = countryCode_; result.currency_ = currency_; result.active_ = active_; result.balance_ = balance_; 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.BillingAccountOuterClass.BillingAccount) { return mergeFrom((yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount other) { if (other == yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getCountryCode().isEmpty()) { countryCode_ = other.countryCode_; onChanged(); } if (!other.getCurrency().isEmpty()) { currency_ = other.currency_; onChanged(); } if (other.getActive() != false) { setActive(other.getActive()); } if (!other.getBalance().isEmpty()) { balance_ = other.balance_; 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.BillingAccountOuterClass.BillingAccount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** *
       * ID of the billing account.
       * 
* * 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 billing account.
       * 
* * 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 billing account.
       * 
* * 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 billing account.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the billing account.
       * 
* * 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 billing account.
       * 
* * 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 billing account.
       * 
* * 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 billing account.
       * 
* * 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 billing account.
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the billing account.
       * 
* * 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 com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private java.lang.Object countryCode_ = ""; /** *
       * ISO 3166-1 alpha-2 country code of the billing account.
       * 
* * string country_code = 4; * @return The countryCode. */ public java.lang.String getCountryCode() { java.lang.Object ref = countryCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); countryCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ISO 3166-1 alpha-2 country code of the billing account.
       * 
* * string country_code = 4; * @return The bytes for countryCode. */ public com.google.protobuf.ByteString getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); countryCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ISO 3166-1 alpha-2 country code of the billing account.
       * 
* * string country_code = 4; * @param value The countryCode to set. * @return This builder for chaining. */ public Builder setCountryCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } countryCode_ = value; onChanged(); return this; } /** *
       * ISO 3166-1 alpha-2 country code of the billing account.
       * 
* * string country_code = 4; * @return This builder for chaining. */ public Builder clearCountryCode() { countryCode_ = getDefaultInstance().getCountryCode(); onChanged(); return this; } /** *
       * ISO 3166-1 alpha-2 country code of the billing account.
       * 
* * string country_code = 4; * @param value The bytes for countryCode to set. * @return This builder for chaining. */ public Builder setCountryCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); countryCode_ = value; onChanged(); return this; } private java.lang.Object currency_ = ""; /** *
       * Currency of the billing account.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 5; * @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 billing account.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 5; * @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 billing account.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 5; * @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 billing account.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 5; * @return This builder for chaining. */ public Builder clearCurrency() { currency_ = getDefaultInstance().getCurrency(); onChanged(); return this; } /** *
       * Currency of the billing account.
       * Can be one of the following:
       * * `RUB`
       * * `USD`
       * * `KZT`
       * 
* * string currency = 5; * @param value The bytes for currency to set. * @return This builder for chaining. */ public Builder setCurrencyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currency_ = value; onChanged(); return this; } private boolean active_ ; /** *
       * Represents whether corresponding billable objects can be used or not.
       * 
* * bool active = 6; * @return The active. */ @java.lang.Override public boolean getActive() { return active_; } /** *
       * Represents whether corresponding billable objects can be used or not.
       * 
* * bool active = 6; * @param value The active to set. * @return This builder for chaining. */ public Builder setActive(boolean value) { active_ = value; onChanged(); return this; } /** *
       * Represents whether corresponding billable objects can be used or not.
       * 
* * bool active = 6; * @return This builder for chaining. */ public Builder clearActive() { active_ = false; onChanged(); return this; } private java.lang.Object balance_ = ""; /** *
       * Current balance of the billing account.
       * 
* * string balance = 7; * @return The balance. */ public java.lang.String getBalance() { java.lang.Object ref = balance_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); balance_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Current balance of the billing account.
       * 
* * string balance = 7; * @return The bytes for balance. */ public com.google.protobuf.ByteString getBalanceBytes() { java.lang.Object ref = balance_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); balance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Current balance of the billing account.
       * 
* * string balance = 7; * @param value The balance to set. * @return This builder for chaining. */ public Builder setBalance( java.lang.String value) { if (value == null) { throw new NullPointerException(); } balance_ = value; onChanged(); return this; } /** *
       * Current balance of the billing account.
       * 
* * string balance = 7; * @return This builder for chaining. */ public Builder clearBalance() { balance_ = getDefaultInstance().getBalance(); onChanged(); return this; } /** *
       * Current balance of the billing account.
       * 
* * string balance = 7; * @param value The bytes for balance to set. * @return This builder for chaining. */ public Builder setBalanceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); balance_ = 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.BillingAccount) } // @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.BillingAccount) private static final yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount(); } public static yandex.cloud.api.billing.v1.BillingAccountOuterClass.BillingAccount getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BillingAccount parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BillingAccount(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.BillingAccountOuterClass.BillingAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_billing_v1_BillingAccount_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_billing_v1_BillingAccount_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/billing_accoun" + "t.proto\022\027yandex.cloud.billing.v1\032\037google" + "/protobuf/timestamp.proto\"\243\001\n\016BillingAcc" + "ount\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022.\n\ncreate" + "d_at\030\003 \001(\0132\032.google.protobuf.Timestamp\022\024" + "\n\014country_code\030\004 \001(\t\022\020\n\010currency\030\005 \001(\t\022\016" + "\n\006active\030\006 \001(\010\022\017\n\007balance\030\007 \001(\tBb\n\033yande" + "x.cloud.api.billing.v1ZCgithub.com/yande" + "x-cloud/go-genproto/yandex/cloud/billing" + "/v1;billingb\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_BillingAccount_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_billing_v1_BillingAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_billing_v1_BillingAccount_descriptor, new java.lang.String[] { "Id", "Name", "CreatedAt", "CountryCode", "Currency", "Active", "Balance", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy