public static final class BigQueryConfig.Builder extends GeneratedMessageV3.Builder<BigQueryConfig.Builder> implements BigQueryConfigOrBuilder
Configuration for a BigQuery subscription.
Protobuf type google.pubsub.v1.BigQueryConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BigQueryConfig.BuilderImplements
BigQueryConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BigQueryConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
BigQueryConfig.Builder |
build()
public BigQueryConfig build()
Type | Description |
BigQueryConfig |
buildPartial()
public BigQueryConfig buildPartial()
Type | Description |
BigQueryConfig |
clear()
public BigQueryConfig.Builder clear()
Type | Description |
BigQueryConfig.Builder |
clearDropUnknownFields()
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;
Type | Description |
BigQueryConfig.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public BigQueryConfig.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
BigQueryConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public BigQueryConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
BigQueryConfig.Builder |
clearState()
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];
Type | Description |
BigQueryConfig.Builder | This builder for chaining. |
clearTable()
public BigQueryConfig.Builder clearTable()
The name of the table to which to write data, of the form {projectId}:{datasetId}.{tableId}
string table = 1;
Type | Description |
BigQueryConfig.Builder | This builder for chaining. |
clearUseTopicSchema()
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;
Type | Description |
BigQueryConfig.Builder | This builder for chaining. |
clearWriteMetadata()
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;
Type | Description |
BigQueryConfig.Builder | This builder for chaining. |
clone()
public BigQueryConfig.Builder clone()
Type | Description |
BigQueryConfig.Builder |
getDefaultInstanceForType()
public BigQueryConfig getDefaultInstanceForType()
Type | Description |
BigQueryConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDropUnknownFields()
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;
Type | Description |
boolean | The dropUnknownFields. |
getState()
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];
Type | Description |
BigQueryConfig.State | The state. |
getStateValue()
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];
Type | Description |
int | The enum numeric value on the wire for state. |
getTable()
public String getTable()
The name of the table to which to write data, of the form {projectId}:{datasetId}.{tableId}
string table = 1;
Type | Description |
String | The table. |
getTableBytes()
public ByteString getTableBytes()
The name of the table to which to write data, of the form {projectId}:{datasetId}.{tableId}
string table = 1;
Type | Description |
ByteString | The bytes for table. |
getUseTopicSchema()
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;
Type | Description |
boolean | The useTopicSchema. |
getWriteMetadata()
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;
Type | Description |
boolean | The writeMetadata. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BigQueryConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
BigQueryConfig.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public BigQueryConfig.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
BigQueryConfig.Builder |
mergeFrom(BigQueryConfig other)
public BigQueryConfig.Builder mergeFrom(BigQueryConfig other)
Name | Description |
other | BigQueryConfig |
Type | Description |
BigQueryConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BigQueryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
BigQueryConfig.Builder |
setDropUnknownFields(boolean value)
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;
Name | Description |
value | boolean The dropUnknownFields to set. |
Type | Description |
BigQueryConfig.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public BigQueryConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
BigQueryConfig.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BigQueryConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
BigQueryConfig.Builder |
setState(BigQueryConfig.State value)
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];
Name | Description |
value | BigQueryConfig.State The state to set. |
Type | Description |
BigQueryConfig.Builder | This builder for chaining. |
setStateValue(int value)
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];
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Type | Description |
BigQueryConfig.Builder | This builder for chaining. |
setTable(String value)
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;
Name | Description |
value | String The table to set. |
Type | Description |
BigQueryConfig.Builder | This builder for chaining. |
setTableBytes(ByteString value)
public BigQueryConfig.Builder setTableBytes(ByteString value)
The name of the table to which to write data, of the form {projectId}:{datasetId}.{tableId}
string table = 1;
Name | Description |
value | ByteString The bytes for table to set. |
Type | Description |
BigQueryConfig.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final BigQueryConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
BigQueryConfig.Builder |
setUseTopicSchema(boolean value)
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;
Name | Description |
value | boolean The useTopicSchema to set. |
Type | Description |
BigQueryConfig.Builder | This builder for chaining. |
setWriteMetadata(boolean value)
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;
Name | Description |
value | boolean The writeMetadata to set. |
Type | Description |
BigQueryConfig.Builder | This builder for chaining. |