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.v1.SlackSource.SlackChannels
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public SlackSource.SlackChannels.Builder addAllChannels(Iterable<? extends SlackSource.SlackChannels.SlackChannel> values)
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel>
|
public SlackSource.SlackChannels.Builder addChannels(SlackSource.SlackChannels.SlackChannel value)
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
public SlackSource.SlackChannels.Builder addChannels(SlackSource.SlackChannels.SlackChannel.Builder builderForValue)
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
public SlackSource.SlackChannels.Builder addChannels(int index, SlackSource.SlackChannels.SlackChannel value)
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
public SlackSource.SlackChannels.Builder addChannels(int index, SlackSource.SlackChannels.SlackChannel.Builder builderForValue)
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
public SlackSource.SlackChannels.SlackChannel.Builder addChannelsBuilder()
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
public SlackSource.SlackChannels.SlackChannel.Builder addChannelsBuilder(int index)
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
public SlackSource.SlackChannels.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public SlackSource.SlackChannels build()
public SlackSource.SlackChannels buildPartial()
public SlackSource.SlackChannels.Builder clear()
Overrides
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.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];
public SlackSource.SlackChannels.Builder clearChannels()
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
public SlackSource.SlackChannels.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public SlackSource.SlackChannels.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public SlackSource.SlackChannels.Builder clone()
Overrides
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.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];
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.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];
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.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];
public SlackSource.SlackChannels.SlackChannel getChannels(int index)
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
public SlackSource.SlackChannels.SlackChannel.Builder getChannelsBuilder(int index)
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
public List<SlackSource.SlackChannels.SlackChannel.Builder> getChannelsBuilderList()
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
public int getChannelsCount()
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
|
public List<SlackSource.SlackChannels.SlackChannel> getChannelsList()
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
public SlackSource.SlackChannels.SlackChannelOrBuilder getChannelsOrBuilder(int index)
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
public List<? extends SlackSource.SlackChannels.SlackChannelOrBuilder> getChannelsOrBuilderList()
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
List<? extends com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannelOrBuilder> |
|
public SlackSource.SlackChannels getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the apiKeyConfig field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
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.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];
public SlackSource.SlackChannels.Builder mergeFrom(SlackSource.SlackChannels other)
public SlackSource.SlackChannels.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public SlackSource.SlackChannels.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final SlackSource.SlackChannels.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public SlackSource.SlackChannels.Builder removeChannels(int index)
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
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.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];
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.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];
public SlackSource.SlackChannels.Builder setChannels(int index, SlackSource.SlackChannels.SlackChannel value)
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
public SlackSource.SlackChannels.Builder setChannels(int index, SlackSource.SlackChannels.SlackChannel.Builder builderForValue)
Required. The Slack channel IDs.
repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
public SlackSource.SlackChannels.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public SlackSource.SlackChannels.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final SlackSource.SlackChannels.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides