Class SubscribeDataExchangeRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SubscribeDataExchangeRequest.Builder>
com.google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest.Builder
All Implemented Interfaces:
SubscribeDataExchangeRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SubscribeDataExchangeRequest

public static final class SubscribeDataExchangeRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<SubscribeDataExchangeRequest.Builder> implements SubscribeDataExchangeRequestOrBuilder
 Message for subscribing to a Data Exchange.
 
Protobuf type google.cloud.bigquery.analyticshub.v1.SubscribeDataExchangeRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SubscribeDataExchangeRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SubscribeDataExchangeRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SubscribeDataExchangeRequest.Builder>
    • getDefaultInstanceForType

      public SubscribeDataExchangeRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SubscribeDataExchangeRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SubscribeDataExchangeRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SubscribeDataExchangeRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SubscribeDataExchangeRequest.Builder>
    • mergeFrom

      public SubscribeDataExchangeRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SubscribeDataExchangeRequest.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getName in interface SubscribeDataExchangeRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getNameBytes in interface SubscribeDataExchangeRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

       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) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public SubscribeDataExchangeRequest.Builder setNameBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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) = { ... }
      Specified by:
      getDestination in interface SubscribeDataExchangeRequestOrBuilder
      Returns:
      The destination.
    • getDestinationBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getDestinationBytes in interface SubscribeDataExchangeRequestOrBuilder
      Returns:
      The bytes for destination.
    • setDestination

      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) = { ... }
      Parameters:
      value - The destination to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setDestinationBytes

      public SubscribeDataExchangeRequest.Builder setDestinationBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for destination to set.
      Returns:
      This builder for chaining.
    • hasDestinationDataset

      public boolean hasDestinationDataset()
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDestinationDataset in interface SubscribeDataExchangeRequestOrBuilder
      Returns:
      Whether the destinationDataset field is set.
    • getDestinationDataset

      public DestinationDataset getDestinationDataset()
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationDataset in interface SubscribeDataExchangeRequestOrBuilder
      Returns:
      The destinationDataset.
    • setDestinationDataset

      public SubscribeDataExchangeRequest.Builder setDestinationDataset(DestinationDataset value)
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setDestinationDataset

      public SubscribeDataExchangeRequest.Builder setDestinationDataset(DestinationDataset.Builder builderForValue)
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDestinationDataset

      public SubscribeDataExchangeRequest.Builder mergeDestinationDataset(DestinationDataset value)
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearDestinationDataset

      public SubscribeDataExchangeRequest.Builder clearDestinationDataset()
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getDestinationDatasetBuilder

      public DestinationDataset.Builder getDestinationDatasetBuilder()
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getDestinationDatasetOrBuilder

      public DestinationDatasetOrBuilder getDestinationDatasetOrBuilder()
       Optional. BigQuery destination dataset to create for the subscriber.
       
      .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationDatasetOrBuilder in interface SubscribeDataExchangeRequestOrBuilder
    • getSubscription

      public String getSubscription()
       Required. Name of the subscription to create.
       e.g. `subscription1`
       
      string subscription = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSubscription in interface SubscribeDataExchangeRequestOrBuilder
      Returns:
      The subscription.
    • getSubscriptionBytes

      public com.google.protobuf.ByteString getSubscriptionBytes()
       Required. Name of the subscription to create.
       e.g. `subscription1`
       
      string subscription = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSubscriptionBytes in interface SubscribeDataExchangeRequestOrBuilder
      Returns:
      The bytes for subscription.
    • setSubscription

      public SubscribeDataExchangeRequest.Builder setSubscription(String value)
       Required. Name of the subscription to create.
       e.g. `subscription1`
       
      string subscription = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The subscription to set.
      Returns:
      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:
      This builder for chaining.
    • setSubscriptionBytes

      public SubscribeDataExchangeRequest.Builder setSubscriptionBytes(com.google.protobuf.ByteString value)
       Required. Name of the subscription to create.
       e.g. `subscription1`
       
      string subscription = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for subscription to set.
      Returns:
      This builder for chaining.
    • getSubscriberContact

      public String getSubscriberContact()
       Email of the subscriber.
       
      string subscriber_contact = 3;
      Specified by:
      getSubscriberContact in interface SubscribeDataExchangeRequestOrBuilder
      Returns:
      The subscriberContact.
    • getSubscriberContactBytes

      public com.google.protobuf.ByteString getSubscriberContactBytes()
       Email of the subscriber.
       
      string subscriber_contact = 3;
      Specified by:
      getSubscriberContactBytes in interface SubscribeDataExchangeRequestOrBuilder
      Returns:
      The bytes for subscriberContact.
    • setSubscriberContact

      public SubscribeDataExchangeRequest.Builder setSubscriberContact(String value)
       Email of the subscriber.
       
      string subscriber_contact = 3;
      Parameters:
      value - The subscriberContact to set.
      Returns:
      This builder for chaining.
    • clearSubscriberContact

      public SubscribeDataExchangeRequest.Builder clearSubscriberContact()
       Email of the subscriber.
       
      string subscriber_contact = 3;
      Returns:
      This builder for chaining.
    • setSubscriberContactBytes

      public SubscribeDataExchangeRequest.Builder setSubscriberContactBytes(com.google.protobuf.ByteString value)
       Email of the subscriber.
       
      string subscriber_contact = 3;
      Parameters:
      value - The bytes for subscriberContact to set.
      Returns:
      This builder for chaining.