Class SearchAgentsResponse.Builder

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

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

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

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

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

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

      public SearchAgentsResponse.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<SearchAgentsResponse.Builder>
      Throws:
      IOException
    • getAgentsList

      public List<Agent> getAgentsList()
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
      Specified by:
      getAgentsList in interface SearchAgentsResponseOrBuilder
    • getAgentsCount

      public int getAgentsCount()
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
      Specified by:
      getAgentsCount in interface SearchAgentsResponseOrBuilder
    • getAgents

      public Agent getAgents(int index)
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
      Specified by:
      getAgents in interface SearchAgentsResponseOrBuilder
    • setAgents

      public SearchAgentsResponse.Builder setAgents(int index, Agent value)
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
    • setAgents

      public SearchAgentsResponse.Builder setAgents(int index, Agent.Builder builderForValue)
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
    • addAgents

      public SearchAgentsResponse.Builder addAgents(Agent value)
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
    • addAgents

      public SearchAgentsResponse.Builder addAgents(int index, Agent value)
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
    • addAgents

      public SearchAgentsResponse.Builder addAgents(Agent.Builder builderForValue)
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
    • addAgents

      public SearchAgentsResponse.Builder addAgents(int index, Agent.Builder builderForValue)
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
    • addAllAgents

      public SearchAgentsResponse.Builder addAllAgents(Iterable<? extends Agent> values)
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
    • clearAgents

      public SearchAgentsResponse.Builder clearAgents()
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
    • removeAgents

      public SearchAgentsResponse.Builder removeAgents(int index)
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
    • getAgentsBuilder

      public Agent.Builder getAgentsBuilder(int index)
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
    • getAgentsOrBuilder

      public AgentOrBuilder getAgentsOrBuilder(int index)
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
      Specified by:
      getAgentsOrBuilder in interface SearchAgentsResponseOrBuilder
    • getAgentsOrBuilderList

      public List<? extends AgentOrBuilder> getAgentsOrBuilderList()
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
      Specified by:
      getAgentsOrBuilderList in interface SearchAgentsResponseOrBuilder
    • addAgentsBuilder

      public Agent.Builder addAgentsBuilder()
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
    • addAgentsBuilder

      public Agent.Builder addAgentsBuilder(int index)
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
    • getAgentsBuilderList

      public List<Agent.Builder> getAgentsBuilderList()
       The list of agents. There will be a maximum number of items returned based
       on the page_size field in the request.
       
      repeated .google.cloud.dialogflow.v2.Agent agents = 1;
    • getNextPageToken

      public String getNextPageToken()
       Token to retrieve the next page of results, or empty if there are no
       more results in the list.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface SearchAgentsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Token to retrieve the next page of results, or empty if there are no
       more results in the list.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface SearchAgentsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public SearchAgentsResponse.Builder setNextPageToken(String value)
       Token to retrieve the next page of results, or empty if there are no
       more results in the list.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public SearchAgentsResponse.Builder clearNextPageToken()
       Token to retrieve the next page of results, or empty if there are no
       more results in the list.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

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