Class SubscribeDataExchangeRequest.Builder (0.25.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SubscribeDataExchangeRequest build()
Returns
TypeDescription
SubscribeDataExchangeRequest

buildPartial()

public SubscribeDataExchangeRequest buildPartial()
Returns
TypeDescription
SubscribeDataExchangeRequest

clear()

public SubscribeDataExchangeRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
SubscribeDataExchangeRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SubscribeDataExchangeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SubscribeDataExchangeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SubscribeDataExchangeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SubscribeDataExchangeRequest.Builder
Overrides

clearSubscriberContact()

public SubscribeDataExchangeRequest.Builder clearSubscriberContact()

Email of the subscriber.

string subscriber_contact = 3;

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SubscribeDataExchangeRequest getDefaultInstanceForType()
Returns
TypeDescription
SubscribeDataExchangeRequest

getDescriptorForType()

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

The bytes for name.

getSubscriberContact()

public String getSubscriberContact()

Email of the subscriber.

string subscriber_contact = 3;

Returns
TypeDescription
String

The subscriberContact.

getSubscriberContactBytes()

public ByteString getSubscriberContactBytes()

Email of the subscriber.

string subscriber_contact = 3;

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

The bytes for subscription.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SubscribeDataExchangeRequest other)

public SubscribeDataExchangeRequest.Builder mergeFrom(SubscribeDataExchangeRequest other)
Parameter
NameDescription
otherSubscribeDataExchangeRequest
Returns
TypeDescription
SubscribeDataExchangeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SubscribeDataExchangeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The destination to set.

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

The bytes for destination to set.

Returns
TypeDescription
SubscribeDataExchangeRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

setSubscriberContact(String value)

public SubscribeDataExchangeRequest.Builder setSubscriberContact(String value)

Email of the subscriber.

string subscriber_contact = 3;

Parameter
NameDescription
valueString

The subscriberContact to set.

Returns
TypeDescription
SubscribeDataExchangeRequest.Builder

This builder for chaining.

setSubscriberContactBytes(ByteString value)

public SubscribeDataExchangeRequest.Builder setSubscriberContactBytes(ByteString value)

Email of the subscriber.

string subscriber_contact = 3;

Parameter
NameDescription
valueByteString

The bytes for subscriberContact to set.

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

The subscription to set.

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

The bytes for subscription to set.

Returns
TypeDescription
SubscribeDataExchangeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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