Class SubscribeDataExchangeRequest.Builder (0.45.0)

public static final class SubscribeDataExchangeRequest.Builder extends GeneratedMessageV3.Builder<SubscribeDataExchangeRequest.Builder> implements SubscribeDataExchangeRequestOrBuilder

Message for subscribing to a Data Exchange.

Protobuf type google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SubscribeDataExchangeRequest build()
Returns
Type Description
SubscribeDataExchangeRequest

buildPartial()

public SubscribeDataExchangeRequest buildPartial()
Returns
Type Description
SubscribeDataExchangeRequest

clear()

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

clearDestination()

public SubscribeDataExchangeRequest.Builder clearDestination()

Required. The parent resource path of the Subscription. e.g. projects/subscriberproject/locations/US

string destination = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
SubscribeDataExchangeRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public SubscribeDataExchangeRequest.Builder clearName()

Required. Resource name of the Data Exchange. e.g. projects/publisherproject/locations/US/dataExchanges/123

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

Returns
Type Description
SubscribeDataExchangeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubscriberContact()

public SubscribeDataExchangeRequest.Builder clearSubscriberContact()

Email of the subscriber.

string subscriber_contact = 3;

Returns
Type Description
SubscribeDataExchangeRequest.Builder

This builder for chaining.

clearSubscription()

public SubscribeDataExchangeRequest.Builder clearSubscription()

Required. Name of the subscription to create. e.g. subscription1

string subscription = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SubscribeDataExchangeRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SubscribeDataExchangeRequest getDefaultInstanceForType()
Returns
Type Description
SubscribeDataExchangeRequest

getDescriptorForType()

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

getDestination()

public String getDestination()

Required. The parent resource path of the Subscription. e.g. projects/subscriberproject/locations/US

string destination = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The destination.

getDestinationBytes()

public ByteString getDestinationBytes()

Required. The parent resource path of the Subscription. e.g. projects/subscriberproject/locations/US

string destination = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for destination.

getName()

public String getName()

Required. Resource name of the Data Exchange. e.g. projects/publisherproject/locations/US/dataExchanges/123

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Resource name of the Data Exchange. e.g. projects/publisherproject/locations/US/dataExchanges/123

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

Returns
Type Description
ByteString

The bytes for name.

getSubscriberContact()

public String getSubscriberContact()

Email of the subscriber.

string subscriber_contact = 3;

Returns
Type Description
String

The subscriberContact.

getSubscriberContactBytes()

public ByteString getSubscriberContactBytes()

Email of the subscriber.

string subscriber_contact = 3;

Returns
Type Description
ByteString

The bytes for subscriberContact.

getSubscription()

public String getSubscription()

Required. Name of the subscription to create. e.g. subscription1

string subscription = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The subscription.

getSubscriptionBytes()

public ByteString getSubscriptionBytes()

Required. Name of the subscription to create. e.g. subscription1

string subscription = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for subscription.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SubscribeDataExchangeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDestination(String value)

public SubscribeDataExchangeRequest.Builder setDestination(String value)

Required. The parent resource path of the Subscription. e.g. projects/subscriberproject/locations/US

string destination = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The destination to set.

Returns
Type Description
SubscribeDataExchangeRequest.Builder

This builder for chaining.

setDestinationBytes(ByteString value)

public SubscribeDataExchangeRequest.Builder setDestinationBytes(ByteString value)

Required. The parent resource path of the Subscription. e.g. projects/subscriberproject/locations/US

string destination = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for destination to set.

Returns
Type Description
SubscribeDataExchangeRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public SubscribeDataExchangeRequest.Builder setName(String value)

Required. Resource name of the Data Exchange. e.g. projects/publisherproject/locations/US/dataExchanges/123

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SubscribeDataExchangeRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SubscribeDataExchangeRequest.Builder setNameBytes(ByteString value)

Required. Resource name of the Data Exchange. e.g. projects/publisherproject/locations/US/dataExchanges/123

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SubscribeDataExchangeRequest.Builder

This builder for chaining.

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

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

setSubscriberContact(String value)

public SubscribeDataExchangeRequest.Builder setSubscriberContact(String value)

Email of the subscriber.

string subscriber_contact = 3;

Parameter
Name Description
value String

The subscriberContact to set.

Returns
Type Description
SubscribeDataExchangeRequest.Builder

This builder for chaining.

setSubscriberContactBytes(ByteString value)

public SubscribeDataExchangeRequest.Builder setSubscriberContactBytes(ByteString value)

Email of the subscriber.

string subscriber_contact = 3;

Parameter
Name Description
value ByteString

The bytes for subscriberContact to set.

Returns
Type Description
SubscribeDataExchangeRequest.Builder

This builder for chaining.

setSubscription(String value)

public SubscribeDataExchangeRequest.Builder setSubscription(String value)

Required. Name of the subscription to create. e.g. subscription1

string subscription = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The subscription to set.

Returns
Type Description
SubscribeDataExchangeRequest.Builder

This builder for chaining.

setSubscriptionBytes(ByteString value)

public SubscribeDataExchangeRequest.Builder setSubscriptionBytes(ByteString value)

Required. Name of the subscription to create. e.g. subscription1

string subscription = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for subscription to set.

Returns
Type Description
SubscribeDataExchangeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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