Class TransferTypes.EventStream.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransferTypes.EventStream.Builder>
com.google.storagetransfer.v1.proto.TransferTypes.EventStream.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TransferTypes.EventStreamOrBuilder, Cloneable
Enclosing class:
TransferTypes.EventStream

public static final class TransferTypes.EventStream.Builder extends com.google.protobuf.GeneratedMessage.Builder<TransferTypes.EventStream.Builder> implements TransferTypes.EventStreamOrBuilder
 Specifies the Event-driven transfer options. Event-driven transfers listen to
 an event stream to transfer updated files.
 
Protobuf type google.storagetransfer.v1.EventStream
  • 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<TransferTypes.EventStream.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<TransferTypes.EventStream.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<TransferTypes.EventStream.Builder>
    • getDefaultInstanceForType

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

      public TransferTypes.EventStream build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public TransferTypes.EventStream.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<TransferTypes.EventStream.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<TransferTypes.EventStream.Builder>
    • mergeFrom

      public TransferTypes.EventStream.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<TransferTypes.EventStream.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. Specifies a unique name of the resource such as AWS SQS
       ARN in the form 'arn:aws:sqs:region:account_id:queue_name',
       or Pub/Sub subscription resource name in the form
       'projects/{project}/subscriptions/{sub}'.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface TransferTypes.EventStreamOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Specifies a unique name of the resource such as AWS SQS
       ARN in the form 'arn:aws:sqs:region:account_id:queue_name',
       or Pub/Sub subscription resource name in the form
       'projects/{project}/subscriptions/{sub}'.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface TransferTypes.EventStreamOrBuilder
      Returns:
      The bytes for name.
    • setName

      public TransferTypes.EventStream.Builder setName(String value)
       Required. Specifies a unique name of the resource such as AWS SQS
       ARN in the form 'arn:aws:sqs:region:account_id:queue_name',
       or Pub/Sub subscription resource name in the form
       'projects/{project}/subscriptions/{sub}'.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. Specifies a unique name of the resource such as AWS SQS
       ARN in the form 'arn:aws:sqs:region:account_id:queue_name',
       or Pub/Sub subscription resource name in the form
       'projects/{project}/subscriptions/{sub}'.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public TransferTypes.EventStream.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Specifies a unique name of the resource such as AWS SQS
       ARN in the form 'arn:aws:sqs:region:account_id:queue_name',
       or Pub/Sub subscription resource name in the form
       'projects/{project}/subscriptions/{sub}'.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasEventStreamStartTime

      public boolean hasEventStreamStartTime()
       Specifies the date and time that Storage Transfer Service starts
       listening for events from this stream. If no start time is specified or
       start time is in the past, Storage Transfer Service starts listening
       immediately.
       
      .google.protobuf.Timestamp event_stream_start_time = 2;
      Specified by:
      hasEventStreamStartTime in interface TransferTypes.EventStreamOrBuilder
      Returns:
      Whether the eventStreamStartTime field is set.
    • getEventStreamStartTime

      public com.google.protobuf.Timestamp getEventStreamStartTime()
       Specifies the date and time that Storage Transfer Service starts
       listening for events from this stream. If no start time is specified or
       start time is in the past, Storage Transfer Service starts listening
       immediately.
       
      .google.protobuf.Timestamp event_stream_start_time = 2;
      Specified by:
      getEventStreamStartTime in interface TransferTypes.EventStreamOrBuilder
      Returns:
      The eventStreamStartTime.
    • setEventStreamStartTime

      public TransferTypes.EventStream.Builder setEventStreamStartTime(com.google.protobuf.Timestamp value)
       Specifies the date and time that Storage Transfer Service starts
       listening for events from this stream. If no start time is specified or
       start time is in the past, Storage Transfer Service starts listening
       immediately.
       
      .google.protobuf.Timestamp event_stream_start_time = 2;
    • setEventStreamStartTime

      public TransferTypes.EventStream.Builder setEventStreamStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Specifies the date and time that Storage Transfer Service starts
       listening for events from this stream. If no start time is specified or
       start time is in the past, Storage Transfer Service starts listening
       immediately.
       
      .google.protobuf.Timestamp event_stream_start_time = 2;
    • mergeEventStreamStartTime

      public TransferTypes.EventStream.Builder mergeEventStreamStartTime(com.google.protobuf.Timestamp value)
       Specifies the date and time that Storage Transfer Service starts
       listening for events from this stream. If no start time is specified or
       start time is in the past, Storage Transfer Service starts listening
       immediately.
       
      .google.protobuf.Timestamp event_stream_start_time = 2;
    • clearEventStreamStartTime

      public TransferTypes.EventStream.Builder clearEventStreamStartTime()
       Specifies the date and time that Storage Transfer Service starts
       listening for events from this stream. If no start time is specified or
       start time is in the past, Storage Transfer Service starts listening
       immediately.
       
      .google.protobuf.Timestamp event_stream_start_time = 2;
    • getEventStreamStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEventStreamStartTimeBuilder()
       Specifies the date and time that Storage Transfer Service starts
       listening for events from this stream. If no start time is specified or
       start time is in the past, Storage Transfer Service starts listening
       immediately.
       
      .google.protobuf.Timestamp event_stream_start_time = 2;
    • getEventStreamStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEventStreamStartTimeOrBuilder()
       Specifies the date and time that Storage Transfer Service starts
       listening for events from this stream. If no start time is specified or
       start time is in the past, Storage Transfer Service starts listening
       immediately.
       
      .google.protobuf.Timestamp event_stream_start_time = 2;
      Specified by:
      getEventStreamStartTimeOrBuilder in interface TransferTypes.EventStreamOrBuilder
    • hasEventStreamExpirationTime

      public boolean hasEventStreamExpirationTime()
       Specifies the data and time at which Storage Transfer Service stops
       listening for events from this stream. After this time, any transfers in
       progress will complete, but no new transfers are initiated.
       
      .google.protobuf.Timestamp event_stream_expiration_time = 3;
      Specified by:
      hasEventStreamExpirationTime in interface TransferTypes.EventStreamOrBuilder
      Returns:
      Whether the eventStreamExpirationTime field is set.
    • getEventStreamExpirationTime

      public com.google.protobuf.Timestamp getEventStreamExpirationTime()
       Specifies the data and time at which Storage Transfer Service stops
       listening for events from this stream. After this time, any transfers in
       progress will complete, but no new transfers are initiated.
       
      .google.protobuf.Timestamp event_stream_expiration_time = 3;
      Specified by:
      getEventStreamExpirationTime in interface TransferTypes.EventStreamOrBuilder
      Returns:
      The eventStreamExpirationTime.
    • setEventStreamExpirationTime

      public TransferTypes.EventStream.Builder setEventStreamExpirationTime(com.google.protobuf.Timestamp value)
       Specifies the data and time at which Storage Transfer Service stops
       listening for events from this stream. After this time, any transfers in
       progress will complete, but no new transfers are initiated.
       
      .google.protobuf.Timestamp event_stream_expiration_time = 3;
    • setEventStreamExpirationTime

      public TransferTypes.EventStream.Builder setEventStreamExpirationTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Specifies the data and time at which Storage Transfer Service stops
       listening for events from this stream. After this time, any transfers in
       progress will complete, but no new transfers are initiated.
       
      .google.protobuf.Timestamp event_stream_expiration_time = 3;
    • mergeEventStreamExpirationTime

      public TransferTypes.EventStream.Builder mergeEventStreamExpirationTime(com.google.protobuf.Timestamp value)
       Specifies the data and time at which Storage Transfer Service stops
       listening for events from this stream. After this time, any transfers in
       progress will complete, but no new transfers are initiated.
       
      .google.protobuf.Timestamp event_stream_expiration_time = 3;
    • clearEventStreamExpirationTime

      public TransferTypes.EventStream.Builder clearEventStreamExpirationTime()
       Specifies the data and time at which Storage Transfer Service stops
       listening for events from this stream. After this time, any transfers in
       progress will complete, but no new transfers are initiated.
       
      .google.protobuf.Timestamp event_stream_expiration_time = 3;
    • getEventStreamExpirationTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEventStreamExpirationTimeBuilder()
       Specifies the data and time at which Storage Transfer Service stops
       listening for events from this stream. After this time, any transfers in
       progress will complete, but no new transfers are initiated.
       
      .google.protobuf.Timestamp event_stream_expiration_time = 3;
    • getEventStreamExpirationTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEventStreamExpirationTimeOrBuilder()
       Specifies the data and time at which Storage Transfer Service stops
       listening for events from this stream. After this time, any transfers in
       progress will complete, but no new transfers are initiated.
       
      .google.protobuf.Timestamp event_stream_expiration_time = 3;
      Specified by:
      getEventStreamExpirationTimeOrBuilder in interface TransferTypes.EventStreamOrBuilder