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

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

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

package yandex.cloud.api.billing.v1;

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

    /**
     * 
     * ID of the customer.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the customer.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the [yandex.cloud.billing.v1.BillingAccount] assigned to the customer.
     * 
* * string billing_account_id = 2; * @return The billingAccountId. */ java.lang.String getBillingAccountId(); /** *
     * ID of the [yandex.cloud.billing.v1.BillingAccount] assigned to the customer.
     * 
* * string billing_account_id = 2; * @return The bytes for billingAccountId. */ com.google.protobuf.ByteString getBillingAccountIdBytes(); } /** *
   * A Customer resource.
   * 
* * Protobuf type {@code yandex.cloud.billing.v1.Customer} */ public static final class Customer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.Customer) CustomerOrBuilder { private static final long serialVersionUID = 0L; // Use Customer.newBuilder() to construct. private Customer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Customer() { id_ = ""; billingAccountId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Customer(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Customer( 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(); billingAccountId_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.CustomerOuterClass.internal_static_yandex_cloud_billing_v1_Customer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.CustomerOuterClass.internal_static_yandex_cloud_billing_v1_Customer_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.CustomerOuterClass.Customer.class, yandex.cloud.api.billing.v1.CustomerOuterClass.Customer.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the customer.
     * 
* * 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 customer.
     * 
* * 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 BILLING_ACCOUNT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object billingAccountId_; /** *
     * ID of the [yandex.cloud.billing.v1.BillingAccount] assigned to the customer.
     * 
* * string billing_account_id = 2; * @return The billingAccountId. */ @java.lang.Override public java.lang.String getBillingAccountId() { java.lang.Object ref = billingAccountId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); billingAccountId_ = s; return s; } } /** *
     * ID of the [yandex.cloud.billing.v1.BillingAccount] assigned to the customer.
     * 
* * string billing_account_id = 2; * @return The bytes for billingAccountId. */ @java.lang.Override public com.google.protobuf.ByteString getBillingAccountIdBytes() { java.lang.Object ref = billingAccountId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); billingAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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(billingAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, billingAccountId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, billingAccountId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.billing.v1.CustomerOuterClass.Customer)) { return super.equals(obj); } yandex.cloud.api.billing.v1.CustomerOuterClass.Customer other = (yandex.cloud.api.billing.v1.CustomerOuterClass.Customer) obj; if (!getId() .equals(other.getId())) return false; if (!getBillingAccountId() .equals(other.getBillingAccountId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + BILLING_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getBillingAccountId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.billing.v1.CustomerOuterClass.Customer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.CustomerOuterClass.Customer 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.CustomerOuterClass.Customer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.CustomerOuterClass.Customer 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.CustomerOuterClass.Customer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.CustomerOuterClass.Customer 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.CustomerOuterClass.Customer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.CustomerOuterClass.Customer 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.CustomerOuterClass.Customer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.CustomerOuterClass.Customer 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.CustomerOuterClass.Customer 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.CustomerOuterClass.Customer 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.CustomerOuterClass.Customer 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 Customer resource.
     * 
* * Protobuf type {@code yandex.cloud.billing.v1.Customer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.Customer) yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.CustomerOuterClass.internal_static_yandex_cloud_billing_v1_Customer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.CustomerOuterClass.internal_static_yandex_cloud_billing_v1_Customer_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.CustomerOuterClass.Customer.class, yandex.cloud.api.billing.v1.CustomerOuterClass.Customer.Builder.class); } // Construct using yandex.cloud.api.billing.v1.CustomerOuterClass.Customer.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_ = ""; billingAccountId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.billing.v1.CustomerOuterClass.internal_static_yandex_cloud_billing_v1_Customer_descriptor; } @java.lang.Override public yandex.cloud.api.billing.v1.CustomerOuterClass.Customer getDefaultInstanceForType() { return yandex.cloud.api.billing.v1.CustomerOuterClass.Customer.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.billing.v1.CustomerOuterClass.Customer build() { yandex.cloud.api.billing.v1.CustomerOuterClass.Customer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.billing.v1.CustomerOuterClass.Customer buildPartial() { yandex.cloud.api.billing.v1.CustomerOuterClass.Customer result = new yandex.cloud.api.billing.v1.CustomerOuterClass.Customer(this); result.id_ = id_; result.billingAccountId_ = billingAccountId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.billing.v1.CustomerOuterClass.Customer) { return mergeFrom((yandex.cloud.api.billing.v1.CustomerOuterClass.Customer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.billing.v1.CustomerOuterClass.Customer other) { if (other == yandex.cloud.api.billing.v1.CustomerOuterClass.Customer.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getBillingAccountId().isEmpty()) { billingAccountId_ = other.billingAccountId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.billing.v1.CustomerOuterClass.Customer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.billing.v1.CustomerOuterClass.Customer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** *
       * ID of the customer.
       * 
