Package com.google.pubsub.v1
Class BigQueryConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
com.google.pubsub.v1.BigQueryConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,BigQueryConfigOrBuilder
,Cloneable
- Enclosing class:
- BigQueryConfig
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
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
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.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}Optional.Optional.When true, write the subscription name, message_id, publish_time, attributes, and ordering_key to additional columns in the table.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
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.getState()
Output only.int
Output only.getTable()
The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}com.google.protobuf.ByteString
The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}boolean
Optional.boolean
Optional.boolean
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
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(BigQueryConfig other) final BigQueryConfig.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setState
(BigQueryConfig.State value) Output only.setStateValue
(int value) Output only.The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}setTableBytes
(com.google.protobuf.ByteString value) The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}final BigQueryConfig.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setUseTableSchema
(boolean value) Optional.setUseTopicSchema
(boolean value) Optional.setWriteMetadata
(boolean value) When true, write the subscription name, message_id, publish_time, attributes, and ordering_key to additional columns in the table.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
setField
public BigQueryConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
setRepeatedField
public BigQueryConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
addRepeatedField
public BigQueryConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BigQueryConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
mergeFrom
public BigQueryConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BigQueryConfig.Builder>
- Throws:
IOException
-
getTable
The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}
string table = 1;
- Specified by:
getTable
in interfaceBigQueryConfigOrBuilder
- Returns:
- The table.
-
getTableBytes
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;
- Specified by:
getTableBytes
in interfaceBigQueryConfigOrBuilder
- Returns:
- The bytes for table.
-
setTable
The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}
string table = 1;
- Parameters:
value
- The table to set.- Returns:
- This builder for chaining.
-
clearTable
The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}
string table = 1;
- Returns:
- This builder for chaining.
-
setTableBytes
The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}
string table = 1;
- Parameters:
value
- The bytes for table to set.- Returns:
- This builder for chaining.
-
getUseTopicSchema
public boolean getUseTopicSchema()Optional. When true, use the topic's schema as the columns to write to in BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be enabled at the same time.
bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getUseTopicSchema
in interfaceBigQueryConfigOrBuilder
- Returns:
- The useTopicSchema.
-
setUseTopicSchema
Optional. When true, use the topic's schema as the columns to write to in BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be enabled at the same time.
bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The useTopicSchema to set.- Returns:
- This builder for chaining.
-
clearUseTopicSchema
Optional. When true, use the topic's schema as the columns to write to in BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be enabled at the same time.
bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getWriteMetadata
in interfaceBigQueryConfigOrBuilder
- Returns:
- The writeMetadata.
-
setWriteMetadata
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;
- Parameters:
value
- The writeMetadata to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getDropUnknownFields
in interfaceBigQueryConfigOrBuilder
- Returns:
- The dropUnknownFields.
-
setDropUnknownFields
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;
- Parameters:
value
- The dropUnknownFields to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
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];
- Specified by:
getStateValue
in interfaceBigQueryConfigOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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];
- Parameters:
value
- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getState
in interfaceBigQueryConfigOrBuilder
- Returns:
- The state.
-
setState
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];
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
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];
- Returns:
- This builder for chaining.
-
getUseTableSchema
public boolean getUseTableSchema()Optional. When true, use the BigQuery table's schema as the columns to write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be enabled at the same time.
bool use_table_schema = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getUseTableSchema
in interfaceBigQueryConfigOrBuilder
- Returns:
- The useTableSchema.
-
setUseTableSchema
Optional. When true, use the BigQuery table's schema as the columns to write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be enabled at the same time.
bool use_table_schema = 6 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The useTableSchema to set.- Returns:
- This builder for chaining.
-
clearUseTableSchema
Optional. When true, use the BigQuery table's schema as the columns to write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be enabled at the same time.
bool use_table_schema = 6 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final BigQueryConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
mergeUnknownFields
public final BigQueryConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-