Class SlackSource.SlackChannels.Builder (3.50.0)

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

SlackChannels contains the Slack channels and corresponding access token.

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

Static Methods

getDescriptor()

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

Methods

addAllChannels(Iterable<? extends SlackSource.SlackChannels.SlackChannel> values)

public SlackSource.SlackChannels.Builder addAllChannels(Iterable<? extends SlackSource.SlackChannels.SlackChannel> values)

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel>
Returns
Type Description
SlackSource.SlackChannels.Builder

addChannels(SlackSource.SlackChannels.SlackChannel value)

public SlackSource.SlackChannels.Builder addChannels(SlackSource.SlackChannels.SlackChannel value)

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

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

addChannels(SlackSource.SlackChannels.SlackChannel.Builder builderForValue)

public SlackSource.SlackChannels.Builder addChannels(SlackSource.SlackChannels.SlackChannel.Builder builderForValue)

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

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

addChannels(int index, SlackSource.SlackChannels.SlackChannel value)

public SlackSource.SlackChannels.Builder addChannels(int index, SlackSource.SlackChannels.SlackChannel value)

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value SlackSource.SlackChannels.SlackChannel
Returns
Type Description
SlackSource.SlackChannels.Builder

addChannels(int index, SlackSource.SlackChannels.SlackChannel.Builder builderForValue)

public SlackSource.SlackChannels.Builder addChannels(int index, SlackSource.SlackChannels.SlackChannel.Builder builderForValue)

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue SlackSource.SlackChannels.SlackChannel.Builder
Returns
Type Description
SlackSource.SlackChannels.Builder

addChannelsBuilder()

public SlackSource.SlackChannels.SlackChannel.Builder addChannelsBuilder()

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

addChannelsBuilder(int index)

public SlackSource.SlackChannels.SlackChannel.Builder addChannelsBuilder(int index)

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearApiKeyConfig()

public SlackSource.SlackChannels.Builder clearApiKeyConfig()

Required. The SecretManager secret version resource name (e.g. projects/{project}/secrets/{secret}/versions/{version}) storing the Slack channel access token that has access to the slack channel IDs. See: https://api.slack.com/tutorials/tracks/getting-a-token.

.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SlackSource.SlackChannels.Builder

clearChannels()

public SlackSource.SlackChannels.Builder clearChannels()

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SlackSource.SlackChannels.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getApiKeyConfig()

public ApiAuth.ApiKeyConfig getApiKeyConfig()

Required. The SecretManager secret version resource name (e.g. projects/{project}/secrets/{secret}/versions/{version}) storing the Slack channel access token that has access to the slack channel IDs. See: https://api.slack.com/tutorials/tracks/getting-a-token.

.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiAuth.ApiKeyConfig

The apiKeyConfig.

getApiKeyConfigBuilder()

public ApiAuth.ApiKeyConfig.Builder getApiKeyConfigBuilder()

Required. The SecretManager secret version resource name (e.g. projects/{project}/secrets/{secret}/versions/{version}) storing the Slack channel access token that has access to the slack channel IDs. See: https://api.slack.com/tutorials/tracks/getting-a-token.

.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiAuth.ApiKeyConfig.Builder

getApiKeyConfigOrBuilder()

public ApiAuth.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder()

Required. The SecretManager secret version resource name (e.g. projects/{project}/secrets/{secret}/versions/{version}) storing the Slack channel access token that has access to the slack channel IDs. See: https://api.slack.com/tutorials/tracks/getting-a-token.

.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiAuth.ApiKeyConfigOrBuilder

getChannels(int index)

public SlackSource.SlackChannels.SlackChannel getChannels(int index)

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SlackSource.SlackChannels.SlackChannel

getChannelsBuilder(int index)

public SlackSource.SlackChannels.SlackChannel.Builder getChannelsBuilder(int index)

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SlackSource.SlackChannels.SlackChannel.Builder

getChannelsBuilderList()

public List<SlackSource.SlackChannels.SlackChannel.Builder> getChannelsBuilderList()

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getChannelsCount()

public int getChannelsCount()

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getChannelsList()

public List<SlackSource.SlackChannels.SlackChannel> getChannelsList()

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<SlackChannel>

getChannelsOrBuilder(int index)

public SlackSource.SlackChannels.SlackChannelOrBuilder getChannelsOrBuilder(int index)

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SlackSource.SlackChannels.SlackChannelOrBuilder

getChannelsOrBuilderList()

public List<? extends SlackSource.SlackChannels.SlackChannelOrBuilder> getChannelsOrBuilderList()

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannelOrBuilder>

getDefaultInstanceForType()

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

getDescriptorForType()

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

hasApiKeyConfig()

public boolean hasApiKeyConfig()

Required. The SecretManager secret version resource name (e.g. projects/{project}/secrets/{secret}/versions/{version}) storing the Slack channel access token that has access to the slack channel IDs. See: https://api.slack.com/tutorials/tracks/getting-a-token.

.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the apiKeyConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApiKeyConfig(ApiAuth.ApiKeyConfig value)

public SlackSource.SlackChannels.Builder mergeApiKeyConfig(ApiAuth.ApiKeyConfig value)

Required. The SecretManager secret version resource name (e.g. projects/{project}/secrets/{secret}/versions/{version}) storing the Slack channel access token that has access to the slack channel IDs. See: https://api.slack.com/tutorials/tracks/getting-a-token.

.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ApiAuth.ApiKeyConfig
Returns
Type Description
SlackSource.SlackChannels.Builder

mergeFrom(SlackSource.SlackChannels other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeChannels(int index)

public SlackSource.SlackChannels.Builder removeChannels(int index)

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SlackSource.SlackChannels.Builder

setApiKeyConfig(ApiAuth.ApiKeyConfig value)

public SlackSource.SlackChannels.Builder setApiKeyConfig(ApiAuth.ApiKeyConfig value)

Required. The SecretManager secret version resource name (e.g. projects/{project}/secrets/{secret}/versions/{version}) storing the Slack channel access token that has access to the slack channel IDs. See: https://api.slack.com/tutorials/tracks/getting-a-token.

.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ApiAuth.ApiKeyConfig
Returns
Type Description
SlackSource.SlackChannels.Builder

setApiKeyConfig(ApiAuth.ApiKeyConfig.Builder builderForValue)

public SlackSource.SlackChannels.Builder setApiKeyConfig(ApiAuth.ApiKeyConfig.Builder builderForValue)

Required. The SecretManager secret version resource name (e.g. projects/{project}/secrets/{secret}/versions/{version}) storing the Slack channel access token that has access to the slack channel IDs. See: https://api.slack.com/tutorials/tracks/getting-a-token.

.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ApiAuth.ApiKeyConfig.Builder
Returns
Type Description
SlackSource.SlackChannels.Builder

setChannels(int index, SlackSource.SlackChannels.SlackChannel value)

public SlackSource.SlackChannels.Builder setChannels(int index, SlackSource.SlackChannels.SlackChannel value)

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value SlackSource.SlackChannels.SlackChannel
Returns
Type Description
SlackSource.SlackChannels.Builder

setChannels(int index, SlackSource.SlackChannels.SlackChannel.Builder builderForValue)

public SlackSource.SlackChannels.Builder setChannels(int index, SlackSource.SlackChannels.SlackChannel.Builder builderForValue)

Required. The Slack channel IDs.

repeated .google.cloud.aiplatform.v1beta1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue SlackSource.SlackChannels.SlackChannel.Builder
Returns
Type Description
SlackSource.SlackChannels.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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