Class CreateDataExchangeRequest.Builder (2.41.0)

public static final class CreateDataExchangeRequest.Builder extends GeneratedMessageV3.Builder<CreateDataExchangeRequest.Builder> implements CreateDataExchangeRequestOrBuilder

Message for creating a data exchange.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateDataExchangeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateDataExchangeRequest.Builder
Overrides

build()

public CreateDataExchangeRequest build()
Returns
Type Description
CreateDataExchangeRequest

buildPartial()

public CreateDataExchangeRequest buildPartial()
Returns
Type Description
CreateDataExchangeRequest

clear()

public CreateDataExchangeRequest.Builder clear()
Returns
Type Description
CreateDataExchangeRequest.Builder
Overrides

clearDataExchange()

public CreateDataExchangeRequest.Builder clearDataExchange()

Required. The data exchange to create.

.google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDataExchangeRequest.Builder

clearDataExchangeId()

public CreateDataExchangeRequest.Builder clearDataExchangeId()

Required. The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces. Max length: 100 bytes.

string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDataExchangeRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateDataExchangeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateDataExchangeRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateDataExchangeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateDataExchangeRequest.Builder
Overrides

clearParent()

public CreateDataExchangeRequest.Builder clearParent()

Required. The parent resource path of the data exchange. e.g. projects/myproject/locations/US.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateDataExchangeRequest.Builder

This builder for chaining.

clone()

public CreateDataExchangeRequest.Builder clone()
Returns
Type Description
CreateDataExchangeRequest.Builder
Overrides

getDataExchange()

public DataExchange getDataExchange()

Required. The data exchange to create.

.google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataExchange

The dataExchange.

getDataExchangeBuilder()

public DataExchange.Builder getDataExchangeBuilder()

Required. The data exchange to create.

.google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataExchange.Builder

getDataExchangeId()

public String getDataExchangeId()

Required. The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces. Max length: 100 bytes.

string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The dataExchangeId.

getDataExchangeIdBytes()

public ByteString getDataExchangeIdBytes()

Required. The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces. Max length: 100 bytes.

string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for dataExchangeId.

getDataExchangeOrBuilder()

public DataExchangeOrBuilder getDataExchangeOrBuilder()

Required. The data exchange to create.

.google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataExchangeOrBuilder

getDefaultInstanceForType()

public CreateDataExchangeRequest getDefaultInstanceForType()
Returns
Type Description
CreateDataExchangeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent resource path of the data exchange. e.g. projects/myproject/locations/US.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource path of the data exchange. e.g. projects/myproject/locations/US.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasDataExchange()

public boolean hasDataExchange()

Required. The data exchange to create.

.google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the dataExchange field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDataExchange(DataExchange value)

public CreateDataExchangeRequest.Builder mergeDataExchange(DataExchange value)

Required. The data exchange to create.

.google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataExchange
Returns
Type Description
CreateDataExchangeRequest.Builder

mergeFrom(CreateDataExchangeRequest other)

public CreateDataExchangeRequest.Builder mergeFrom(CreateDataExchangeRequest other)
Parameter
Name Description
other CreateDataExchangeRequest
Returns
Type Description
CreateDataExchangeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateDataExchangeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateDataExchangeRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateDataExchangeRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateDataExchangeRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateDataExchangeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateDataExchangeRequest.Builder
Overrides

setDataExchange(DataExchange value)

public CreateDataExchangeRequest.Builder setDataExchange(DataExchange value)

Required. The data exchange to create.

.google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataExchange
Returns
Type Description
CreateDataExchangeRequest.Builder

setDataExchange(DataExchange.Builder builderForValue)

public CreateDataExchangeRequest.Builder setDataExchange(DataExchange.Builder builderForValue)

Required. The data exchange to create.

.google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DataExchange.Builder
Returns
Type Description
CreateDataExchangeRequest.Builder

setDataExchangeId(String value)

public CreateDataExchangeRequest.Builder setDataExchangeId(String value)

Required. The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces. Max length: 100 bytes.

string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The dataExchangeId to set.

Returns
Type Description
CreateDataExchangeRequest.Builder

This builder for chaining.

setDataExchangeIdBytes(ByteString value)

public CreateDataExchangeRequest.Builder setDataExchangeIdBytes(ByteString value)

Required. The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces. Max length: 100 bytes.

string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for dataExchangeId to set.

Returns
Type Description
CreateDataExchangeRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateDataExchangeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateDataExchangeRequest.Builder
Overrides

setParent(String value)

public CreateDataExchangeRequest.Builder setParent(String value)

Required. The parent resource path of the data exchange. e.g. projects/myproject/locations/US.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateDataExchangeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDataExchangeRequest.Builder setParentBytes(ByteString value)

Required. The parent resource path of the data exchange. e.g. projects/myproject/locations/US.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateDataExchangeRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateDataExchangeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateDataExchangeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateDataExchangeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateDataExchangeRequest.Builder
Overrides