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

com.google.shopping.merchant.accounts.v1beta.Table 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/shippingsettings.proto

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

/**
 *
 *
 * 
 * A table defining the rate group, when `single_value` is not
 * expressive enough.
 * 
* * Protobuf type {@code google.shopping.merchant.accounts.v1beta.Table} */ public final class Table extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.Table) TableOrBuilder { private static final long serialVersionUID = 0L; // Use Table.newBuilder() to construct. private Table(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Table() { name_ = ""; rows_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Table(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_Table_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_Table_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.Table.class, com.google.shopping.merchant.accounts.v1beta.Table.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Name of the table. Required for subtables, ignored for the main table.
   * 
* * optional string name = 1; * * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Name of the table. Required for subtables, ignored for the main table.
   * 
* * optional 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 table. Required for subtables, ignored for the main table.
   * 
* * optional 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 ROW_HEADERS_FIELD_NUMBER = 2; private com.google.shopping.merchant.accounts.v1beta.Headers rowHeaders_; /** * * *
   * Required. Headers of the table's rows.
   * 
* * * optional .google.shopping.merchant.accounts.v1beta.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the rowHeaders field is set. */ @java.lang.Override public boolean hasRowHeaders() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Required. Headers of the table's rows.
   * 
* * * optional .google.shopping.merchant.accounts.v1beta.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The rowHeaders. */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.Headers getRowHeaders() { return rowHeaders_ == null ? com.google.shopping.merchant.accounts.v1beta.Headers.getDefaultInstance() : rowHeaders_; } /** * * *
   * Required. Headers of the table's rows.
   * 
* * * optional .google.shopping.merchant.accounts.v1beta.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.HeadersOrBuilder getRowHeadersOrBuilder() { return rowHeaders_ == null ? com.google.shopping.merchant.accounts.v1beta.Headers.getDefaultInstance() : rowHeaders_; } public static final int COLUMN_HEADERS_FIELD_NUMBER = 3; private com.google.shopping.merchant.accounts.v1beta.Headers columnHeaders_; /** * * *
   * Headers of the table's columns. Optional: if not set then the table has
   * only one dimension.
   * 
* * optional .google.shopping.merchant.accounts.v1beta.Headers column_headers = 3; * * @return Whether the columnHeaders field is set. */ @java.lang.Override public boolean hasColumnHeaders() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Headers of the table's columns. Optional: if not set then the table has
   * only one dimension.
   * 
* * optional .google.shopping.merchant.accounts.v1beta.Headers column_headers = 3; * * @return The columnHeaders. */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.Headers getColumnHeaders() { return columnHeaders_ == null ? com.google.shopping.merchant.accounts.v1beta.Headers.getDefaultInstance() : columnHeaders_; } /** * * *
   * Headers of the table's columns. Optional: if not set then the table has
   * only one dimension.
   * 
* * optional .google.shopping.merchant.accounts.v1beta.Headers column_headers = 3; */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.HeadersOrBuilder getColumnHeadersOrBuilder() { return columnHeaders_ == null ? com.google.shopping.merchant.accounts.v1beta.Headers.getDefaultInstance() : columnHeaders_; } public static final int ROWS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List rows_; /** * * *
   * Required. The list of rows that constitute the table. Must have the same
   * length as `row_headers`.
   * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public java.util.List getRowsList() { return rows_; } /** * * *
   * Required. The list of rows that constitute the table. Must have the same
   * length as `row_headers`.
   * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public java.util.List getRowsOrBuilderList() { return rows_; } /** * * *
   * Required. The list of rows that constitute the table. Must have the same
   * length as `row_headers`.
   * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public int getRowsCount() { return rows_.size(); } /** * * *
   * Required. The list of rows that constitute the table. Must have the same
   * length as `row_headers`.
   * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.Row getRows(int index) { return rows_.get(index); } /** * * *
   * Required. The list of rows that constitute the table. Must have the same
   * length as `row_headers`.
   * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.RowOrBuilder getRowsOrBuilder(int index) { return rows_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getRowHeaders()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getColumnHeaders()); } for (int i = 0; i < rows_.size(); i++) { output.writeMessage(4, rows_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRowHeaders()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getColumnHeaders()); } for (int i = 0; i < rows_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, rows_.get(i)); } 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.Table)) { return super.equals(obj); } com.google.shopping.merchant.accounts.v1beta.Table other = (com.google.shopping.merchant.accounts.v1beta.Table) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName().equals(other.getName())) return false; } if (hasRowHeaders() != other.hasRowHeaders()) return false; if (hasRowHeaders()) { if (!getRowHeaders().equals(other.getRowHeaders())) return false; } if (hasColumnHeaders() != other.hasColumnHeaders()) return false; if (hasColumnHeaders()) { if (!getColumnHeaders().equals(other.getColumnHeaders())) return false; } if (!getRowsList().equals(other.getRowsList())) 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(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasRowHeaders()) { hash = (37 * hash) + ROW_HEADERS_FIELD_NUMBER; hash = (53 * hash) + getRowHeaders().hashCode(); } if (hasColumnHeaders()) { hash = (37 * hash) + COLUMN_HEADERS_FIELD_NUMBER; hash = (53 * hash) + getColumnHeaders().hashCode(); } if (getRowsCount() > 0) { hash = (37 * hash) + ROWS_FIELD_NUMBER; hash = (53 * hash) + getRowsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.shopping.merchant.accounts.v1beta.Table parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.Table 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.Table parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.Table 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.Table parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.Table 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.Table 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.Table 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.Table 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.Table 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.Table 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.Table 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.Table 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 table defining the rate group, when `single_value` is not
   * expressive enough.
   * 
* * Protobuf type {@code google.shopping.merchant.accounts.v1beta.Table} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.Table) com.google.shopping.merchant.accounts.v1beta.TableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_Table_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_Table_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.Table.class, com.google.shopping.merchant.accounts.v1beta.Table.Builder.class); } // Construct using com.google.shopping.merchant.accounts.v1beta.Table.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRowHeadersFieldBuilder(); getColumnHeadersFieldBuilder(); getRowsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; rowHeaders_ = null; if (rowHeadersBuilder_ != null) { rowHeadersBuilder_.dispose(); rowHeadersBuilder_ = null; } columnHeaders_ = null; if (columnHeadersBuilder_ != null) { columnHeadersBuilder_.dispose(); columnHeadersBuilder_ = null; } if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); } else { rows_ = null; rowsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_Table_descriptor; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.Table getDefaultInstanceForType() { return com.google.shopping.merchant.accounts.v1beta.Table.getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.Table build() { com.google.shopping.merchant.accounts.v1beta.Table result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.Table buildPartial() { com.google.shopping.merchant.accounts.v1beta.Table result = new com.google.shopping.merchant.accounts.v1beta.Table(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.shopping.merchant.accounts.v1beta.Table result) { if (rowsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { rows_ = java.util.Collections.unmodifiableList(rows_); bitField0_ = (bitField0_ & ~0x00000008); } result.rows_ = rows_; } else { result.rows_ = rowsBuilder_.build(); } } private void buildPartial0(com.google.shopping.merchant.accounts.v1beta.Table result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.rowHeaders_ = rowHeadersBuilder_ == null ? rowHeaders_ : rowHeadersBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.columnHeaders_ = columnHeadersBuilder_ == null ? columnHeaders_ : columnHeadersBuilder_.build(); to_bitField0_ |= 0x00000004; } 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.Table) { return mergeFrom((com.google.shopping.merchant.accounts.v1beta.Table) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.shopping.merchant.accounts.v1beta.Table other) { if (other == com.google.shopping.merchant.accounts.v1beta.Table.getDefaultInstance()) return this; if (other.hasName()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasRowHeaders()) { mergeRowHeaders(other.getRowHeaders()); } if (other.hasColumnHeaders()) { mergeColumnHeaders(other.getColumnHeaders()); } if (rowsBuilder_ == null) { if (!other.rows_.isEmpty()) { if (rows_.isEmpty()) { rows_ = other.rows_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureRowsIsMutable(); rows_.addAll(other.rows_); } onChanged(); } } else { if (!other.rows_.isEmpty()) { if (rowsBuilder_.isEmpty()) { rowsBuilder_.dispose(); rowsBuilder_ = null; rows_ = other.rows_; bitField0_ = (bitField0_ & ~0x00000008); rowsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRowsFieldBuilder() : null; } else { rowsBuilder_.addAllMessages(other.rows_); } } } 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: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getRowHeadersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getColumnHeadersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.shopping.merchant.accounts.v1beta.Row m = input.readMessage( com.google.shopping.merchant.accounts.v1beta.Row.parser(), extensionRegistry); if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(m); } else { rowsBuilder_.addMessage(m); } break; } // case 34 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 name_ = ""; /** * * *
     * Name of the table. Required for subtables, ignored for the main table.
     * 
* * optional string name = 1; * * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Name of the table. Required for subtables, ignored for the main table.
     * 
* * optional 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 table. Required for subtables, ignored for the main table.
     * 
* * optional 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 table. Required for subtables, ignored for the main table.
     * 
* * optional 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Name of the table. Required for subtables, ignored for the main table.
     * 
* * optional string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Name of the table. Required for subtables, ignored for the main table.
     * 
* * optional 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; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.shopping.merchant.accounts.v1beta.Headers rowHeaders_; private com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.Headers, com.google.shopping.merchant.accounts.v1beta.Headers.Builder, com.google.shopping.merchant.accounts.v1beta.HeadersOrBuilder> rowHeadersBuilder_; /** * * *
     * Required. Headers of the table's rows.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the rowHeaders field is set. */ public boolean hasRowHeaders() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Required. Headers of the table's rows.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The rowHeaders. */ public com.google.shopping.merchant.accounts.v1beta.Headers getRowHeaders() { if (rowHeadersBuilder_ == null) { return rowHeaders_ == null ? com.google.shopping.merchant.accounts.v1beta.Headers.getDefaultInstance() : rowHeaders_; } else { return rowHeadersBuilder_.getMessage(); } } /** * * *
     * Required. Headers of the table's rows.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setRowHeaders(com.google.shopping.merchant.accounts.v1beta.Headers value) { if (rowHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rowHeaders_ = value; } else { rowHeadersBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Required. Headers of the table's rows.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setRowHeaders( com.google.shopping.merchant.accounts.v1beta.Headers.Builder builderForValue) { if (rowHeadersBuilder_ == null) { rowHeaders_ = builderForValue.build(); } else { rowHeadersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Required. Headers of the table's rows.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeRowHeaders(com.google.shopping.merchant.accounts.v1beta.Headers value) { if (rowHeadersBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && rowHeaders_ != null && rowHeaders_ != com.google.shopping.merchant.accounts.v1beta.Headers.getDefaultInstance()) { getRowHeadersBuilder().mergeFrom(value); } else { rowHeaders_ = value; } } else { rowHeadersBuilder_.mergeFrom(value); } if (rowHeaders_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Required. Headers of the table's rows.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearRowHeaders() { bitField0_ = (bitField0_ & ~0x00000002); rowHeaders_ = null; if (rowHeadersBuilder_ != null) { rowHeadersBuilder_.dispose(); rowHeadersBuilder_ = null; } onChanged(); return this; } /** * * *
     * Required. Headers of the table's rows.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.Headers.Builder getRowHeadersBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRowHeadersFieldBuilder().getBuilder(); } /** * * *
     * Required. Headers of the table's rows.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.HeadersOrBuilder getRowHeadersOrBuilder() { if (rowHeadersBuilder_ != null) { return rowHeadersBuilder_.getMessageOrBuilder(); } else { return rowHeaders_ == null ? com.google.shopping.merchant.accounts.v1beta.Headers.getDefaultInstance() : rowHeaders_; } } /** * * *
     * Required. Headers of the table's rows.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.Headers, com.google.shopping.merchant.accounts.v1beta.Headers.Builder, com.google.shopping.merchant.accounts.v1beta.HeadersOrBuilder> getRowHeadersFieldBuilder() { if (rowHeadersBuilder_ == null) { rowHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.Headers, com.google.shopping.merchant.accounts.v1beta.Headers.Builder, com.google.shopping.merchant.accounts.v1beta.HeadersOrBuilder>( getRowHeaders(), getParentForChildren(), isClean()); rowHeaders_ = null; } return rowHeadersBuilder_; } private com.google.shopping.merchant.accounts.v1beta.Headers columnHeaders_; private com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.Headers, com.google.shopping.merchant.accounts.v1beta.Headers.Builder, com.google.shopping.merchant.accounts.v1beta.HeadersOrBuilder> columnHeadersBuilder_; /** * * *
     * Headers of the table's columns. Optional: if not set then the table has
     * only one dimension.
     * 
* * optional .google.shopping.merchant.accounts.v1beta.Headers column_headers = 3; * * @return Whether the columnHeaders field is set. */ public boolean hasColumnHeaders() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Headers of the table's columns. Optional: if not set then the table has
     * only one dimension.
     * 
* * optional .google.shopping.merchant.accounts.v1beta.Headers column_headers = 3; * * @return The columnHeaders. */ public com.google.shopping.merchant.accounts.v1beta.Headers getColumnHeaders() { if (columnHeadersBuilder_ == null) { return columnHeaders_ == null ? com.google.shopping.merchant.accounts.v1beta.Headers.getDefaultInstance() : columnHeaders_; } else { return columnHeadersBuilder_.getMessage(); } } /** * * *
     * Headers of the table's columns. Optional: if not set then the table has
     * only one dimension.
     * 
* * optional .google.shopping.merchant.accounts.v1beta.Headers column_headers = 3; */ public Builder setColumnHeaders(com.google.shopping.merchant.accounts.v1beta.Headers value) { if (columnHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } columnHeaders_ = value; } else { columnHeadersBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Headers of the table's columns. Optional: if not set then the table has
     * only one dimension.
     * 
* * optional .google.shopping.merchant.accounts.v1beta.Headers column_headers = 3; */ public Builder setColumnHeaders( com.google.shopping.merchant.accounts.v1beta.Headers.Builder builderForValue) { if (columnHeadersBuilder_ == null) { columnHeaders_ = builderForValue.build(); } else { columnHeadersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Headers of the table's columns. Optional: if not set then the table has
     * only one dimension.
     * 
* * optional .google.shopping.merchant.accounts.v1beta.Headers column_headers = 3; */ public Builder mergeColumnHeaders(com.google.shopping.merchant.accounts.v1beta.Headers value) { if (columnHeadersBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && columnHeaders_ != null && columnHeaders_ != com.google.shopping.merchant.accounts.v1beta.Headers.getDefaultInstance()) { getColumnHeadersBuilder().mergeFrom(value); } else { columnHeaders_ = value; } } else { columnHeadersBuilder_.mergeFrom(value); } if (columnHeaders_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * Headers of the table's columns. Optional: if not set then the table has
     * only one dimension.
     * 
* * optional .google.shopping.merchant.accounts.v1beta.Headers column_headers = 3; */ public Builder clearColumnHeaders() { bitField0_ = (bitField0_ & ~0x00000004); columnHeaders_ = null; if (columnHeadersBuilder_ != null) { columnHeadersBuilder_.dispose(); columnHeadersBuilder_ = null; } onChanged(); return this; } /** * * *
     * Headers of the table's columns. Optional: if not set then the table has
     * only one dimension.
     * 
* * optional .google.shopping.merchant.accounts.v1beta.Headers column_headers = 3; */ public com.google.shopping.merchant.accounts.v1beta.Headers.Builder getColumnHeadersBuilder() { bitField0_ |= 0x00000004; onChanged(); return getColumnHeadersFieldBuilder().getBuilder(); } /** * * *
     * Headers of the table's columns. Optional: if not set then the table has
     * only one dimension.
     * 
* * optional .google.shopping.merchant.accounts.v1beta.Headers column_headers = 3; */ public com.google.shopping.merchant.accounts.v1beta.HeadersOrBuilder getColumnHeadersOrBuilder() { if (columnHeadersBuilder_ != null) { return columnHeadersBuilder_.getMessageOrBuilder(); } else { return columnHeaders_ == null ? com.google.shopping.merchant.accounts.v1beta.Headers.getDefaultInstance() : columnHeaders_; } } /** * * *
     * Headers of the table's columns. Optional: if not set then the table has
     * only one dimension.
     * 
* * optional .google.shopping.merchant.accounts.v1beta.Headers column_headers = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.Headers, com.google.shopping.merchant.accounts.v1beta.Headers.Builder, com.google.shopping.merchant.accounts.v1beta.HeadersOrBuilder> getColumnHeadersFieldBuilder() { if (columnHeadersBuilder_ == null) { columnHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.Headers, com.google.shopping.merchant.accounts.v1beta.Headers.Builder, com.google.shopping.merchant.accounts.v1beta.HeadersOrBuilder>( getColumnHeaders(), getParentForChildren(), isClean()); columnHeaders_ = null; } return columnHeadersBuilder_; } private java.util.List rows_ = java.util.Collections.emptyList(); private void ensureRowsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { rows_ = new java.util.ArrayList(rows_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.Row, com.google.shopping.merchant.accounts.v1beta.Row.Builder, com.google.shopping.merchant.accounts.v1beta.RowOrBuilder> rowsBuilder_; /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List getRowsList() { if (rowsBuilder_ == null) { return java.util.Collections.unmodifiableList(rows_); } else { return rowsBuilder_.getMessageList(); } } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public int getRowsCount() { if (rowsBuilder_ == null) { return rows_.size(); } else { return rowsBuilder_.getCount(); } } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.Row getRows(int index) { if (rowsBuilder_ == null) { return rows_.get(index); } else { return rowsBuilder_.getMessage(index); } } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setRows(int index, com.google.shopping.merchant.accounts.v1beta.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.set(index, value); onChanged(); } else { rowsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setRows( int index, com.google.shopping.merchant.accounts.v1beta.Row.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.set(index, builderForValue.build()); onChanged(); } else { rowsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addRows(com.google.shopping.merchant.accounts.v1beta.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.add(value); onChanged(); } else { rowsBuilder_.addMessage(value); } return this; } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addRows(int index, com.google.shopping.merchant.accounts.v1beta.Row value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.add(index, value); onChanged(); } else { rowsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addRows( com.google.shopping.merchant.accounts.v1beta.Row.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(builderForValue.build()); onChanged(); } else { rowsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addRows( int index, com.google.shopping.merchant.accounts.v1beta.Row.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(index, builderForValue.build()); onChanged(); } else { rowsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addAllRows( java.lang.Iterable values) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); onChanged(); } else { rowsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearRows() { if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { rowsBuilder_.clear(); } return this; } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder removeRows(int index) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.remove(index); onChanged(); } else { rowsBuilder_.remove(index); } return this; } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.Row.Builder getRowsBuilder(int index) { return getRowsFieldBuilder().getBuilder(index); } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.RowOrBuilder getRowsOrBuilder(int index) { if (rowsBuilder_ == null) { return rows_.get(index); } else { return rowsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List getRowsOrBuilderList() { if (rowsBuilder_ != null) { return rowsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rows_); } } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.Row.Builder addRowsBuilder() { return getRowsFieldBuilder() .addBuilder(com.google.shopping.merchant.accounts.v1beta.Row.getDefaultInstance()); } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.Row.Builder addRowsBuilder(int index) { return getRowsFieldBuilder() .addBuilder(index, com.google.shopping.merchant.accounts.v1beta.Row.getDefaultInstance()); } /** * * *
     * Required. The list of rows that constitute the table. Must have the same
     * length as `row_headers`.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List getRowsBuilderList() { return getRowsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.Row, com.google.shopping.merchant.accounts.v1beta.Row.Builder, com.google.shopping.merchant.accounts.v1beta.RowOrBuilder> getRowsFieldBuilder() { if (rowsBuilder_ == null) { rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.Row, com.google.shopping.merchant.accounts.v1beta.Row.Builder, com.google.shopping.merchant.accounts.v1beta.RowOrBuilder>( rows_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); rows_ = null; } return rowsBuilder_; } @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.Table) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.Table) private static final com.google.shopping.merchant.accounts.v1beta.Table DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.Table(); } public static com.google.shopping.merchant.accounts.v1beta.Table getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser
() { @java.lang.Override public Table 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.Table getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }