Class ListSessionsResponse.Builder

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

public static final class ListSessionsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListSessionsResponse.Builder> implements ListSessionsResponseOrBuilder
 Response message for
 [SessionService.ListSessions][google.cloud.aiplatform.v1.SessionService.ListSessions].
 
Protobuf type google.cloud.aiplatform.v1.ListSessionsResponse
  • 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<ListSessionsResponse.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<ListSessionsResponse.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<ListSessionsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListSessionsResponse.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<ListSessionsResponse.Builder>
      Throws:
      IOException
    • getSessionsList

      public List<Session> getSessionsList()
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
      Specified by:
      getSessionsList in interface ListSessionsResponseOrBuilder
    • getSessionsCount

      public int getSessionsCount()
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
      Specified by:
      getSessionsCount in interface ListSessionsResponseOrBuilder
    • getSessions

      public Session getSessions(int index)
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
      Specified by:
      getSessions in interface ListSessionsResponseOrBuilder
    • setSessions

      public ListSessionsResponse.Builder setSessions(int index, Session value)
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
    • setSessions

      public ListSessionsResponse.Builder setSessions(int index, Session.Builder builderForValue)
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
    • addSessions

      public ListSessionsResponse.Builder addSessions(Session value)
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
    • addSessions

      public ListSessionsResponse.Builder addSessions(int index, Session value)
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
    • addSessions

      public ListSessionsResponse.Builder addSessions(Session.Builder builderForValue)
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
    • addSessions

      public ListSessionsResponse.Builder addSessions(int index, Session.Builder builderForValue)
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
    • addAllSessions

      public ListSessionsResponse.Builder addAllSessions(Iterable<? extends Session> values)
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
    • clearSessions

      public ListSessionsResponse.Builder clearSessions()
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
    • removeSessions

      public ListSessionsResponse.Builder removeSessions(int index)
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
    • getSessionsBuilder

      public Session.Builder getSessionsBuilder(int index)
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
    • getSessionsOrBuilder

      public SessionOrBuilder getSessionsOrBuilder(int index)
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
      Specified by:
      getSessionsOrBuilder in interface ListSessionsResponseOrBuilder
    • getSessionsOrBuilderList

      public List<? extends SessionOrBuilder> getSessionsOrBuilderList()
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
      Specified by:
      getSessionsOrBuilderList in interface ListSessionsResponseOrBuilder
    • addSessionsBuilder

      public Session.Builder addSessionsBuilder()
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
    • addSessionsBuilder

      public Session.Builder addSessionsBuilder(int index)
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
    • getSessionsBuilderList

      public List<Session.Builder> getSessionsBuilderList()
       A list of sessions matching the request.
       
      repeated .google.cloud.aiplatform.v1.Session sessions = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token, which can be sent as
       [ListSessionsRequest.page_token][google.cloud.aiplatform.v1.ListSessionsRequest.page_token]
       to retrieve the next page. Absence of this field indicates there are no
       subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListSessionsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token, which can be sent as
       [ListSessionsRequest.page_token][google.cloud.aiplatform.v1.ListSessionsRequest.page_token]
       to retrieve the next page. Absence of this field indicates there are no
       subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListSessionsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListSessionsResponse.Builder setNextPageToken(String value)
       A token, which can be sent as
       [ListSessionsRequest.page_token][google.cloud.aiplatform.v1.ListSessionsRequest.page_token]
       to retrieve the next page. Absence of this field indicates there are no
       subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListSessionsResponse.Builder clearNextPageToken()
       A token, which can be sent as
       [ListSessionsRequest.page_token][google.cloud.aiplatform.v1.ListSessionsRequest.page_token]
       to retrieve the next page. Absence of this field indicates there are no
       subsequent pages.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListSessionsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token, which can be sent as
       [ListSessionsRequest.page_token][google.cloud.aiplatform.v1.ListSessionsRequest.page_token]
       to retrieve the next page. Absence of this field indicates there are no
       subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.