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

com.google.shopping.merchant.accounts.v1beta.Accepted Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/shopping/merchant/accounts/v1beta/termsofserviceagreementstate.proto

// Protobuf Java Version: 3.25.5
package com.google.shopping.merchant.accounts.v1beta;

/**
 *
 *
 * 
 * Describes the accepted terms of service.
 * 
* * Protobuf type {@code google.shopping.merchant.accounts.v1beta.Accepted} */ public final class Accepted extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.Accepted) AcceptedOrBuilder { private static final long serialVersionUID = 0L; // Use Accepted.newBuilder() to construct. private Accepted(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Accepted() { termsOfService_ = ""; acceptedBy_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Accepted(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateProto .internal_static_google_shopping_merchant_accounts_v1beta_Accepted_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateProto .internal_static_google_shopping_merchant_accounts_v1beta_Accepted_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.Accepted.class, com.google.shopping.merchant.accounts.v1beta.Accepted.Builder.class); } private int bitField0_; public static final int TERMS_OF_SERVICE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object termsOfService_ = ""; /** * * *
   * The accepted
   * [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService).
   * 
* * string terms_of_service = 1 [(.google.api.resource_reference) = { ... } * * @return The termsOfService. */ @java.lang.Override public java.lang.String getTermsOfService() { java.lang.Object ref = termsOfService_; 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(); termsOfService_ = s; return s; } } /** * * *
   * The accepted
   * [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService).
   * 
* * string terms_of_service = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for termsOfService. */ @java.lang.Override public com.google.protobuf.ByteString getTermsOfServiceBytes() { java.lang.Object ref = termsOfService_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); termsOfService_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACCEPTED_BY_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object acceptedBy_ = ""; /** * * *
   * The account where the acceptance was recorded. This can be the account
   * itself or, in the case of subaccounts, the MCA account.
   * 
* * string accepted_by = 2 [(.google.api.resource_reference) = { ... } * * @return The acceptedBy. */ @java.lang.Override public java.lang.String getAcceptedBy() { java.lang.Object ref = acceptedBy_; 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(); acceptedBy_ = s; return s; } } /** * * *
   * The account where the acceptance was recorded. This can be the account
   * itself or, in the case of subaccounts, the MCA account.
   * 
* * string accepted_by = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for acceptedBy. */ @java.lang.Override public com.google.protobuf.ByteString getAcceptedByBytes() { java.lang.Object ref = acceptedBy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); acceptedBy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALID_UNTIL_FIELD_NUMBER = 3; private com.google.type.Date validUntil_; /** * * *
   * When set, it states that the accepted
   * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
   * is only valid until the end of this date (in UTC). A new one must be
   * accepted before then. The information of the required
   * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
   * is found in the [Required](Required) message.
   * 
* * optional .google.type.Date valid_until = 3; * * @return Whether the validUntil field is set. */ @java.lang.Override public boolean hasValidUntil() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * When set, it states that the accepted
   * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
   * is only valid until the end of this date (in UTC). A new one must be
   * accepted before then. The information of the required
   * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
   * is found in the [Required](Required) message.
   * 
* * optional .google.type.Date valid_until = 3; * * @return The validUntil. */ @java.lang.Override public com.google.type.Date getValidUntil() { return validUntil_ == null ? com.google.type.Date.getDefaultInstance() : validUntil_; } /** * * *
   * When set, it states that the accepted
   * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
   * is only valid until the end of this date (in UTC). A new one must be
   * accepted before then. The information of the required
   * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
   * is found in the [Required](Required) message.
   * 
* * optional .google.type.Date valid_until = 3; */ @java.lang.Override public com.google.type.DateOrBuilder getValidUntilOrBuilder() { return validUntil_ == null ? com.google.type.Date.getDefaultInstance() : validUntil_; } 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(termsOfService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, termsOfService_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceptedBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acceptedBy_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getValidUntil()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(termsOfService_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, termsOfService_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceptedBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acceptedBy_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getValidUntil()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.shopping.merchant.accounts.v1beta.Accepted)) { return super.equals(obj); } com.google.shopping.merchant.accounts.v1beta.Accepted other = (com.google.shopping.merchant.accounts.v1beta.Accepted) obj; if (!getTermsOfService().equals(other.getTermsOfService())) return false; if (!getAcceptedBy().equals(other.getAcceptedBy())) return false; if (hasValidUntil() != other.hasValidUntil()) return false; if (hasValidUntil()) { if (!getValidUntil().equals(other.getValidUntil())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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) + TERMS_OF_SERVICE_FIELD_NUMBER; hash = (53 * hash) + getTermsOfService().hashCode(); hash = (37 * hash) + ACCEPTED_BY_FIELD_NUMBER; hash = (53 * hash) + getAcceptedBy().hashCode(); if (hasValidUntil()) { hash = (37 * hash) + VALID_UNTIL_FIELD_NUMBER; hash = (53 * hash) + getValidUntil().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.shopping.merchant.accounts.v1beta.Accepted parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.Accepted parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.Accepted parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.Accepted parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.Accepted parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.Accepted parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.Accepted parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.Accepted 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 com.google.shopping.merchant.accounts.v1beta.Accepted parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.Accepted 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 com.google.shopping.merchant.accounts.v1beta.Accepted parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.Accepted 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( com.google.shopping.merchant.accounts.v1beta.Accepted 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; } /** * * *
   * Describes the accepted terms of service.
   * 
* * Protobuf type {@code google.shopping.merchant.accounts.v1beta.Accepted} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.Accepted) com.google.shopping.merchant.accounts.v1beta.AcceptedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateProto .internal_static_google_shopping_merchant_accounts_v1beta_Accepted_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateProto .internal_static_google_shopping_merchant_accounts_v1beta_Accepted_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.Accepted.class, com.google.shopping.merchant.accounts.v1beta.Accepted.Builder.class); } // Construct using com.google.shopping.merchant.accounts.v1beta.Accepted.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getValidUntilFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; termsOfService_ = ""; acceptedBy_ = ""; validUntil_ = null; if (validUntilBuilder_ != null) { validUntilBuilder_.dispose(); validUntilBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateProto .internal_static_google_shopping_merchant_accounts_v1beta_Accepted_descriptor; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.Accepted getDefaultInstanceForType() { return com.google.shopping.merchant.accounts.v1beta.Accepted.getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.Accepted build() { com.google.shopping.merchant.accounts.v1beta.Accepted result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.Accepted buildPartial() { com.google.shopping.merchant.accounts.v1beta.Accepted result = new com.google.shopping.merchant.accounts.v1beta.Accepted(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.shopping.merchant.accounts.v1beta.Accepted result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.termsOfService_ = termsOfService_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.acceptedBy_ = acceptedBy_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.validUntil_ = validUntilBuilder_ == null ? validUntil_ : validUntilBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 com.google.shopping.merchant.accounts.v1beta.Accepted) { return mergeFrom((com.google.shopping.merchant.accounts.v1beta.Accepted) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.shopping.merchant.accounts.v1beta.Accepted other) { if (other == com.google.shopping.merchant.accounts.v1beta.Accepted.getDefaultInstance()) return this; if (!other.getTermsOfService().isEmpty()) { termsOfService_ = other.termsOfService_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getAcceptedBy().isEmpty()) { acceptedBy_ = other.acceptedBy_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasValidUntil()) { mergeValidUntil(other.getValidUntil()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { termsOfService_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { acceptedBy_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getValidUntilFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object termsOfService_ = ""; /** * * *
     * The accepted
     * [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService).
     * 
* * string terms_of_service = 1 [(.google.api.resource_reference) = { ... } * * @return The termsOfService. */ public java.lang.String getTermsOfService() { java.lang.Object ref = termsOfService_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); termsOfService_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The accepted
     * [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService).
     * 
* * string terms_of_service = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for termsOfService. */ public com.google.protobuf.ByteString getTermsOfServiceBytes() { java.lang.Object ref = termsOfService_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); termsOfService_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The accepted
     * [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService).
     * 
* * string terms_of_service = 1 [(.google.api.resource_reference) = { ... } * * @param value The termsOfService to set. * @return This builder for chaining. */ public Builder setTermsOfService(java.lang.String value) { if (value == null) { throw new NullPointerException(); } termsOfService_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The accepted
     * [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService).
     * 
* * string terms_of_service = 1 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearTermsOfService() { termsOfService_ = getDefaultInstance().getTermsOfService(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The accepted
     * [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService).
     * 
* * string terms_of_service = 1 [(.google.api.resource_reference) = { ... } * * @param value The bytes for termsOfService to set. * @return This builder for chaining. */ public Builder setTermsOfServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); termsOfService_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object acceptedBy_ = ""; /** * * *
     * The account where the acceptance was recorded. This can be the account
     * itself or, in the case of subaccounts, the MCA account.
     * 
* * string accepted_by = 2 [(.google.api.resource_reference) = { ... } * * @return The acceptedBy. */ public java.lang.String getAcceptedBy() { java.lang.Object ref = acceptedBy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); acceptedBy_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The account where the acceptance was recorded. This can be the account
     * itself or, in the case of subaccounts, the MCA account.
     * 
* * string accepted_by = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for acceptedBy. */ public com.google.protobuf.ByteString getAcceptedByBytes() { java.lang.Object ref = acceptedBy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); acceptedBy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The account where the acceptance was recorded. This can be the account
     * itself or, in the case of subaccounts, the MCA account.
     * 
* * string accepted_by = 2 [(.google.api.resource_reference) = { ... } * * @param value The acceptedBy to set. * @return This builder for chaining. */ public Builder setAcceptedBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } acceptedBy_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The account where the acceptance was recorded. This can be the account
     * itself or, in the case of subaccounts, the MCA account.
     * 
* * string accepted_by = 2 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearAcceptedBy() { acceptedBy_ = getDefaultInstance().getAcceptedBy(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * The account where the acceptance was recorded. This can be the account
     * itself or, in the case of subaccounts, the MCA account.
     * 
* * string accepted_by = 2 [(.google.api.resource_reference) = { ... } * * @param value The bytes for acceptedBy to set. * @return This builder for chaining. */ public Builder setAcceptedByBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); acceptedBy_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.type.Date validUntil_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> validUntilBuilder_; /** * * *
     * When set, it states that the accepted
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is only valid until the end of this date (in UTC). A new one must be
     * accepted before then. The information of the required
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is found in the [Required](Required) message.
     * 
* * optional .google.type.Date valid_until = 3; * * @return Whether the validUntil field is set. */ public boolean hasValidUntil() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * When set, it states that the accepted
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is only valid until the end of this date (in UTC). A new one must be
     * accepted before then. The information of the required
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is found in the [Required](Required) message.
     * 
* * optional .google.type.Date valid_until = 3; * * @return The validUntil. */ public com.google.type.Date getValidUntil() { if (validUntilBuilder_ == null) { return validUntil_ == null ? com.google.type.Date.getDefaultInstance() : validUntil_; } else { return validUntilBuilder_.getMessage(); } } /** * * *
     * When set, it states that the accepted
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is only valid until the end of this date (in UTC). A new one must be
     * accepted before then. The information of the required
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is found in the [Required](Required) message.
     * 
* * optional .google.type.Date valid_until = 3; */ public Builder setValidUntil(com.google.type.Date value) { if (validUntilBuilder_ == null) { if (value == null) { throw new NullPointerException(); } validUntil_ = value; } else { validUntilBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * When set, it states that the accepted
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is only valid until the end of this date (in UTC). A new one must be
     * accepted before then. The information of the required
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is found in the [Required](Required) message.
     * 
* * optional .google.type.Date valid_until = 3; */ public Builder setValidUntil(com.google.type.Date.Builder builderForValue) { if (validUntilBuilder_ == null) { validUntil_ = builderForValue.build(); } else { validUntilBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * When set, it states that the accepted
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is only valid until the end of this date (in UTC). A new one must be
     * accepted before then. The information of the required
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is found in the [Required](Required) message.
     * 
* * optional .google.type.Date valid_until = 3; */ public Builder mergeValidUntil(com.google.type.Date value) { if (validUntilBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && validUntil_ != null && validUntil_ != com.google.type.Date.getDefaultInstance()) { getValidUntilBuilder().mergeFrom(value); } else { validUntil_ = value; } } else { validUntilBuilder_.mergeFrom(value); } if (validUntil_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * When set, it states that the accepted
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is only valid until the end of this date (in UTC). A new one must be
     * accepted before then. The information of the required
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is found in the [Required](Required) message.
     * 
* * optional .google.type.Date valid_until = 3; */ public Builder clearValidUntil() { bitField0_ = (bitField0_ & ~0x00000004); validUntil_ = null; if (validUntilBuilder_ != null) { validUntilBuilder_.dispose(); validUntilBuilder_ = null; } onChanged(); return this; } /** * * *
     * When set, it states that the accepted
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is only valid until the end of this date (in UTC). A new one must be
     * accepted before then. The information of the required
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is found in the [Required](Required) message.
     * 
* * optional .google.type.Date valid_until = 3; */ public com.google.type.Date.Builder getValidUntilBuilder() { bitField0_ |= 0x00000004; onChanged(); return getValidUntilFieldBuilder().getBuilder(); } /** * * *
     * When set, it states that the accepted
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is only valid until the end of this date (in UTC). A new one must be
     * accepted before then. The information of the required
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is found in the [Required](Required) message.
     * 
* * optional .google.type.Date valid_until = 3; */ public com.google.type.DateOrBuilder getValidUntilOrBuilder() { if (validUntilBuilder_ != null) { return validUntilBuilder_.getMessageOrBuilder(); } else { return validUntil_ == null ? com.google.type.Date.getDefaultInstance() : validUntil_; } } /** * * *
     * When set, it states that the accepted
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is only valid until the end of this date (in UTC). A new one must be
     * accepted before then. The information of the required
     * [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService)
     * is found in the [Required](Required) message.
     * 
* * optional .google.type.Date valid_until = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getValidUntilFieldBuilder() { if (validUntilBuilder_ == null) { validUntilBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( getValidUntil(), getParentForChildren(), isClean()); validUntil_ = null; } return validUntilBuilder_; } @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:google.shopping.merchant.accounts.v1beta.Accepted) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.Accepted) private static final com.google.shopping.merchant.accounts.v1beta.Accepted DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.Accepted(); } public static com.google.shopping.merchant.accounts.v1beta.Accepted getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Accepted parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.Accepted getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy