Class SlackSource.SlackChannels.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SlackSource.SlackChannels.Builder>
com.google.cloud.aiplatform.v1.SlackSource.SlackChannels.Builder
All Implemented Interfaces:
SlackSource.SlackChannelsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SlackSource.SlackChannels

public static final class SlackSource.SlackChannels.Builder extends com.google.protobuf.GeneratedMessage.Builder<SlackSource.SlackChannels.Builder> implements SlackSource.SlackChannelsOrBuilder
 SlackChannels contains the Slack channels and corresponding access token.
 
Protobuf type google.cloud.aiplatform.v1.SlackSource.SlackChannels
  • 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<SlackSource.SlackChannels.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<SlackSource.SlackChannels.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<SlackSource.SlackChannels.Builder>
    • getDefaultInstanceForType

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

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

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

      public SlackSource.SlackChannels.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<SlackSource.SlackChannels.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<SlackSource.SlackChannels.Builder>
    • mergeFrom

      public SlackSource.SlackChannels.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<SlackSource.SlackChannels.Builder>
      Throws:
      IOException
    • getChannelsList

      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];
      Specified by:
      getChannelsList in interface SlackSource.SlackChannelsOrBuilder
    • getChannelsCount

      public int getChannelsCount()
       Required. The Slack channel IDs.
       
      repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getChannelsCount in interface SlackSource.SlackChannelsOrBuilder
    • getChannels

      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];
      Specified by:
      getChannels in interface SlackSource.SlackChannelsOrBuilder
    • setChannels

       Required. The Slack channel IDs.
       
      repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
    • setChannels

       Required. The Slack channel IDs.
       
      repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
    • addChannels

       Required. The Slack channel IDs.
       
      repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
    • addChannels

       Required. The Slack channel IDs.
       
      repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
    • addChannels

       Required. The Slack channel IDs.
       
      repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
    • addChannels

       Required. The Slack channel IDs.
       
      repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
    • addAllChannels

       Required. The Slack channel IDs.
       
      repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearChannels

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

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

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

      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];
      Specified by:
      getChannelsOrBuilder in interface SlackSource.SlackChannelsOrBuilder
    • getChannelsOrBuilderList

      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];
      Specified by:
      getChannelsOrBuilderList in interface SlackSource.SlackChannelsOrBuilder
    • addChannelsBuilder

       Required. The Slack channel IDs.
       
      repeated .google.cloud.aiplatform.v1.SlackSource.SlackChannels.SlackChannel channels = 1 [(.google.api.field_behavior) = REQUIRED];
    • addChannelsBuilder

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

      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];
    • 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.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasApiKeyConfig in interface SlackSource.SlackChannelsOrBuilder
      Returns:
      Whether the apiKeyConfig field is set.
    • 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.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getApiKeyConfig in interface SlackSource.SlackChannelsOrBuilder
      Returns:
      The apiKeyConfig.
    • setApiKeyConfig

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

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

      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];
    • 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.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • 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.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • 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.v1.ApiAuth.ApiKeyConfig api_key_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getApiKeyConfigOrBuilder in interface SlackSource.SlackChannelsOrBuilder