Class CreateDataExchangeRequest.Builder (0.37.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.analyticshub.v1.CreateDataExchangeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateDataExchangeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateDataExchangeRequest.Builder
Overrides

build()

public CreateDataExchangeRequest build()
Returns
TypeDescription
CreateDataExchangeRequest

buildPartial()

public CreateDataExchangeRequest buildPartial()
Returns
TypeDescription
CreateDataExchangeRequest

clear()

public CreateDataExchangeRequest.Builder clear()
Returns
TypeDescription
CreateDataExchangeRequest.Builder
Overrides

clearDataExchange()

public CreateDataExchangeRequest.Builder clearDataExchange()

Required. The data exchange to create.

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

Returns
TypeDescription
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
TypeDescription
CreateDataExchangeRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateDataExchangeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateDataExchangeRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateDataExchangeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateDataExchangeRequest.Builder

This builder for chaining.

clone()

public CreateDataExchangeRequest.Builder clone()
Returns
TypeDescription
CreateDataExchangeRequest.Builder
Overrides

getDataExchange()

public DataExchange getDataExchange()

Required. The data exchange to create.

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

Returns
TypeDescription
DataExchange

The dataExchange.

getDataExchangeBuilder()

public DataExchange.Builder getDataExchangeBuilder()

Required. The data exchange to create.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for dataExchangeId.

getDataExchangeOrBuilder()

public DataExchangeOrBuilder getDataExchangeOrBuilder()

Required. The data exchange to create.

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

Returns
TypeDescription
DataExchangeOrBuilder

getDefaultInstanceForType()

public CreateDataExchangeRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateDataExchangeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

hasDataExchange()

public boolean hasDataExchange()

Required. The data exchange to create.

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

Returns
TypeDescription
boolean

Whether the dataExchange field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDataExchange(DataExchange value)

public CreateDataExchangeRequest.Builder mergeDataExchange(DataExchange value)

Required. The data exchange to create.

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

Parameter
NameDescription
valueDataExchange
Returns
TypeDescription
CreateDataExchangeRequest.Builder

mergeFrom(CreateDataExchangeRequest other)

public CreateDataExchangeRequest.Builder mergeFrom(CreateDataExchangeRequest other)
Parameter
NameDescription
otherCreateDataExchangeRequest
Returns
TypeDescription
CreateDataExchangeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateDataExchangeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDataExchangeRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateDataExchangeRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateDataExchangeRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateDataExchangeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateDataExchangeRequest.Builder
Overrides

setDataExchange(DataExchange value)

public CreateDataExchangeRequest.Builder setDataExchange(DataExchange value)

Required. The data exchange to create.

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

Parameter
NameDescription
valueDataExchange
Returns
TypeDescription
CreateDataExchangeRequest.Builder

setDataExchange(DataExchange.Builder builderForValue)

public CreateDataExchangeRequest.Builder setDataExchange(DataExchange.Builder builderForValue)

Required. The data exchange to create.

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

Parameter
NameDescription
builderForValueDataExchange.Builder
Returns
TypeDescription
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
NameDescription
valueString

The dataExchangeId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for dataExchangeId to set.

Returns
TypeDescription
CreateDataExchangeRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateDataExchangeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateDataExchangeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateDataExchangeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateDataExchangeRequest.Builder
Overrides