public static final class BigQueryConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder> implements BigQueryConfigOrBuilder
Configuration for a BigQuery subscription.Protobuf type
google.pubsub.v1.BigQueryConfig| Modifier and Type | Method and Description |
|---|---|
BigQueryConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BigQueryConfig |
build() |
BigQueryConfig |
buildPartial() |
BigQueryConfig.Builder |
clear() |
BigQueryConfig.Builder |
clearDropUnknownFields()
When true and use_topic_schema is true, any fields that are a part of the
topic schema that are not part of the BigQuery table schema are dropped
when writing to BigQuery.
|
BigQueryConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BigQueryConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BigQueryConfig.Builder |
clearState()
Output only.
|
BigQueryConfig.Builder |
clearTable()
The name of the table to which to write data, of the form
{projectId}:{datasetId}.{tableId}
|
BigQueryConfig.Builder |
clearUseTopicSchema()
When true, use the topic's schema as the columns to write to in BigQuery,
if it exists.
|
BigQueryConfig.Builder |
clearWriteMetadata()
When true, write the subscription name, message_id, publish_time,
attributes, and ordering_key to additional columns in the table.
|
BigQueryConfig.Builder |
clone() |
BigQueryConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDropUnknownFields()
When true and use_topic_schema is true, any fields that are a part of the
topic schema that are not part of the BigQuery table schema are dropped
when writing to BigQuery.
|
BigQueryConfig.State |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
String |
getTable()
The name of the table to which to write data, of the form
{projectId}:{datasetId}.{tableId}
|
com.google.protobuf.ByteString |
getTableBytes()
The name of the table to which to write data, of the form
{projectId}:{datasetId}.{tableId}
|
boolean |
getUseTopicSchema()
When true, use the topic's schema as the columns to write to in BigQuery,
if it exists.
|
boolean |
getWriteMetadata()
When true, write the subscription name, message_id, publish_time,
attributes, and ordering_key to additional columns in the table.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BigQueryConfig.Builder |
mergeFrom(BigQueryConfig other) |
BigQueryConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BigQueryConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
BigQueryConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BigQueryConfig.Builder |
setDropUnknownFields(boolean value)
When true and use_topic_schema is true, any fields that are a part of the
topic schema that are not part of the BigQuery table schema are dropped
when writing to BigQuery.
|
BigQueryConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BigQueryConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BigQueryConfig.Builder |
setState(BigQueryConfig.State value)
Output only.
|
BigQueryConfig.Builder |
setStateValue(int value)
Output only.
|
BigQueryConfig.Builder |
setTable(String value)
The name of the table to which to write data, of the form
{projectId}:{datasetId}.{tableId}
|
BigQueryConfig.Builder |
setTableBytes(com.google.protobuf.ByteString value)
The name of the table to which to write data, of the form
{projectId}:{datasetId}.{tableId}
|
BigQueryConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BigQueryConfig.Builder |
setUseTopicSchema(boolean value)
When true, use the topic's schema as the columns to write to in BigQuery,
if it exists.
|
BigQueryConfig.Builder |
setWriteMetadata(boolean value)
When true, write the subscription name, message_id, publish_time,
attributes, and ordering_key to additional columns in the table.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>public BigQueryConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>public BigQueryConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BigQueryConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BigQueryConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BigQueryConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>public BigQueryConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>public BigQueryConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>public BigQueryConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>public BigQueryConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>public BigQueryConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>public BigQueryConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BigQueryConfig.Builder>public BigQueryConfig.Builder mergeFrom(BigQueryConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>public BigQueryConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BigQueryConfig.Builder>IOExceptionpublic String getTable()
The name of the table to which to write data, of the form
{projectId}:{datasetId}.{tableId}
string table = 1;getTable in interface BigQueryConfigOrBuilderpublic com.google.protobuf.ByteString getTableBytes()
The name of the table to which to write data, of the form
{projectId}:{datasetId}.{tableId}
string table = 1;getTableBytes in interface BigQueryConfigOrBuilderpublic BigQueryConfig.Builder setTable(String value)
The name of the table to which to write data, of the form
{projectId}:{datasetId}.{tableId}
string table = 1;value - The table to set.public BigQueryConfig.Builder clearTable()
The name of the table to which to write data, of the form
{projectId}:{datasetId}.{tableId}
string table = 1;public BigQueryConfig.Builder setTableBytes(com.google.protobuf.ByteString value)
The name of the table to which to write data, of the form
{projectId}:{datasetId}.{tableId}
string table = 1;value - The bytes for table to set.public boolean getUseTopicSchema()
When true, use the topic's schema as the columns to write to in BigQuery, if it exists.
bool use_topic_schema = 2;getUseTopicSchema in interface BigQueryConfigOrBuilderpublic BigQueryConfig.Builder setUseTopicSchema(boolean value)
When true, use the topic's schema as the columns to write to in BigQuery, if it exists.
bool use_topic_schema = 2;value - The useTopicSchema to set.public BigQueryConfig.Builder clearUseTopicSchema()
When true, use the topic's schema as the columns to write to in BigQuery, if it exists.
bool use_topic_schema = 2;public boolean getWriteMetadata()
When true, write the subscription name, message_id, publish_time, attributes, and ordering_key to additional columns in the table. The subscription name, message_id, and publish_time fields are put in their own columns while all other message properties (other than data) are written to a JSON object in the attributes column.
bool write_metadata = 3;getWriteMetadata in interface BigQueryConfigOrBuilderpublic BigQueryConfig.Builder setWriteMetadata(boolean value)
When true, write the subscription name, message_id, publish_time, attributes, and ordering_key to additional columns in the table. The subscription name, message_id, and publish_time fields are put in their own columns while all other message properties (other than data) are written to a JSON object in the attributes column.
bool write_metadata = 3;value - The writeMetadata to set.public BigQueryConfig.Builder clearWriteMetadata()
When true, write the subscription name, message_id, publish_time, attributes, and ordering_key to additional columns in the table. The subscription name, message_id, and publish_time fields are put in their own columns while all other message properties (other than data) are written to a JSON object in the attributes column.
bool write_metadata = 3;public boolean getDropUnknownFields()
When true and use_topic_schema is true, any fields that are a part of the topic schema that are not part of the BigQuery table schema are dropped when writing to BigQuery. Otherwise, the schemas must be kept in sync and any messages with extra fields are not written and remain in the subscription's backlog.
bool drop_unknown_fields = 4;getDropUnknownFields in interface BigQueryConfigOrBuilderpublic BigQueryConfig.Builder setDropUnknownFields(boolean value)
When true and use_topic_schema is true, any fields that are a part of the topic schema that are not part of the BigQuery table schema are dropped when writing to BigQuery. Otherwise, the schemas must be kept in sync and any messages with extra fields are not written and remain in the subscription's backlog.
bool drop_unknown_fields = 4;value - The dropUnknownFields to set.public BigQueryConfig.Builder clearDropUnknownFields()
When true and use_topic_schema is true, any fields that are a part of the topic schema that are not part of the BigQuery table schema are dropped when writing to BigQuery. Otherwise, the schemas must be kept in sync and any messages with extra fields are not written and remain in the subscription's backlog.
bool drop_unknown_fields = 4;public int getStateValue()
Output only. An output-only field that indicates whether or not the subscription can receive messages.
.google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface BigQueryConfigOrBuilderpublic BigQueryConfig.Builder setStateValue(int value)
Output only. An output-only field that indicates whether or not the subscription can receive messages.
.google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for state to set.public BigQueryConfig.State getState()
Output only. An output-only field that indicates whether or not the subscription can receive messages.
.google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface BigQueryConfigOrBuilderpublic BigQueryConfig.Builder setState(BigQueryConfig.State value)
Output only. An output-only field that indicates whether or not the subscription can receive messages.
.google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The state to set.public BigQueryConfig.Builder clearState()
Output only. An output-only field that indicates whether or not the subscription can receive messages.
.google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final BigQueryConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>public final BigQueryConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.