Class CreateDeviceSessionRequest.Builder

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

public static final class CreateDeviceSessionRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateDeviceSessionRequest.Builder> implements CreateDeviceSessionRequestOrBuilder
 Request message for DirectAccessService.CreateDeviceSession.
 
Protobuf type google.cloud.devicestreaming.v1.CreateDeviceSessionRequest
  • 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<CreateDeviceSessionRequest.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<CreateDeviceSessionRequest.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<CreateDeviceSessionRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public String getParent()
       Required. The Compute Engine project under which this device will be
       allocated. "projects/{project_id}"
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateDeviceSessionRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The Compute Engine project under which this device will be
       allocated. "projects/{project_id}"
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateDeviceSessionRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateDeviceSessionRequest.Builder setParent(String value)
       Required. The Compute Engine project under which this device will be
       allocated. "projects/{project_id}"
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateDeviceSessionRequest.Builder clearParent()
       Required. The Compute Engine project under which this device will be
       allocated. "projects/{project_id}"
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateDeviceSessionRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The Compute Engine project under which this device will be
       allocated. "projects/{project_id}"
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasDeviceSession

      public boolean hasDeviceSession()
       Required. A DeviceSession to create.
       
      .google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDeviceSession in interface CreateDeviceSessionRequestOrBuilder
      Returns:
      Whether the deviceSession field is set.
    • getDeviceSession

      public DeviceSession getDeviceSession()
       Required. A DeviceSession to create.
       
      .google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDeviceSession in interface CreateDeviceSessionRequestOrBuilder
      Returns:
      The deviceSession.
    • setDeviceSession

      public CreateDeviceSessionRequest.Builder setDeviceSession(DeviceSession value)
       Required. A DeviceSession to create.
       
      .google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];
    • setDeviceSession

      public CreateDeviceSessionRequest.Builder setDeviceSession(DeviceSession.Builder builderForValue)
       Required. A DeviceSession to create.
       
      .google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeDeviceSession

      public CreateDeviceSessionRequest.Builder mergeDeviceSession(DeviceSession value)
       Required. A DeviceSession to create.
       
      .google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearDeviceSession

      public CreateDeviceSessionRequest.Builder clearDeviceSession()
       Required. A DeviceSession to create.
       
      .google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDeviceSessionBuilder

      public DeviceSession.Builder getDeviceSessionBuilder()
       Required. A DeviceSession to create.
       
      .google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDeviceSessionOrBuilder

      public DeviceSessionOrBuilder getDeviceSessionOrBuilder()
       Required. A DeviceSession to create.
       
      .google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDeviceSessionOrBuilder in interface CreateDeviceSessionRequestOrBuilder
    • getDeviceSessionId

      public String getDeviceSessionId()
       Optional. The ID to use for the DeviceSession, which will become the final
       component of the DeviceSession's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string device_session_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeviceSessionId in interface CreateDeviceSessionRequestOrBuilder
      Returns:
      The deviceSessionId.
    • getDeviceSessionIdBytes

      public com.google.protobuf.ByteString getDeviceSessionIdBytes()
       Optional. The ID to use for the DeviceSession, which will become the final
       component of the DeviceSession's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string device_session_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeviceSessionIdBytes in interface CreateDeviceSessionRequestOrBuilder
      Returns:
      The bytes for deviceSessionId.
    • setDeviceSessionId

      public CreateDeviceSessionRequest.Builder setDeviceSessionId(String value)
       Optional. The ID to use for the DeviceSession, which will become the final
       component of the DeviceSession's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string device_session_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The deviceSessionId to set.
      Returns:
      This builder for chaining.
    • clearDeviceSessionId

      public CreateDeviceSessionRequest.Builder clearDeviceSessionId()
       Optional. The ID to use for the DeviceSession, which will become the final
       component of the DeviceSession's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string device_session_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDeviceSessionIdBytes

      public CreateDeviceSessionRequest.Builder setDeviceSessionIdBytes(com.google.protobuf.ByteString value)
       Optional. The ID to use for the DeviceSession, which will become the final
       component of the DeviceSession's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string device_session_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for deviceSessionId to set.
      Returns:
      This builder for chaining.