public static final class DataExchange.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DataExchange.Builder> implements DataExchangeOrBuilder
A data exchange is a container that lets you share data. Along with the descriptive information about the data exchange, it contains listings that reference shared datasets.Protobuf type
google.cloud.bigquery.analyticshub.v1.DataExchangegetAllFields, 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<DataExchange.Builder>public DataExchange.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DataExchange.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<DataExchange.Builder>public DataExchange getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DataExchange build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DataExchange buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DataExchange.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DataExchange.Builder>public DataExchange.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<DataExchange.Builder>public DataExchange.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DataExchange.Builder>public DataExchange.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DataExchange.Builder>public DataExchange.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<DataExchange.Builder>public DataExchange.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<DataExchange.Builder>public DataExchange.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataExchange.Builder>public DataExchange.Builder mergeFrom(DataExchange other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DataExchange.Builder>public DataExchange.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<DataExchange.Builder>IOExceptionpublic String getName()
Output only. The resource name of the data exchange. e.g. `projects/myproject/locations/us/dataExchanges/123`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface DataExchangeOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The resource name of the data exchange. e.g. `projects/myproject/locations/us/dataExchanges/123`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface DataExchangeOrBuilderpublic DataExchange.Builder setName(String value)
Output only. The resource name of the data exchange. e.g. `projects/myproject/locations/us/dataExchanges/123`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public DataExchange.Builder clearName()
Output only. The resource name of the data exchange. e.g. `projects/myproject/locations/us/dataExchanges/123`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public DataExchange.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the data exchange. e.g. `projects/myproject/locations/us/dataExchanges/123`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.public String getDisplayName()
Required. Human-readable display name of the data exchange. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and must not start or end with spaces. Default value is an empty string. Max length: 63 bytes.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];getDisplayName in interface DataExchangeOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Required. Human-readable display name of the data exchange. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and must not start or end with spaces. Default value is an empty string. Max length: 63 bytes.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];getDisplayNameBytes in interface DataExchangeOrBuilderpublic DataExchange.Builder setDisplayName(String value)
Required. Human-readable display name of the data exchange. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and must not start or end with spaces. Default value is an empty string. Max length: 63 bytes.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];value - The displayName to set.public DataExchange.Builder clearDisplayName()
Required. Human-readable display name of the data exchange. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and must not start or end with spaces. Default value is an empty string. Max length: 63 bytes.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];public DataExchange.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Required. Human-readable display name of the data exchange. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and must not start or end with spaces. Default value is an empty string. Max length: 63 bytes.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for displayName to set.public String getDescription()
Optional. Description of the data exchange. The description must not contain Unicode non-characters as well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];getDescription in interface DataExchangeOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Optional. Description of the data exchange. The description must not contain Unicode non-characters as well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];getDescriptionBytes in interface DataExchangeOrBuilderpublic DataExchange.Builder setDescription(String value)
Optional. Description of the data exchange. The description must not contain Unicode non-characters as well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];value - The description to set.public DataExchange.Builder clearDescription()
Optional. Description of the data exchange. The description must not contain Unicode non-characters as well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];public DataExchange.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Optional. Description of the data exchange. The description must not contain Unicode non-characters as well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for description to set.public String getPrimaryContact()
Optional. Email or URL of the primary point of contact of the data exchange. Max Length: 1000 bytes.
string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL];getPrimaryContact in interface DataExchangeOrBuilderpublic com.google.protobuf.ByteString getPrimaryContactBytes()
Optional. Email or URL of the primary point of contact of the data exchange. Max Length: 1000 bytes.
string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL];getPrimaryContactBytes in interface DataExchangeOrBuilderpublic DataExchange.Builder setPrimaryContact(String value)
Optional. Email or URL of the primary point of contact of the data exchange. Max Length: 1000 bytes.
string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL];value - The primaryContact to set.public DataExchange.Builder clearPrimaryContact()
Optional. Email or URL of the primary point of contact of the data exchange. Max Length: 1000 bytes.
string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL];public DataExchange.Builder setPrimaryContactBytes(com.google.protobuf.ByteString value)
Optional. Email or URL of the primary point of contact of the data exchange. Max Length: 1000 bytes.
string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for primaryContact to set.public String getDocumentation()
Optional. Documentation describing the data exchange.
string documentation = 5 [(.google.api.field_behavior) = OPTIONAL];getDocumentation in interface DataExchangeOrBuilderpublic com.google.protobuf.ByteString getDocumentationBytes()
Optional. Documentation describing the data exchange.
string documentation = 5 [(.google.api.field_behavior) = OPTIONAL];getDocumentationBytes in interface DataExchangeOrBuilderpublic DataExchange.Builder setDocumentation(String value)
Optional. Documentation describing the data exchange.
string documentation = 5 [(.google.api.field_behavior) = OPTIONAL];value - The documentation to set.public DataExchange.Builder clearDocumentation()
Optional. Documentation describing the data exchange.
string documentation = 5 [(.google.api.field_behavior) = OPTIONAL];public DataExchange.Builder setDocumentationBytes(com.google.protobuf.ByteString value)
Optional. Documentation describing the data exchange.
string documentation = 5 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for documentation to set.public int getListingCount()
Output only. Number of listings contained in the data exchange.
int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];getListingCount in interface DataExchangeOrBuilderpublic DataExchange.Builder setListingCount(int value)
Output only. Number of listings contained in the data exchange.
int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The listingCount to set.public DataExchange.Builder clearListingCount()
Output only. Number of listings contained in the data exchange.
int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];public com.google.protobuf.ByteString getIcon()
Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API only performs validation on size of the encoded data. Note: For byte fields, the content of the fields are base64-encoded (which increases the size of the data by 33-36%) when using JSON on the wire.
bytes icon = 7 [(.google.api.field_behavior) = OPTIONAL];getIcon in interface DataExchangeOrBuilderpublic DataExchange.Builder setIcon(com.google.protobuf.ByteString value)
Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API only performs validation on size of the encoded data. Note: For byte fields, the content of the fields are base64-encoded (which increases the size of the data by 33-36%) when using JSON on the wire.
bytes icon = 7 [(.google.api.field_behavior) = OPTIONAL];value - The icon to set.public DataExchange.Builder clearIcon()
Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API only performs validation on size of the encoded data. Note: For byte fields, the content of the fields are base64-encoded (which increases the size of the data by 33-36%) when using JSON on the wire.
bytes icon = 7 [(.google.api.field_behavior) = OPTIONAL];public boolean hasSharingEnvironmentConfig()
Optional. Configurable data sharing environment option for a data exchange.
.google.cloud.bigquery.analyticshub.v1.SharingEnvironmentConfig sharing_environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];
hasSharingEnvironmentConfig in interface DataExchangeOrBuilderpublic SharingEnvironmentConfig getSharingEnvironmentConfig()
Optional. Configurable data sharing environment option for a data exchange.
.google.cloud.bigquery.analyticshub.v1.SharingEnvironmentConfig sharing_environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];
getSharingEnvironmentConfig in interface DataExchangeOrBuilderpublic DataExchange.Builder setSharingEnvironmentConfig(SharingEnvironmentConfig value)
Optional. Configurable data sharing environment option for a data exchange.
.google.cloud.bigquery.analyticshub.v1.SharingEnvironmentConfig sharing_environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];
public DataExchange.Builder setSharingEnvironmentConfig(SharingEnvironmentConfig.Builder builderForValue)
Optional. Configurable data sharing environment option for a data exchange.
.google.cloud.bigquery.analyticshub.v1.SharingEnvironmentConfig sharing_environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];
public DataExchange.Builder mergeSharingEnvironmentConfig(SharingEnvironmentConfig value)
Optional. Configurable data sharing environment option for a data exchange.
.google.cloud.bigquery.analyticshub.v1.SharingEnvironmentConfig sharing_environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];
public DataExchange.Builder clearSharingEnvironmentConfig()
Optional. Configurable data sharing environment option for a data exchange.
.google.cloud.bigquery.analyticshub.v1.SharingEnvironmentConfig sharing_environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];
public SharingEnvironmentConfig.Builder getSharingEnvironmentConfigBuilder()
Optional. Configurable data sharing environment option for a data exchange.
.google.cloud.bigquery.analyticshub.v1.SharingEnvironmentConfig sharing_environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];
public SharingEnvironmentConfigOrBuilder getSharingEnvironmentConfigOrBuilder()
Optional. Configurable data sharing environment option for a data exchange.
.google.cloud.bigquery.analyticshub.v1.SharingEnvironmentConfig sharing_environment_config = 8 [(.google.api.field_behavior) = OPTIONAL];
getSharingEnvironmentConfigOrBuilder in interface DataExchangeOrBuilderpublic boolean hasDiscoveryType()
Optional. Type of discovery on the discovery page for all the listings under this exchange. Updating this field also updates (overwrites) the discovery_type field for all the listings under this exchange.
optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 9 [(.google.api.field_behavior) = OPTIONAL];
hasDiscoveryType in interface DataExchangeOrBuilderpublic int getDiscoveryTypeValue()
Optional. Type of discovery on the discovery page for all the listings under this exchange. Updating this field also updates (overwrites) the discovery_type field for all the listings under this exchange.
optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 9 [(.google.api.field_behavior) = OPTIONAL];
getDiscoveryTypeValue in interface DataExchangeOrBuilderpublic DataExchange.Builder setDiscoveryTypeValue(int value)
Optional. Type of discovery on the discovery page for all the listings under this exchange. Updating this field also updates (overwrites) the discovery_type field for all the listings under this exchange.
optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 9 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for discoveryType to set.public DiscoveryType getDiscoveryType()
Optional. Type of discovery on the discovery page for all the listings under this exchange. Updating this field also updates (overwrites) the discovery_type field for all the listings under this exchange.
optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 9 [(.google.api.field_behavior) = OPTIONAL];
getDiscoveryType in interface DataExchangeOrBuilderpublic DataExchange.Builder setDiscoveryType(DiscoveryType value)
Optional. Type of discovery on the discovery page for all the listings under this exchange. Updating this field also updates (overwrites) the discovery_type field for all the listings under this exchange.
optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 9 [(.google.api.field_behavior) = OPTIONAL];
value - The discoveryType to set.public DataExchange.Builder clearDiscoveryType()
Optional. Type of discovery on the discovery page for all the listings under this exchange. Updating this field also updates (overwrites) the discovery_type field for all the listings under this exchange.
optional .google.cloud.bigquery.analyticshub.v1.DiscoveryType discovery_type = 9 [(.google.api.field_behavior) = OPTIONAL];
public boolean hasLogLinkedDatasetQueryUserEmail()
Optional. By default, false. If true, the DataExchange has an email sharing mandate enabled.
optional bool log_linked_dataset_query_user_email = 10 [(.google.api.field_behavior) = OPTIONAL];
hasLogLinkedDatasetQueryUserEmail in interface DataExchangeOrBuilderpublic boolean getLogLinkedDatasetQueryUserEmail()
Optional. By default, false. If true, the DataExchange has an email sharing mandate enabled.
optional bool log_linked_dataset_query_user_email = 10 [(.google.api.field_behavior) = OPTIONAL];
getLogLinkedDatasetQueryUserEmail in interface DataExchangeOrBuilderpublic DataExchange.Builder setLogLinkedDatasetQueryUserEmail(boolean value)
Optional. By default, false. If true, the DataExchange has an email sharing mandate enabled.
optional bool log_linked_dataset_query_user_email = 10 [(.google.api.field_behavior) = OPTIONAL];
value - The logLinkedDatasetQueryUserEmail to set.public DataExchange.Builder clearLogLinkedDatasetQueryUserEmail()
Optional. By default, false. If true, the DataExchange has an email sharing mandate enabled.
optional bool log_linked_dataset_query_user_email = 10 [(.google.api.field_behavior) = OPTIONAL];
public final DataExchange.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DataExchange.Builder>public final DataExchange.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DataExchange.Builder>Copyright © 2025 Google LLC. All rights reserved.