Class TransferTypes.EventStream.Builder (1.29.0)

public static final class TransferTypes.EventStream.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransferTypes.EventStream build()
Returns
Type Description
TransferTypes.EventStream

buildPartial()

public TransferTypes.EventStream buildPartial()
Returns
Type Description
TransferTypes.EventStream

clear()

public TransferTypes.EventStream.Builder clear()
Returns
Type Description
TransferTypes.EventStream.Builder
Overrides

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;

Returns
Type Description
TransferTypes.EventStream.Builder

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;

Returns
Type Description
TransferTypes.EventStream.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public TransferTypes.EventStream.Builder 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
Type Description
TransferTypes.EventStream.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public TransferTypes.EventStream.Builder clone()
Returns
Type Description
TransferTypes.EventStream.Builder
Overrides

getDefaultInstanceForType()

public TransferTypes.EventStream getDefaultInstanceForType()
Returns
Type Description
TransferTypes.EventStream

getDescriptorForType()

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

getEventStreamExpirationTime()

public 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;

Returns
Type Description
Timestamp

The eventStreamExpirationTime.

getEventStreamExpirationTimeBuilder()

public 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;

Returns
Type Description
Builder

getEventStreamExpirationTimeOrBuilder()

public 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;

Returns
Type Description
TimestampOrBuilder

getEventStreamStartTime()

public 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;

Returns
Type Description
Timestamp

The eventStreamStartTime.

getEventStreamStartTimeBuilder()

public 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;

Returns
Type Description
Builder

getEventStreamStartTimeOrBuilder()

public 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;

Returns
Type Description
TimestampOrBuilder

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];

Returns
Type Description
String

The name.

getNameBytes()

public 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];

Returns
Type Description
ByteString

The bytes for name.

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;

Returns
Type Description
boolean

Whether the eventStreamExpirationTime field is set.

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;

Returns
Type Description
boolean

Whether the eventStreamStartTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEventStreamExpirationTime(Timestamp value)

public TransferTypes.EventStream.Builder mergeEventStreamExpirationTime(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;

Parameter
Name Description
value Timestamp
Returns
Type Description
TransferTypes.EventStream.Builder

mergeEventStreamStartTime(Timestamp value)

public TransferTypes.EventStream.Builder mergeEventStreamStartTime(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;

Parameter
Name Description
value Timestamp
Returns
Type Description
TransferTypes.EventStream.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(TransferTypes.EventStream other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEventStreamExpirationTime(Timestamp value)

public TransferTypes.EventStream.Builder setEventStreamExpirationTime(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;

Parameter
Name Description
value Timestamp
Returns
Type Description
TransferTypes.EventStream.Builder

setEventStreamExpirationTime(Timestamp.Builder builderForValue)

public TransferTypes.EventStream.Builder setEventStreamExpirationTime(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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TransferTypes.EventStream.Builder

setEventStreamStartTime(Timestamp value)

public TransferTypes.EventStream.Builder setEventStreamStartTime(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;

Parameter
Name Description
value Timestamp
Returns
Type Description
TransferTypes.EventStream.Builder

setEventStreamStartTime(Timestamp.Builder builderForValue)

public TransferTypes.EventStream.Builder setEventStreamStartTime(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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TransferTypes.EventStream.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
TransferTypes.EventStream.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TransferTypes.EventStream.Builder setNameBytes(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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
TransferTypes.EventStream.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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