Class SlackSource.SlackChannels.SlackChannel.Builder

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

public static final class SlackSource.SlackChannels.SlackChannel.Builder extends com.google.protobuf.GeneratedMessage.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.v1.SlackSource.SlackChannels.SlackChannel
  • 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.SlackChannel.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.SlackChannel.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.SlackChannel.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • 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.SlackChannel.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.SlackChannel.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.SlackChannel.Builder>
    • mergeFrom

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

      public String getChannelId()
       Required. The Slack channel ID.
       
      string channel_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getChannelId in interface SlackSource.SlackChannels.SlackChannelOrBuilder
      Returns:
      The channelId.
    • getChannelIdBytes

      public com.google.protobuf.ByteString getChannelIdBytes()
       Required. The Slack channel ID.
       
      string channel_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getChannelIdBytes in interface SlackSource.SlackChannels.SlackChannelOrBuilder
      Returns:
      The bytes for channelId.
    • setChannelId

       Required. The Slack channel ID.
       
      string channel_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The channelId to set.
      Returns:
      This builder for chaining.
    • clearChannelId

       Required. The Slack channel ID.
       
      string channel_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setChannelIdBytes

      public SlackSource.SlackChannels.SlackChannel.Builder setChannelIdBytes(com.google.protobuf.ByteString value)
       Required. The Slack channel ID.
       
      string channel_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for channelId to set.
      Returns:
      This builder for chaining.
    • hasStartTime

      public boolean hasStartTime()
       Optional. The starting timestamp for messages to import.
       
      .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasStartTime in interface SlackSource.SlackChannels.SlackChannelOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Optional. The starting timestamp for messages to import.
       
      .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStartTime in interface SlackSource.SlackChannels.SlackChannelOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public SlackSource.SlackChannels.SlackChannel.Builder setStartTime(com.google.protobuf.Timestamp value)
       Optional. The starting timestamp for messages to import.
       
      .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setStartTime

      public SlackSource.SlackChannels.SlackChannel.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. The starting timestamp for messages to import.
       
      .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeStartTime

      public SlackSource.SlackChannels.SlackChannel.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Optional. The starting timestamp for messages to import.
       
      .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearStartTime

       Optional. The starting timestamp for messages to import.
       
      .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       Optional. The starting timestamp for messages to import.
       
      .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Optional. The starting timestamp for messages to import.
       
      .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStartTimeOrBuilder in interface SlackSource.SlackChannels.SlackChannelOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       Optional. The ending timestamp for messages to import.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasEndTime in interface SlackSource.SlackChannels.SlackChannelOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       Optional. The ending timestamp for messages to import.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndTime in interface SlackSource.SlackChannels.SlackChannelOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public SlackSource.SlackChannels.SlackChannel.Builder setEndTime(com.google.protobuf.Timestamp value)
       Optional. The ending timestamp for messages to import.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setEndTime

      public SlackSource.SlackChannels.SlackChannel.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. The ending timestamp for messages to import.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeEndTime

      public SlackSource.SlackChannels.SlackChannel.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       Optional. The ending timestamp for messages to import.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearEndTime

       Optional. The ending timestamp for messages to import.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       Optional. The ending timestamp for messages to import.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       Optional. The ending timestamp for messages to import.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndTimeOrBuilder in interface SlackSource.SlackChannels.SlackChannelOrBuilder