public static final class BigQueryConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BigQueryConfig.Builder> implements BigQueryConfigOrBuilder
Configuration for a BigQuery subscription.Protobuf type
google.cloud.bigquery.analyticshub.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()
Optional.
|
BigQueryConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BigQueryConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BigQueryConfig.Builder |
clearServiceAccountEmail()
Optional.
|
BigQueryConfig.Builder |
clearTable()
Optional.
|
BigQueryConfig.Builder |
clearUseTableSchema()
Optional.
|
BigQueryConfig.Builder |
clearUseTopicSchema()
Optional.
|
BigQueryConfig.Builder |
clearWriteMetadata()
Optional.
|
BigQueryConfig.Builder |
clone() |
BigQueryConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDropUnknownFields()
Optional.
|
String |
getServiceAccountEmail()
Optional.
|
com.google.protobuf.ByteString |
getServiceAccountEmailBytes()
Optional.
|
String |
getTable()
Optional.
|
com.google.protobuf.ByteString |
getTableBytes()
Optional.
|
boolean |
getUseTableSchema()
Optional.
|
boolean |
getUseTopicSchema()
Optional.
|
boolean |
getWriteMetadata()
Optional.
|
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)
Optional.
|
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 |
setServiceAccountEmail(String value)
Optional.
|
BigQueryConfig.Builder |
setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
Optional.
|
BigQueryConfig.Builder |
setTable(String value)
Optional.
|
BigQueryConfig.Builder |
setTableBytes(com.google.protobuf.ByteString value)
Optional.
|
BigQueryConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BigQueryConfig.Builder |
setUseTableSchema(boolean value)
Optional.
|
BigQueryConfig.Builder |
setUseTopicSchema(boolean value)
Optional.
|
BigQueryConfig.Builder |
setWriteMetadata(boolean value)
Optional.
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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()
Optional. The name of the table to which to write data, of the form
{projectId}.{datasetId}.{tableId}
string table = 1 [(.google.api.field_behavior) = OPTIONAL];getTable in interface BigQueryConfigOrBuilderpublic com.google.protobuf.ByteString getTableBytes()
Optional. The name of the table to which to write data, of the form
{projectId}.{datasetId}.{tableId}
string table = 1 [(.google.api.field_behavior) = OPTIONAL];getTableBytes in interface BigQueryConfigOrBuilderpublic BigQueryConfig.Builder setTable(String value)
Optional. The name of the table to which to write data, of the form
{projectId}.{datasetId}.{tableId}
string table = 1 [(.google.api.field_behavior) = OPTIONAL];value - The table to set.public BigQueryConfig.Builder clearTable()
Optional. The name of the table to which to write data, of the form
{projectId}.{datasetId}.{tableId}
string table = 1 [(.google.api.field_behavior) = OPTIONAL];public BigQueryConfig.Builder setTableBytes(com.google.protobuf.ByteString value)
Optional. The name of the table to which to write data, of the form
{projectId}.{datasetId}.{tableId}
string table = 1 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for table to set.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];getUseTopicSchema in interface BigQueryConfigOrBuilderpublic BigQueryConfig.Builder setUseTopicSchema(boolean value)
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];value - The useTopicSchema to set.public BigQueryConfig.Builder 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];public boolean getWriteMetadata()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];getWriteMetadata in interface BigQueryConfigOrBuilderpublic BigQueryConfig.Builder setWriteMetadata(boolean value)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];value - The writeMetadata to set.public BigQueryConfig.Builder clearWriteMetadata()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];public boolean getDropUnknownFields()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];getDropUnknownFields in interface BigQueryConfigOrBuilderpublic BigQueryConfig.Builder setDropUnknownFields(boolean value)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];value - The dropUnknownFields to set.public BigQueryConfig.Builder clearDropUnknownFields()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];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];getUseTableSchema in interface BigQueryConfigOrBuilderpublic BigQueryConfig.Builder setUseTableSchema(boolean value)
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];value - The useTableSchema to set.public BigQueryConfig.Builder 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];public String getServiceAccountEmail()
Optional. The service account to use to write to BigQuery. The subscription
creator or updater that specifies this field must have
`iam.serviceAccounts.actAs` permission on the service account. If not
specified, the Pub/Sub [service
agent](https://cloud.google.com/iam/docs/service-agents),
service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL];getServiceAccountEmail in interface BigQueryConfigOrBuilderpublic com.google.protobuf.ByteString getServiceAccountEmailBytes()
Optional. The service account to use to write to BigQuery. The subscription
creator or updater that specifies this field must have
`iam.serviceAccounts.actAs` permission on the service account. If not
specified, the Pub/Sub [service
agent](https://cloud.google.com/iam/docs/service-agents),
service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL];getServiceAccountEmailBytes in interface BigQueryConfigOrBuilderpublic BigQueryConfig.Builder setServiceAccountEmail(String value)
Optional. The service account to use to write to BigQuery. The subscription
creator or updater that specifies this field must have
`iam.serviceAccounts.actAs` permission on the service account. If not
specified, the Pub/Sub [service
agent](https://cloud.google.com/iam/docs/service-agents),
service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL];value - The serviceAccountEmail to set.public BigQueryConfig.Builder clearServiceAccountEmail()
Optional. The service account to use to write to BigQuery. The subscription
creator or updater that specifies this field must have
`iam.serviceAccounts.actAs` permission on the service account. If not
specified, the Pub/Sub [service
agent](https://cloud.google.com/iam/docs/service-agents),
service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL];public BigQueryConfig.Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
Optional. The service account to use to write to BigQuery. The subscription
creator or updater that specifies this field must have
`iam.serviceAccounts.actAs` permission on the service account. If not
specified, the Pub/Sub [service
agent](https://cloud.google.com/iam/docs/service-agents),
service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for serviceAccountEmail to set.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 © 2025 Google LLC. All rights reserved.