Class EnvironmentHistory.Builder

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

public static final class EnvironmentHistory.Builder extends com.google.protobuf.GeneratedMessage.Builder<EnvironmentHistory.Builder> implements EnvironmentHistoryOrBuilder
 The response message for
 [Environments.GetEnvironmentHistory][google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory].
 
Protobuf type google.cloud.dialogflow.v2.EnvironmentHistory
  • 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<EnvironmentHistory.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<EnvironmentHistory.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<EnvironmentHistory.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public EnvironmentHistory.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<EnvironmentHistory.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Output only. The name of the environment this history is for.
       Supported formats:
      
       - `projects/<Project ID>/agent/environments/<Environment ID>`
       - `projects/<Project ID>/locations/<Location
       ID>/agent/environments/<Environment ID>`
      
       The environment ID for the default environment is `-`.
       
      string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getParent in interface EnvironmentHistoryOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Output only. The name of the environment this history is for.
       Supported formats:
      
       - `projects/<Project ID>/agent/environments/<Environment ID>`
       - `projects/<Project ID>/locations/<Location
       ID>/agent/environments/<Environment ID>`
      
       The environment ID for the default environment is `-`.
       
      string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getParentBytes in interface EnvironmentHistoryOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public EnvironmentHistory.Builder setParent(String value)
       Output only. The name of the environment this history is for.
       Supported formats:
      
       - `projects/<Project ID>/agent/environments/<Environment ID>`
       - `projects/<Project ID>/locations/<Location
       ID>/agent/environments/<Environment ID>`
      
       The environment ID for the default environment is `-`.
       
      string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public EnvironmentHistory.Builder clearParent()
       Output only. The name of the environment this history is for.
       Supported formats:
      
       - `projects/<Project ID>/agent/environments/<Environment ID>`
       - `projects/<Project ID>/locations/<Location
       ID>/agent/environments/<Environment ID>`
      
       The environment ID for the default environment is `-`.
       
      string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setParentBytes

      public EnvironmentHistory.Builder setParentBytes(com.google.protobuf.ByteString value)
       Output only. The name of the environment this history is for.
       Supported formats:
      
       - `projects/<Project ID>/agent/environments/<Environment ID>`
       - `projects/<Project ID>/locations/<Location
       ID>/agent/environments/<Environment ID>`
      
       The environment ID for the default environment is `-`.
       
      string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getEntriesList

      public List<EnvironmentHistory.Entry> getEntriesList()
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEntriesList in interface EnvironmentHistoryOrBuilder
    • getEntriesCount

      public int getEntriesCount()
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEntriesCount in interface EnvironmentHistoryOrBuilder
    • getEntries

      public EnvironmentHistory.Entry getEntries(int index)
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEntries in interface EnvironmentHistoryOrBuilder
    • setEntries

      public EnvironmentHistory.Builder setEntries(int index, EnvironmentHistory.Entry value)
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setEntries

      public EnvironmentHistory.Builder setEntries(int index, EnvironmentHistory.Entry.Builder builderForValue)
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addEntries

       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addEntries

      public EnvironmentHistory.Builder addEntries(int index, EnvironmentHistory.Entry value)
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addEntries

      public EnvironmentHistory.Builder addEntries(EnvironmentHistory.Entry.Builder builderForValue)
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addEntries

      public EnvironmentHistory.Builder addEntries(int index, EnvironmentHistory.Entry.Builder builderForValue)
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllEntries

      public EnvironmentHistory.Builder addAllEntries(Iterable<? extends EnvironmentHistory.Entry> values)
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearEntries

      public EnvironmentHistory.Builder clearEntries()
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeEntries

      public EnvironmentHistory.Builder removeEntries(int index)
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getEntriesBuilder

      public EnvironmentHistory.Entry.Builder getEntriesBuilder(int index)
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getEntriesOrBuilder

      public EnvironmentHistory.EntryOrBuilder getEntriesOrBuilder(int index)
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEntriesOrBuilder in interface EnvironmentHistoryOrBuilder
    • getEntriesOrBuilderList

      public List<? extends EnvironmentHistory.EntryOrBuilder> getEntriesOrBuilderList()
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEntriesOrBuilderList in interface EnvironmentHistoryOrBuilder
    • addEntriesBuilder

      public EnvironmentHistory.Entry.Builder addEntriesBuilder()
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addEntriesBuilder

      public EnvironmentHistory.Entry.Builder addEntriesBuilder(int index)
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getEntriesBuilderList

      public List<EnvironmentHistory.Entry.Builder> getEntriesBuilderList()
       Output only. The list of agent environments. There will be a maximum number
       of items returned based on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getNextPageToken

      public String getNextPageToken()
       Output only. Token to retrieve the next page of results, or empty if there
       are no more results in the list.
       
      string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNextPageToken in interface EnvironmentHistoryOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Output only. Token to retrieve the next page of results, or empty if there
       are no more results in the list.
       
      string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNextPageTokenBytes in interface EnvironmentHistoryOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public EnvironmentHistory.Builder setNextPageToken(String value)
       Output only. Token to retrieve the next page of results, or empty if there
       are no more results in the list.
       
      string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public EnvironmentHistory.Builder clearNextPageToken()
       Output only. Token to retrieve the next page of results, or empty if there
       are no more results in the list.
       
      string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public EnvironmentHistory.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       Output only. Token to retrieve the next page of results, or empty if there
       are no more results in the list.
       
      string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.