Class SummarySuggestion.SummarySection.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SummarySuggestion.SummarySection.Builder>
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.Builder
All Implemented Interfaces:
SummarySuggestion.SummarySectionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SummarySuggestion.SummarySection

public static final class SummarySuggestion.SummarySection.Builder extends com.google.protobuf.GeneratedMessage.Builder<SummarySuggestion.SummarySection.Builder> implements SummarySuggestion.SummarySectionOrBuilder
 A component of the generated summary.
 
Protobuf type google.cloud.dialogflow.v2.SummarySuggestion.SummarySection
  • 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<SummarySuggestion.SummarySection.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<SummarySuggestion.SummarySection.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<SummarySuggestion.SummarySection.Builder>
    • getDefaultInstanceForType

      public SummarySuggestion.SummarySection 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

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

      public SummarySuggestion.SummarySection.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<SummarySuggestion.SummarySection.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<SummarySuggestion.SummarySection.Builder>
    • mergeFrom

      public SummarySuggestion.SummarySection.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<SummarySuggestion.SummarySection.Builder>
      Throws:
      IOException
    • getSection

      public String getSection()
       Required. Name of the section.
       
      string section = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSection in interface SummarySuggestion.SummarySectionOrBuilder
      Returns:
      The section.
    • getSectionBytes

      public com.google.protobuf.ByteString getSectionBytes()
       Required. Name of the section.
       
      string section = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSectionBytes in interface SummarySuggestion.SummarySectionOrBuilder
      Returns:
      The bytes for section.
    • setSection

       Required. Name of the section.
       
      string section = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The section to set.
      Returns:
      This builder for chaining.
    • clearSection

       Required. Name of the section.
       
      string section = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSectionBytes

      public SummarySuggestion.SummarySection.Builder setSectionBytes(com.google.protobuf.ByteString value)
       Required. Name of the section.
       
      string section = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for section to set.
      Returns:
      This builder for chaining.
    • getSummary

      public String getSummary()
       Required. Summary text for the section.
       
      string summary = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSummary in interface SummarySuggestion.SummarySectionOrBuilder
      Returns:
      The summary.
    • getSummaryBytes

      public com.google.protobuf.ByteString getSummaryBytes()
       Required. Summary text for the section.
       
      string summary = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSummaryBytes in interface SummarySuggestion.SummarySectionOrBuilder
      Returns:
      The bytes for summary.
    • setSummary

       Required. Summary text for the section.
       
      string summary = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The summary to set.
      Returns:
      This builder for chaining.
    • clearSummary

       Required. Summary text for the section.
       
      string summary = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSummaryBytes

      public SummarySuggestion.SummarySection.Builder setSummaryBytes(com.google.protobuf.ByteString value)
       Required. Summary text for the section.
       
      string summary = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for summary to set.
      Returns:
      This builder for chaining.