* * 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 customer.
       * 
* * 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 customer.
       * 
* * 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 customer.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the customer.
       * 
* * 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 billingAccountId_ = ""; /** *
       * ID of the [yandex.cloud.billing.v1.BillingAccount] assigned to the customer.
       * 
* * string billing_account_id = 2; * @return The billingAccountId. */ public java.lang.String getBillingAccountId() { java.lang.Object ref = billingAccountId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); billingAccountId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the [yandex.cloud.billing.v1.BillingAccount] assigned to the customer.
       * 
* * string billing_account_id = 2; * @return The bytes for billingAccountId. */ public com.google.protobuf.ByteString getBillingAccountIdBytes() { java.lang.Object ref = billingAccountId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); billingAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the [yandex.cloud.billing.v1.BillingAccount] assigned to the customer.
       * 
* * string billing_account_id = 2; * @param value The billingAccountId to set. * @return This builder for chaining. */ public Builder setBillingAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } billingAccountId_ = value; onChanged(); return this; } /** *
       * ID of the [yandex.cloud.billing.v1.BillingAccount] assigned to the customer.
       * 
* * string billing_account_id = 2; * @return This builder for chaining. */ public Builder clearBillingAccountId() { billingAccountId_ = getDefaultInstance().getBillingAccountId(); onChanged(); return this; } /** *
       * ID of the [yandex.cloud.billing.v1.BillingAccount] assigned to the customer.
       * 
* * string billing_account_id = 2; * @param value The bytes for billingAccountId to set. * @return This builder for chaining. */ public Builder setBillingAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); billingAccountId_ = value; onChanged(); return this; } @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.Customer) } // @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.Customer) private static final yandex.cloud.api.billing.v1.CustomerOuterClass.Customer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.CustomerOuterClass.Customer(); } public static yandex.cloud.api.billing.v1.CustomerOuterClass.Customer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Customer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Customer(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.CustomerOuterClass.Customer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CustomerPersonOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.billing.v1.CustomerPerson) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the person.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Name of the person.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Long name of the person.
     * 
