Class DataExchange.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataExchange.Builder>
com.google.cloud.bigquery.analyticshub.v1.DataExchange.Builder
- All Implemented Interfaces:
DataExchangeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DataExchange
public static final class DataExchange.Builder
extends com.google.protobuf.GeneratedMessage.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.DataExchange-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Required.Optional.Optional.Output only.Optional.Output only.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.intOptional.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.ByteStringgetIcon()Optional.intOutput only.booleanOptional.getName()Output only.com.google.protobuf.ByteStringOutput only.Optional.com.google.protobuf.ByteStringOptional.Optional.Optional.Optional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DataExchange other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.setDiscoveryType(DiscoveryType value) Optional.setDiscoveryTypeValue(int value) Optional.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.setDocumentation(String value) Optional.setDocumentationBytes(com.google.protobuf.ByteString value) Optional.setIcon(com.google.protobuf.ByteString value) Optional.setListingCount(int value) Output only.setLogLinkedDatasetQueryUserEmail(boolean value) Optional.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setPrimaryContact(String value) Optional.setPrimaryContactBytes(com.google.protobuf.ByteString value) Optional.Optional.setSharingEnvironmentConfig(SharingEnvironmentConfig.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DataExchange.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DataExchange.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.GeneratedMessage.Builder<DataExchange.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataExchange.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DataExchange.Builder>
-
mergeFrom
public DataExchange.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<DataExchange.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceDataExchangeOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceDataExchangeOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDisplayNamein interfaceDataExchangeOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public 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];- Specified by:
getDisplayNameBytesin interfaceDataExchangeOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
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];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDescriptionin interfaceDataExchangeOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public 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];- Specified by:
getDescriptionBytesin interfaceDataExchangeOrBuilder- Returns:
- The bytes for description.
-
setDescription
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];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setDescriptionBytes
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];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getPrimaryContactin interfaceDataExchangeOrBuilder- Returns:
- The primaryContact.
-
getPrimaryContactBytes
public 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];- Specified by:
getPrimaryContactBytesin interfaceDataExchangeOrBuilder- Returns:
- The bytes for primaryContact.
-
setPrimaryContact
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];- Parameters:
value- The primaryContact to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setPrimaryContactBytes
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];- Parameters:
value- The bytes for primaryContact to set.- Returns:
- This builder for chaining.
-
getDocumentation
Optional. Documentation describing the data exchange.
string documentation = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDocumentationin interfaceDataExchangeOrBuilder- Returns:
- The documentation.
-
getDocumentationBytes
public com.google.protobuf.ByteString getDocumentationBytes()Optional. Documentation describing the data exchange.
string documentation = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDocumentationBytesin interfaceDataExchangeOrBuilder- Returns:
- The bytes for documentation.
-
setDocumentation
Optional. Documentation describing the data exchange.
string documentation = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The documentation to set.- Returns:
- This builder for chaining.
-
clearDocumentation
Optional. Documentation describing the data exchange.
string documentation = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDocumentationBytes
Optional. Documentation describing the data exchange.
string documentation = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for documentation to set.- Returns:
- This builder for chaining.
-
getListingCount
public int getListingCount()Output only. Number of listings contained in the data exchange.
int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getListingCountin interfaceDataExchangeOrBuilder- Returns:
- The listingCount.
-
setListingCount
Output only. Number of listings contained in the data exchange.
int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The listingCount to set.- Returns:
- This builder for chaining.
-
clearListingCount
Output only. Number of listings contained in the data exchange.
int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getIcon
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];- Specified by:
getIconin interfaceDataExchangeOrBuilder- Returns:
- The icon.
-
setIcon
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];- Parameters:
value- The icon to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
hasSharingEnvironmentConfig
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];- Specified by:
hasSharingEnvironmentConfigin interfaceDataExchangeOrBuilder- Returns:
- Whether the sharingEnvironmentConfig field is set.
-
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];- Specified by:
getSharingEnvironmentConfigin interfaceDataExchangeOrBuilder- Returns:
- The sharingEnvironmentConfig.
-
setSharingEnvironmentConfig
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]; -
setSharingEnvironmentConfig
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]; -
mergeSharingEnvironmentConfig
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]; -
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]; -
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]; -
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];- Specified by:
getSharingEnvironmentConfigOrBuilderin interfaceDataExchangeOrBuilder
-
hasDiscoveryType
public 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];- Specified by:
hasDiscoveryTypein interfaceDataExchangeOrBuilder- Returns:
- Whether the discoveryType field is set.
-
getDiscoveryTypeValue
public 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];- Specified by:
getDiscoveryTypeValuein interfaceDataExchangeOrBuilder- Returns:
- The enum numeric value on the wire for discoveryType.
-
setDiscoveryTypeValue
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];- Parameters:
value- The enum numeric value on the wire for discoveryType to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDiscoveryTypein interfaceDataExchangeOrBuilder- Returns:
- The discoveryType.
-
setDiscoveryType
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];- Parameters:
value- The discoveryType to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
hasLogLinkedDatasetQueryUserEmail
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];- Specified by:
hasLogLinkedDatasetQueryUserEmailin interfaceDataExchangeOrBuilder- Returns:
- Whether the logLinkedDatasetQueryUserEmail field is set.
-
getLogLinkedDatasetQueryUserEmail
public 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];- Specified by:
getLogLinkedDatasetQueryUserEmailin interfaceDataExchangeOrBuilder- Returns:
- The logLinkedDatasetQueryUserEmail.
-
setLogLinkedDatasetQueryUserEmail
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];- Parameters:
value- The logLinkedDatasetQueryUserEmail to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-