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 typegoogle.pubsub.v1.BigQueryConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BigQueryConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BigQueryConfigbuild()BigQueryConfigbuildPartial()BigQueryConfig.Builderclear()BigQueryConfig.BuilderclearDropUnknownFields()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.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BigQueryConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BigQueryConfig.BuilderclearState()Output only.BigQueryConfig.BuilderclearTable()The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}BigQueryConfig.BuilderclearUseTopicSchema()When true, use the topic's schema as the columns to write to in BigQuery, if it exists.BigQueryConfig.BuilderclearWriteMetadata()When true, write the subscription name, message_id, publish_time, attributes, and ordering_key to additional columns in the table.BigQueryConfig.Builderclone()BigQueryConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetDropUnknownFields()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.StategetState()Output only.intgetStateValue()Output only.StringgetTable()The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}com.google.protobuf.ByteStringgetTableBytes()The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}booleangetUseTopicSchema()When true, use the topic's schema as the columns to write to in BigQuery, if it exists.booleangetWriteMetadata()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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BigQueryConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BigQueryConfig.BuildermergeFrom(com.google.protobuf.Message other)BigQueryConfig.BuildermergeFrom(BigQueryConfig other)BigQueryConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BigQueryConfig.BuildersetDropUnknownFields(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.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BigQueryConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BigQueryConfig.BuildersetState(BigQueryConfig.State value)Output only.BigQueryConfig.BuildersetStateValue(int value)Output only.BigQueryConfig.BuildersetTable(String value)The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}BigQueryConfig.BuildersetTableBytes(com.google.protobuf.ByteString value)The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}BigQueryConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BigQueryConfig.BuildersetUseTopicSchema(boolean value)When true, use the topic's schema as the columns to write to in BigQuery, if it exists.BigQueryConfig.BuildersetWriteMetadata(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, internalGetMutableMapField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
clear
public BigQueryConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
getDefaultInstanceForType
public BigQueryConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BigQueryConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BigQueryConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BigQueryConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
setField
public BigQueryConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
clearField
public BigQueryConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
clearOneof
public BigQueryConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
setRepeatedField
public BigQueryConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
addRepeatedField
public BigQueryConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
mergeFrom
public BigQueryConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BigQueryConfig.Builder>
-
mergeFrom
public BigQueryConfig.Builder mergeFrom(BigQueryConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BigQueryConfig.Builder>- Throws:
IOException
-
getTable
public String getTable()
The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}string table = 1;- Specified by:
getTablein 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:
getTableBytesin interfaceBigQueryConfigOrBuilder- Returns:
- The bytes for table.
-
setTable
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;- Parameters:
value- The table to set.- Returns:
- 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;- Returns:
- This builder for chaining.
-
setTableBytes
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;- Parameters:
value- The bytes for table to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getUseTopicSchemain interfaceBigQueryConfigOrBuilder- Returns:
- The useTopicSchema.
-
setUseTopicSchema
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;- Parameters:
value- The useTopicSchema to set.- Returns:
- 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;- 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:
getWriteMetadatain interfaceBigQueryConfigOrBuilder- Returns:
- The writeMetadata.
-
setWriteMetadata
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;- Parameters:
value- The writeMetadata to set.- Returns:
- 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;- 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:
getDropUnknownFieldsin interfaceBigQueryConfigOrBuilder- Returns:
- The dropUnknownFields.
-
setDropUnknownFields
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;- Parameters:
value- The dropUnknownFields to set.- Returns:
- This builder for chaining.
-
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;- 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:
getStateValuein interfaceBigQueryConfigOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getStatein interfaceBigQueryConfigOrBuilder- Returns:
- The state.
-
setState
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];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setUnknownFields
public final BigQueryConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
mergeUnknownFields
public final BigQueryConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder>
-
-