Class ListDeviceSessionsResponse.Builder

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

public static final class ListDeviceSessionsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListDeviceSessionsResponse.Builder> implements ListDeviceSessionsResponseOrBuilder
 Response message for DirectAccessService.ListDeviceSessions.
 
Protobuf type google.cloud.devicestreaming.v1.ListDeviceSessionsResponse
  • 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<ListDeviceSessionsResponse.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<ListDeviceSessionsResponse.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<ListDeviceSessionsResponse.Builder>
    • getDefaultInstanceForType

      public ListDeviceSessionsResponse 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 ListDeviceSessionsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ListDeviceSessionsResponse.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<ListDeviceSessionsResponse.Builder>
      Throws:
      IOException
    • getDeviceSessionsList

      public List<DeviceSession> getDeviceSessionsList()
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
      Specified by:
      getDeviceSessionsList in interface ListDeviceSessionsResponseOrBuilder
    • getDeviceSessionsCount

      public int getDeviceSessionsCount()
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
      Specified by:
      getDeviceSessionsCount in interface ListDeviceSessionsResponseOrBuilder
    • getDeviceSessions

      public DeviceSession getDeviceSessions(int index)
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
      Specified by:
      getDeviceSessions in interface ListDeviceSessionsResponseOrBuilder
    • setDeviceSessions

      public ListDeviceSessionsResponse.Builder setDeviceSessions(int index, DeviceSession value)
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
    • setDeviceSessions

      public ListDeviceSessionsResponse.Builder setDeviceSessions(int index, DeviceSession.Builder builderForValue)
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
    • addDeviceSessions

      public ListDeviceSessionsResponse.Builder addDeviceSessions(DeviceSession value)
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
    • addDeviceSessions

      public ListDeviceSessionsResponse.Builder addDeviceSessions(int index, DeviceSession value)
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
    • addDeviceSessions

      public ListDeviceSessionsResponse.Builder addDeviceSessions(DeviceSession.Builder builderForValue)
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
    • addDeviceSessions

      public ListDeviceSessionsResponse.Builder addDeviceSessions(int index, DeviceSession.Builder builderForValue)
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
    • addAllDeviceSessions

      public ListDeviceSessionsResponse.Builder addAllDeviceSessions(Iterable<? extends DeviceSession> values)
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
    • clearDeviceSessions

      public ListDeviceSessionsResponse.Builder clearDeviceSessions()
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
    • removeDeviceSessions

      public ListDeviceSessionsResponse.Builder removeDeviceSessions(int index)
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
    • getDeviceSessionsBuilder

      public DeviceSession.Builder getDeviceSessionsBuilder(int index)
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
    • getDeviceSessionsOrBuilder

      public DeviceSessionOrBuilder getDeviceSessionsOrBuilder(int index)
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
      Specified by:
      getDeviceSessionsOrBuilder in interface ListDeviceSessionsResponseOrBuilder
    • getDeviceSessionsOrBuilderList

      public List<? extends DeviceSessionOrBuilder> getDeviceSessionsOrBuilderList()
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
      Specified by:
      getDeviceSessionsOrBuilderList in interface ListDeviceSessionsResponseOrBuilder
    • addDeviceSessionsBuilder

      public DeviceSession.Builder addDeviceSessionsBuilder()
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
    • addDeviceSessionsBuilder

      public DeviceSession.Builder addDeviceSessionsBuilder(int index)
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
    • getDeviceSessionsBuilderList

      public List<DeviceSession.Builder> getDeviceSessionsBuilderList()
       The sessions matching the specified filter in the given cloud project.
       
      repeated .google.cloud.devicestreaming.v1.DeviceSession device_sessions = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListDeviceSessionsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListDeviceSessionsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListDeviceSessionsResponse.Builder setNextPageToken(String value)
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListDeviceSessionsResponse.Builder clearNextPageToken()
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListDeviceSessionsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.