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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
public BigQueryConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public BigQueryConfig build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public BigQueryConfig buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public BigQueryConfig.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<BigQueryConfig.Builder>
IOException
public String getTable()
The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}
string table = 1;
getTable
in interface BigQueryConfigOrBuilder
public 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 BigQueryConfigOrBuilder
public 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 BigQueryConfigOrBuilder
public 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 BigQueryConfigOrBuilder
public 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 BigQueryConfigOrBuilder
public 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 BigQueryConfigOrBuilder
public 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 BigQueryConfigOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
Copyright © 2023 Google LLC. All rights reserved.