* * string longname = 2; * @return The longname. */ java.lang.String getLongname(); /** *
     * Long name of the person.
     * 
* * string longname = 2; * @return The bytes for longname. */ com.google.protobuf.ByteString getLongnameBytes(); /** *
     * Phone of the person.
     * 
* * string phone = 3; * @return The phone. */ java.lang.String getPhone(); /** *
     * Phone of the person.
     * 
* * string phone = 3; * @return The bytes for phone. */ com.google.protobuf.ByteString getPhoneBytes(); /** *
     * Email of the person.
     * 
* * string email = 4; * @return The email. */ java.lang.String getEmail(); /** *
     * Email of the person.
     * 
* * string email = 4; * @return The bytes for email. */ com.google.protobuf.ByteString getEmailBytes(); /** *
     * Post code of the person.
     * 
* * string post_code = 5; * @return The postCode. */ java.lang.String getPostCode(); /** *
     * Post code of the person.
     * 
* * string post_code = 5; * @return The bytes for postCode. */ com.google.protobuf.ByteString getPostCodeBytes(); /** *
     * Post address of the person.
     * 
* * string post_address = 6; * @return The postAddress. */ java.lang.String getPostAddress(); /** *
     * Post address of the person.
     * 
* * string post_address = 6; * @return The bytes for postAddress. */ com.google.protobuf.ByteString getPostAddressBytes(); /** *
     * Legal address of the person.
     * 
* * string legal_address = 7; * @return The legalAddress. */ java.lang.String getLegalAddress(); /** *
     * Legal address of the person.
     * 
* * string legal_address = 7; * @return The bytes for legalAddress. */ com.google.protobuf.ByteString getLegalAddressBytes(); /** *
     * Tax identification number of the person.
     * 
* * string tin = 8; * @return The tin. */ java.lang.String getTin(); /** *
     * Tax identification number of the person.
     * 
* * string tin = 8; * @return The bytes for tin. */ com.google.protobuf.ByteString getTinBytes(); } /** *
   * Person of the customer. Contains legal information.
   * 
* * Protobuf type {@code yandex.cloud.billing.v1.CustomerPerson} */ public static final class CustomerPerson extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.billing.v1.CustomerPerson) CustomerPersonOrBuilder { private static final long serialVersionUID = 0L; // Use CustomerPerson.newBuilder() to construct. private CustomerPerson(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomerPerson() { name_ = ""; longname_ = ""; phone_ = ""; email_ = ""; postCode_ = ""; postAddress_ = ""; legalAddress_ = ""; tin_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CustomerPerson(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomerPerson( 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(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); longname_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); phone_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); email_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); postCode_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); postAddress_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); legalAddress_ = s; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); tin_ = 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.CustomerOuterClass.internal_static_yandex_cloud_billing_v1_CustomerPerson_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.CustomerOuterClass.internal_static_yandex_cloud_billing_v1_CustomerPerson_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson.class, yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the person.
     * 
* * string name = 1; * @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 person.
     * 
* * string name = 1; * @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 LONGNAME_FIELD_NUMBER = 2; private volatile java.lang.Object longname_; /** *
     * Long name of the person.
     * 
* * string longname = 2; * @return The longname. */ @java.lang.Override public java.lang.String getLongname() { java.lang.Object ref = longname_; 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(); longname_ = s; return s; } } /** *
     * Long name of the person.
     * 
* * string longname = 2; * @return The bytes for longname. */ @java.lang.Override public com.google.protobuf.ByteString getLongnameBytes() { java.lang.Object ref = longname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); longname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PHONE_FIELD_NUMBER = 3; private volatile java.lang.Object phone_; /** *
     * Phone of the person.
     * 
* * string phone = 3; * @return The phone. */ @java.lang.Override public java.lang.String getPhone() { java.lang.Object ref = phone_; 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(); phone_ = s; return s; } } /** *
     * Phone of the person.
     * 
* * string phone = 3; * @return The bytes for phone. */ @java.lang.Override public com.google.protobuf.ByteString getPhoneBytes() { java.lang.Object ref = phone_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EMAIL_FIELD_NUMBER = 4; private volatile java.lang.Object email_; /** *
     * Email of the person.
     * 
* * string email = 4; * @return The email. */ @java.lang.Override public java.lang.String getEmail() { java.lang.Object ref = email_; 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(); email_ = s; return s; } } /** *
     * Email of the person.
     * 
* * string email = 4; * @return The bytes for email. */ @java.lang.Override public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int POST_CODE_FIELD_NUMBER = 5; private volatile java.lang.Object postCode_; /** *
     * Post code of the person.
     * 
* * string post_code = 5; * @return The postCode. */ @java.lang.Override public java.lang.String getPostCode() { java.lang.Object ref = postCode_; 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(); postCode_ = s; return s; } } /** *
     * Post code of the person.
     * 
* * string post_code = 5; * @return The bytes for postCode. */ @java.lang.Override public com.google.protobuf.ByteString getPostCodeBytes() { java.lang.Object ref = postCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); postCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int POST_ADDRESS_FIELD_NUMBER = 6; private volatile java.lang.Object postAddress_; /** *
     * Post address of the person.
     * 
* * string post_address = 6; * @return The postAddress. */ @java.lang.Override public java.lang.String getPostAddress() { java.lang.Object ref = postAddress_; 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(); postAddress_ = s; return s; } } /** *
     * Post address of the person.
     * 
* * string post_address = 6; * @return The bytes for postAddress. */ @java.lang.Override public com.google.protobuf.ByteString getPostAddressBytes() { java.lang.Object ref = postAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); postAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LEGAL_ADDRESS_FIELD_NUMBER = 7; private volatile java.lang.Object legalAddress_; /** *
     * Legal address of the person.
     * 
* * string legal_address = 7; * @return The legalAddress. */ @java.lang.Override public java.lang.String getLegalAddress() { java.lang.Object ref = legalAddress_; 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(); legalAddress_ = s; return s; } } /** *
     * Legal address of the person.
     * 
* * string legal_address = 7; * @return The bytes for legalAddress. */ @java.lang.Override public com.google.protobuf.ByteString getLegalAddressBytes() { java.lang.Object ref = legalAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); legalAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIN_FIELD_NUMBER = 8; private volatile java.lang.Object tin_; /** *
     * Tax identification number of the person.
     * 
* * string tin = 8; * @return The tin. */ @java.lang.Override public java.lang.String getTin() { java.lang.Object ref = tin_; 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(); tin_ = s; return s; } } /** *
     * Tax identification number of the person.
     * 
* * string tin = 8; * @return The bytes for tin. */ @java.lang.Override public com.google.protobuf.ByteString getTinBytes() { java.lang.Object ref = tin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tin_ = 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(longname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, longname_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, phone_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, email_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, postCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, postAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(legalAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, legalAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, tin_); } 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(longname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, longname_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, phone_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, email_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, postCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, postAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(legalAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, legalAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, tin_); } 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.CustomerOuterClass.CustomerPerson)) { return super.equals(obj); } yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson other = (yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson) obj; if (!getName() .equals(other.getName())) return false; if (!getLongname() .equals(other.getLongname())) return false; if (!getPhone() .equals(other.getPhone())) return false; if (!getEmail() .equals(other.getEmail())) return false; if (!getPostCode() .equals(other.getPostCode())) return false; if (!getPostAddress() .equals(other.getPostAddress())) return false; if (!getLegalAddress() .equals(other.getLegalAddress())) return false; if (!getTin() .equals(other.getTin())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + LONGNAME_FIELD_NUMBER; hash = (53 * hash) + getLongname().hashCode(); hash = (37 * hash) + PHONE_FIELD_NUMBER; hash = (53 * hash) + getPhone().hashCode(); hash = (37 * hash) + EMAIL_FIELD_NUMBER; hash = (53 * hash) + getEmail().hashCode(); hash = (37 * hash) + POST_CODE_FIELD_NUMBER; hash = (53 * hash) + getPostCode().hashCode(); hash = (37 * hash) + POST_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getPostAddress().hashCode(); hash = (37 * hash) + LEGAL_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getLegalAddress().hashCode(); hash = (37 * hash) + TIN_FIELD_NUMBER; hash = (53 * hash) + getTin().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson 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.CustomerOuterClass.CustomerPerson parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson 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.CustomerOuterClass.CustomerPerson parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson 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.CustomerOuterClass.CustomerPerson parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson 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.CustomerOuterClass.CustomerPerson parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson 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.CustomerOuterClass.CustomerPerson 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.CustomerOuterClass.CustomerPerson 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.CustomerOuterClass.CustomerPerson 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; } /** *
     * Person of the customer. Contains legal information.
     * 
* * Protobuf type {@code yandex.cloud.billing.v1.CustomerPerson} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.billing.v1.CustomerPerson) yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPersonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.billing.v1.CustomerOuterClass.internal_static_yandex_cloud_billing_v1_CustomerPerson_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.billing.v1.CustomerOuterClass.internal_static_yandex_cloud_billing_v1_CustomerPerson_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson.class, yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson.Builder.class); } // Construct using yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson.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(); name_ = ""; longname_ = ""; phone_ = ""; email_ = ""; postCode_ = ""; postAddress_ = ""; legalAddress_ = ""; tin_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.billing.v1.CustomerOuterClass.internal_static_yandex_cloud_billing_v1_CustomerPerson_descriptor; } @java.lang.Override public yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson getDefaultInstanceForType() { return yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson build() { yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson buildPartial() { yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson result = new yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson(this); result.name_ = name_; result.longname_ = longname_; result.phone_ = phone_; result.email_ = email_; result.postCode_ = postCode_; result.postAddress_ = postAddress_; result.legalAddress_ = legalAddress_; result.tin_ = tin_; 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.CustomerOuterClass.CustomerPerson) { return mergeFrom((yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson other) { if (other == yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getLongname().isEmpty()) { longname_ = other.longname_; onChanged(); } if (!other.getPhone().isEmpty()) { phone_ = other.phone_; onChanged(); } if (!other.getEmail().isEmpty()) { email_ = other.email_; onChanged(); } if (!other.getPostCode().isEmpty()) { postCode_ = other.postCode_; onChanged(); } if (!other.getPostAddress().isEmpty()) { postAddress_ = other.postAddress_; onChanged(); } if (!other.getLegalAddress().isEmpty()) { legalAddress_ = other.legalAddress_; onChanged(); } if (!other.getTin().isEmpty()) { tin_ = other.tin_; 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.CustomerOuterClass.CustomerPerson parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * Name of the person.
       * 
* * string name = 1; * @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 person.
       * 
* * string name = 1; * @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 person.
       * 
* * string name = 1; * @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 person.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the person.
       * 
* * string name = 1; * @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 longname_ = ""; /** *
       * Long name of the person.
       * 
* * string longname = 2; * @return The longname. */ public java.lang.String getLongname() { java.lang.Object ref = longname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); longname_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Long name of the person.
       * 
* * string longname = 2; * @return The bytes for longname. */ public com.google.protobuf.ByteString getLongnameBytes() { java.lang.Object ref = longname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); longname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Long name of the person.
       * 
* * string longname = 2; * @param value The longname to set. * @return This builder for chaining. */ public Builder setLongname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } longname_ = value; onChanged(); return this; } /** *
       * Long name of the person.
       * 
* * string longname = 2; * @return This builder for chaining. */ public Builder clearLongname() { longname_ = getDefaultInstance().getLongname(); onChanged(); return this; } /** *
       * Long name of the person.
       * 
* * string longname = 2; * @param value The bytes for longname to set. * @return This builder for chaining. */ public Builder setLongnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); longname_ = value; onChanged(); return this; } private java.lang.Object phone_ = ""; /** *
       * Phone of the person.
       * 
* * string phone = 3; * @return The phone. */ public java.lang.String getPhone() { java.lang.Object ref = phone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phone_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Phone of the person.
       * 
* * string phone = 3; * @return The bytes for phone. */ public com.google.protobuf.ByteString getPhoneBytes() { java.lang.Object ref = phone_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Phone of the person.
       * 
* * string phone = 3; * @param value The phone to set. * @return This builder for chaining. */ public Builder setPhone( java.lang.String value) { if (value == null) { throw new NullPointerException(); } phone_ = value; onChanged(); return this; } /** *
       * Phone of the person.
       * 
* * string phone = 3; * @return This builder for chaining. */ public Builder clearPhone() { phone_ = getDefaultInstance().getPhone(); onChanged(); return this; } /** *
       * Phone of the person.
       * 
* * string phone = 3; * @param value The bytes for phone to set. * @return This builder for chaining. */ public Builder setPhoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); phone_ = value; onChanged(); return this; } private java.lang.Object email_ = ""; /** *
       * Email of the person.
       * 
* * string email = 4; * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Email of the person.
       * 
* * string email = 4; * @return The bytes for email. */ public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Email of the person.
       * 
