Class SlackSource.SlackChannels.SlackChannel.Builder (3.50.0)

public static final class SlackSource.SlackChannels.SlackChannel.Builder extends GeneratedMessageV3.Builder<SlackSource.SlackChannels.SlackChannel.Builder> implements SlackSource.SlackChannels.SlackChannelOrBuilder

SlackChannel contains the Slack channel ID and the time range to import.

Protobuf type google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SlackSource.SlackChannels.SlackChannel.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder
Overrides

build()

public SlackSource.SlackChannels.SlackChannel build()
Returns
Type Description
SlackSource.SlackChannels.SlackChannel

buildPartial()

public SlackSource.SlackChannels.SlackChannel buildPartial()
Returns
Type Description
SlackSource.SlackChannels.SlackChannel

clear()

public SlackSource.SlackChannels.SlackChannel.Builder clear()
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder
Overrides

clearChannelId()

public SlackSource.SlackChannels.SlackChannel.Builder clearChannelId()

Required. The Slack channel ID.

string channel_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

This builder for chaining.

clearEndTime()

public SlackSource.SlackChannels.SlackChannel.Builder clearEndTime()

Optional. The ending timestamp for messages to import.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

clearField(Descriptors.FieldDescriptor field)

public SlackSource.SlackChannels.SlackChannel.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SlackSource.SlackChannels.SlackChannel.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder
Overrides

clearStartTime()

public SlackSource.SlackChannels.SlackChannel.Builder clearStartTime()

Optional. The starting timestamp for messages to import.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

clone()

public SlackSource.SlackChannels.SlackChannel.Builder clone()
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder
Overrides

getChannelId()

public String getChannelId()

Required. The Slack channel ID.

string channel_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The channelId.

getChannelIdBytes()

public ByteString getChannelIdBytes()

Required. The Slack channel ID.

string channel_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for channelId.

getDefaultInstanceForType()

public SlackSource.SlackChannels.SlackChannel getDefaultInstanceForType()
Returns
Type Description
SlackSource.SlackChannels.SlackChannel

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

Optional. The ending timestamp for messages to import.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Optional. The ending timestamp for messages to import.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Optional. The ending timestamp for messages to import.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getStartTime()

public Timestamp getStartTime()

Optional. The starting timestamp for messages to import.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Optional. The starting timestamp for messages to import.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Optional. The starting timestamp for messages to import.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

Optional. The ending timestamp for messages to import.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Optional. The starting timestamp for messages to import.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public SlackSource.SlackChannels.SlackChannel.Builder mergeEndTime(Timestamp value)

Optional. The ending timestamp for messages to import.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

mergeFrom(SlackSource.SlackChannels.SlackChannel other)

public SlackSource.SlackChannels.SlackChannel.Builder mergeFrom(SlackSource.SlackChannels.SlackChannel other)
Parameter
Name Description
other SlackSource.SlackChannels.SlackChannel
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SlackSource.SlackChannels.SlackChannel.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SlackSource.SlackChannels.SlackChannel.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder
Overrides

mergeStartTime(Timestamp value)

public SlackSource.SlackChannels.SlackChannel.Builder mergeStartTime(Timestamp value)

Optional. The starting timestamp for messages to import.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SlackSource.SlackChannels.SlackChannel.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder
Overrides

setChannelId(String value)

public SlackSource.SlackChannels.SlackChannel.Builder setChannelId(String value)

Required. The Slack channel ID.

string channel_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The channelId to set.

Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

This builder for chaining.

setChannelIdBytes(ByteString value)

public SlackSource.SlackChannels.SlackChannel.Builder setChannelIdBytes(ByteString value)

Required. The Slack channel ID.

string channel_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for channelId to set.

Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

This builder for chaining.

setEndTime(Timestamp value)

public SlackSource.SlackChannels.SlackChannel.Builder setEndTime(Timestamp value)

Optional. The ending timestamp for messages to import.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

setEndTime(Timestamp.Builder builderForValue)

public SlackSource.SlackChannels.SlackChannel.Builder setEndTime(Timestamp.Builder builderForValue)

Optional. The ending timestamp for messages to import.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SlackSource.SlackChannels.SlackChannel.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder
Overrides

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

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

setStartTime(Timestamp value)

public SlackSource.SlackChannels.SlackChannel.Builder setStartTime(Timestamp value)

Optional. The starting timestamp for messages to import.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

setStartTime(Timestamp.Builder builderForValue)

public SlackSource.SlackChannels.SlackChannel.Builder setStartTime(Timestamp.Builder builderForValue)

Optional. The starting timestamp for messages to import.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SlackSource.SlackChannels.SlackChannel.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder
Overrides