Class IngestionDataSourceSettings.CloudStorage.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IngestionDataSourceSettings.CloudStorage.Builder>
com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, IngestionDataSourceSettings.CloudStorageOrBuilder, Cloneable
Enclosing class:
IngestionDataSourceSettings.CloudStorage

public static final class IngestionDataSourceSettings.CloudStorage.Builder extends com.google.protobuf.GeneratedMessage.Builder<IngestionDataSourceSettings.CloudStorage.Builder> implements IngestionDataSourceSettings.CloudStorageOrBuilder
 Ingestion settings for Cloud Storage.
 
Protobuf type google.pubsub.v1.IngestionDataSourceSettings.CloudStorage
  • 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<IngestionDataSourceSettings.CloudStorage.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<IngestionDataSourceSettings.CloudStorage.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<IngestionDataSourceSettings.CloudStorage.Builder>
    • getDefaultInstanceForType

      public IngestionDataSourceSettings.CloudStorage 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

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

      public IngestionDataSourceSettings.CloudStorage.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<IngestionDataSourceSettings.CloudStorage.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<IngestionDataSourceSettings.CloudStorage.Builder>
    • mergeFrom

      public IngestionDataSourceSettings.CloudStorage.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<IngestionDataSourceSettings.CloudStorage.Builder>
      Throws:
      IOException
    • getInputFormatCase

      Specified by:
      getInputFormatCase in interface IngestionDataSourceSettings.CloudStorageOrBuilder
    • clearInputFormat

    • getStateValue

      public int getStateValue()
       Output only. An output-only field that indicates the state of the Cloud
       Storage ingestion source.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface IngestionDataSourceSettings.CloudStorageOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public IngestionDataSourceSettings.CloudStorage.Builder setStateValue(int value)
       Output only. An output-only field that indicates the state of the Cloud
       Storage ingestion source.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

       Output only. An output-only field that indicates the state of the Cloud
       Storage ingestion source.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface IngestionDataSourceSettings.CloudStorageOrBuilder
      Returns:
      The state.
    • setState

       Output only. An output-only field that indicates the state of the Cloud
       Storage ingestion source.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

       Output only. An output-only field that indicates the state of the Cloud
       Storage ingestion source.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getBucket

      public String getBucket()
       Optional. Cloud Storage bucket. The bucket name must be without any
       prefix like "gs://". See the [bucket naming requirements]
       (https://cloud.google.com/storage/docs/buckets#naming).
       
      string bucket = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBucket in interface IngestionDataSourceSettings.CloudStorageOrBuilder
      Returns:
      The bucket.
    • getBucketBytes

      public com.google.protobuf.ByteString getBucketBytes()
       Optional. Cloud Storage bucket. The bucket name must be without any
       prefix like "gs://". See the [bucket naming requirements]
       (https://cloud.google.com/storage/docs/buckets#naming).
       
      string bucket = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBucketBytes in interface IngestionDataSourceSettings.CloudStorageOrBuilder
      Returns:
      The bytes for bucket.
    • setBucket

       Optional. Cloud Storage bucket. The bucket name must be without any
       prefix like "gs://". See the [bucket naming requirements]
       (https://cloud.google.com/storage/docs/buckets#naming).
       
      string bucket = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bucket to set.
      Returns:
      This builder for chaining.
    • clearBucket

       Optional. Cloud Storage bucket. The bucket name must be without any
       prefix like "gs://". See the [bucket naming requirements]
       (https://cloud.google.com/storage/docs/buckets#naming).
       
      string bucket = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setBucketBytes

      public IngestionDataSourceSettings.CloudStorage.Builder setBucketBytes(com.google.protobuf.ByteString value)
       Optional. Cloud Storage bucket. The bucket name must be without any
       prefix like "gs://". See the [bucket naming requirements]
       (https://cloud.google.com/storage/docs/buckets#naming).
       
      string bucket = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for bucket to set.
      Returns:
      This builder for chaining.
    • hasTextFormat

      public boolean hasTextFormat()
       Optional. Data from Cloud Storage will be interpreted as text.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTextFormat in interface IngestionDataSourceSettings.CloudStorageOrBuilder
      Returns:
      Whether the textFormat field is set.
    • getTextFormat

       Optional. Data from Cloud Storage will be interpreted as text.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTextFormat in interface IngestionDataSourceSettings.CloudStorageOrBuilder
      Returns:
      The textFormat.
    • setTextFormat

       Optional. Data from Cloud Storage will be interpreted as text.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setTextFormat

       Optional. Data from Cloud Storage will be interpreted as text.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTextFormat

       Optional. Data from Cloud Storage will be interpreted as text.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearTextFormat

       Optional. Data from Cloud Storage will be interpreted as text.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getTextFormatBuilder

       Optional. Data from Cloud Storage will be interpreted as text.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getTextFormatOrBuilder

       Optional. Data from Cloud Storage will be interpreted as text.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTextFormatOrBuilder in interface IngestionDataSourceSettings.CloudStorageOrBuilder
    • hasAvroFormat

      public boolean hasAvroFormat()
       Optional. Data from Cloud Storage will be interpreted in Avro format.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAvroFormat in interface IngestionDataSourceSettings.CloudStorageOrBuilder
      Returns:
      Whether the avroFormat field is set.
    • getAvroFormat

       Optional. Data from Cloud Storage will be interpreted in Avro format.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAvroFormat in interface IngestionDataSourceSettings.CloudStorageOrBuilder
      Returns:
      The avroFormat.
    • setAvroFormat

       Optional. Data from Cloud Storage will be interpreted in Avro format.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setAvroFormat

       Optional. Data from Cloud Storage will be interpreted in Avro format.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAvroFormat

       Optional. Data from Cloud Storage will be interpreted in Avro format.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearAvroFormat

       Optional. Data from Cloud Storage will be interpreted in Avro format.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getAvroFormatBuilder

       Optional. Data from Cloud Storage will be interpreted in Avro format.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getAvroFormatOrBuilder

       Optional. Data from Cloud Storage will be interpreted in Avro format.
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAvroFormatOrBuilder in interface IngestionDataSourceSettings.CloudStorageOrBuilder
    • hasPubsubAvroFormat

      public boolean hasPubsubAvroFormat()
       Optional. It will be assumed data from Cloud Storage was written via
       [Cloud Storage
       subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPubsubAvroFormat in interface IngestionDataSourceSettings.CloudStorageOrBuilder
      Returns:
      Whether the pubsubAvroFormat field is set.
    • getPubsubAvroFormat

       Optional. It will be assumed data from Cloud Storage was written via
       [Cloud Storage
       subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPubsubAvroFormat in interface IngestionDataSourceSettings.CloudStorageOrBuilder
      Returns:
      The pubsubAvroFormat.
    • setPubsubAvroFormat

       Optional. It will be assumed data from Cloud Storage was written via
       [Cloud Storage
       subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setPubsubAvroFormat

       Optional. It will be assumed data from Cloud Storage was written via
       [Cloud Storage
       subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergePubsubAvroFormat

       Optional. It will be assumed data from Cloud Storage was written via
       [Cloud Storage
       subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearPubsubAvroFormat

      public IngestionDataSourceSettings.CloudStorage.Builder clearPubsubAvroFormat()
       Optional. It will be assumed data from Cloud Storage was written via
       [Cloud Storage
       subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getPubsubAvroFormatBuilder

       Optional. It will be assumed data from Cloud Storage was written via
       [Cloud Storage
       subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getPubsubAvroFormatOrBuilder

       Optional. It will be assumed data from Cloud Storage was written via
       [Cloud Storage
       subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
       
      .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPubsubAvroFormatOrBuilder in interface IngestionDataSourceSettings.CloudStorageOrBuilder
    • hasMinimumObjectCreateTime

      public boolean hasMinimumObjectCreateTime()
       Optional. Only objects with a larger or equal creation timestamp will be
       ingested.
       
      .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMinimumObjectCreateTime in interface IngestionDataSourceSettings.CloudStorageOrBuilder
      Returns:
      Whether the minimumObjectCreateTime field is set.
    • getMinimumObjectCreateTime

      public com.google.protobuf.Timestamp getMinimumObjectCreateTime()
       Optional. Only objects with a larger or equal creation timestamp will be
       ingested.
       
      .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinimumObjectCreateTime in interface IngestionDataSourceSettings.CloudStorageOrBuilder
      Returns:
      The minimumObjectCreateTime.
    • setMinimumObjectCreateTime

      public IngestionDataSourceSettings.CloudStorage.Builder setMinimumObjectCreateTime(com.google.protobuf.Timestamp value)
       Optional. Only objects with a larger or equal creation timestamp will be
       ingested.
       
      .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setMinimumObjectCreateTime

      public IngestionDataSourceSettings.CloudStorage.Builder setMinimumObjectCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. Only objects with a larger or equal creation timestamp will be
       ingested.
       
      .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergeMinimumObjectCreateTime

      public IngestionDataSourceSettings.CloudStorage.Builder mergeMinimumObjectCreateTime(com.google.protobuf.Timestamp value)
       Optional. Only objects with a larger or equal creation timestamp will be
       ingested.
       
      .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearMinimumObjectCreateTime

      public IngestionDataSourceSettings.CloudStorage.Builder clearMinimumObjectCreateTime()
       Optional. Only objects with a larger or equal creation timestamp will be
       ingested.
       
      .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getMinimumObjectCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getMinimumObjectCreateTimeBuilder()
       Optional. Only objects with a larger or equal creation timestamp will be
       ingested.
       
      .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getMinimumObjectCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getMinimumObjectCreateTimeOrBuilder()
       Optional. Only objects with a larger or equal creation timestamp will be
       ingested.
       
      .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinimumObjectCreateTimeOrBuilder in interface IngestionDataSourceSettings.CloudStorageOrBuilder
    • getMatchGlob

      public String getMatchGlob()
       Optional. Glob pattern used to match objects that will be ingested. If
       unset, all objects will be ingested. See the [supported
       patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
       
      string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMatchGlob in interface IngestionDataSourceSettings.CloudStorageOrBuilder
      Returns:
      The matchGlob.
    • getMatchGlobBytes

      public com.google.protobuf.ByteString getMatchGlobBytes()
       Optional. Glob pattern used to match objects that will be ingested. If
       unset, all objects will be ingested. See the [supported
       patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
       
      string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMatchGlobBytes in interface IngestionDataSourceSettings.CloudStorageOrBuilder
      Returns:
      The bytes for matchGlob.
    • setMatchGlob

       Optional. Glob pattern used to match objects that will be ingested. If
       unset, all objects will be ingested. See the [supported
       patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
       
      string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The matchGlob to set.
      Returns:
      This builder for chaining.
    • clearMatchGlob

       Optional. Glob pattern used to match objects that will be ingested. If
       unset, all objects will be ingested. See the [supported
       patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
       
      string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setMatchGlobBytes

      public IngestionDataSourceSettings.CloudStorage.Builder setMatchGlobBytes(com.google.protobuf.ByteString value)
       Optional. Glob pattern used to match objects that will be ingested. If
       unset, all objects will be ingested. See the [supported
       patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
       
      string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for matchGlob to set.
      Returns:
      This builder for chaining.