* * string email = 4; * @param value The email to set. * @return This builder for chaining. */ public Builder setEmail( java.lang.String value) { if (value == null) { throw new NullPointerException(); } email_ = value; onChanged(); return this; } /** *
       * Email of the person.
       * 
* * string email = 4; * @return This builder for chaining. */ public Builder clearEmail() { email_ = getDefaultInstance().getEmail(); onChanged(); return this; } /** *
       * Email of the person.
       * 
* * string email = 4; * @param value The bytes for email to set. * @return This builder for chaining. */ public Builder setEmailBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); email_ = value; onChanged(); return this; } private java.lang.Object postCode_ = ""; /** *
       * Post code of the person.
       * 
* * string post_code = 5; * @return The postCode. */ public java.lang.String getPostCode() { java.lang.Object ref = postCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Post code of the person.
       * 
* * string post_code = 5; * @return The bytes for postCode. */ public com.google.protobuf.ByteString getPostCodeBytes() { java.lang.Object ref = postCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); postCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Post code of the person.
       * 
* * string post_code = 5; * @param value The postCode to set. * @return This builder for chaining. */ public Builder setPostCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } postCode_ = value; onChanged(); return this; } /** *
       * Post code of the person.
       * 
* * string post_code = 5; * @return This builder for chaining. */ public Builder clearPostCode() { postCode_ = getDefaultInstance().getPostCode(); onChanged(); return this; } /** *
       * Post code of the person.
       * 
* * string post_code = 5; * @param value The bytes for postCode to set. * @return This builder for chaining. */ public Builder setPostCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); postCode_ = value; onChanged(); return this; } private java.lang.Object postAddress_ = ""; /** *
       * Post address of the person.
       * 
* * string post_address = 6; * @return The postAddress. */ public java.lang.String getPostAddress() { java.lang.Object ref = postAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Post address of the person.
       * 
* * string post_address = 6; * @return The bytes for postAddress. */ public com.google.protobuf.ByteString getPostAddressBytes() { java.lang.Object ref = postAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); postAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Post address of the person.
       * 
* * string post_address = 6; * @param value The postAddress to set. * @return This builder for chaining. */ public Builder setPostAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } postAddress_ = value; onChanged(); return this; } /** *
       * Post address of the person.
       * 
* * string post_address = 6; * @return This builder for chaining. */ public Builder clearPostAddress() { postAddress_ = getDefaultInstance().getPostAddress(); onChanged(); return this; } /** *
       * Post address of the person.
       * 
* * string post_address = 6; * @param value The bytes for postAddress to set. * @return This builder for chaining. */ public Builder setPostAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); postAddress_ = value; onChanged(); return this; } private java.lang.Object legalAddress_ = ""; /** *
       * Legal address of the person.
       * 
* * string legal_address = 7; * @return The legalAddress. */ public java.lang.String getLegalAddress() { java.lang.Object ref = legalAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); legalAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Legal address of the person.
       * 
* * string legal_address = 7; * @return The bytes for legalAddress. */ public com.google.protobuf.ByteString getLegalAddressBytes() { java.lang.Object ref = legalAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); legalAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Legal address of the person.
       * 
* * string legal_address = 7; * @param value The legalAddress to set. * @return This builder for chaining. */ public Builder setLegalAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } legalAddress_ = value; onChanged(); return this; } /** *
       * Legal address of the person.
       * 
* * string legal_address = 7; * @return This builder for chaining. */ public Builder clearLegalAddress() { legalAddress_ = getDefaultInstance().getLegalAddress(); onChanged(); return this; } /** *
       * Legal address of the person.
       * 
* * string legal_address = 7; * @param value The bytes for legalAddress to set. * @return This builder for chaining. */ public Builder setLegalAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); legalAddress_ = value; onChanged(); return this; } private java.lang.Object tin_ = ""; /** *
       * Tax identification number of the person.
       * 
* * string tin = 8; * @return The tin. */ public java.lang.String getTin() { java.lang.Object ref = tin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tin_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Tax identification number of the person.
       * 
* * string tin = 8; * @return The bytes for tin. */ public com.google.protobuf.ByteString getTinBytes() { java.lang.Object ref = tin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Tax identification number of the person.
       * 
* * string tin = 8; * @param value The tin to set. * @return This builder for chaining. */ public Builder setTin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tin_ = value; onChanged(); return this; } /** *
       * Tax identification number of the person.
       * 
* * string tin = 8; * @return This builder for chaining. */ public Builder clearTin() { tin_ = getDefaultInstance().getTin(); onChanged(); return this; } /** *
       * Tax identification number of the person.
       * 
* * string tin = 8; * @param value The bytes for tin to set. * @return This builder for chaining. */ public Builder setTinBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tin_ = 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.CustomerPerson) } // @@protoc_insertion_point(class_scope:yandex.cloud.billing.v1.CustomerPerson) private static final yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson(); } public static yandex.cloud.api.billing.v1.CustomerOuterClass.CustomerPerson getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomerPerson parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomerPerson(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.CustomerOuterClass.CustomerPerson getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_billing_v1_Customer_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_billing_v1_Customer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_billing_v1_CustomerPerson_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_billing_v1_CustomerPerson_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/customer.proto" + "\022\027yandex.cloud.billing.v1\"2\n\010Customer\022\n\n" + "\002id\030\001 \001(\t\022\032\n\022billing_account_id\030\002 \001(\t\"\233\001" + "\n\016CustomerPerson\022\014\n\004name\030\001 \001(\t\022\020\n\010longna" + "me\030\002 \001(\t\022\r\n\005phone\030\003 \001(\t\022\r\n\005email\030\004 \001(\t\022\021" + "\n\tpost_code\030\005 \001(\t\022\024\n\014post_address\030\006 \001(\t\022" + "\025\n\rlegal_address\030\007 \001(\t\022\013\n\003tin\030\010 \001(\tBb\n\033y" + "andex.cloud.api.billing.v1ZCgithub.com/y" + "andex-cloud/go-genproto/yandex/cloud/bil" + "ling/v1;billingb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_yandex_cloud_billing_v1_Customer_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_billing_v1_Customer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_billing_v1_Customer_descriptor, new java.lang.String[] { "Id", "BillingAccountId", }); internal_static_yandex_cloud_billing_v1_CustomerPerson_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_billing_v1_CustomerPerson_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_billing_v1_CustomerPerson_descriptor, new java.lang.String[] { "Name", "Longname", "Phone", "Email", "PostCode", "PostAddress", "LegalAddress", "Tin", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy