Class ReservationSlot.Builder

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

public static final class ReservationSlot.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReservationSlot.Builder> implements ReservationSlotOrBuilder
 Represents a reservation slot resource.
 
Protobuf type google.cloud.compute.v1.ReservationSlot
  • 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<ReservationSlot.Builder>
    • clear

      public ReservationSlot.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<ReservationSlot.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<ReservationSlot.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ReservationSlot.Builder mergeFrom(ReservationSlot other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ReservationSlot.Builder>
    • mergeFrom

      public ReservationSlot.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<ReservationSlot.Builder>
      Throws:
      IOException
    • hasCreationTimestamp

      public boolean hasCreationTimestamp()
       Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      hasCreationTimestamp in interface ReservationSlotOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface ReservationSlotOrBuilder
      Returns:
      The creationTimestamp.
    • getCreationTimestampBytes

      public com.google.protobuf.ByteString getCreationTimestampBytes()
       Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestampBytes in interface ReservationSlotOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • setCreationTimestamp

      public ReservationSlot.Builder setCreationTimestamp(String value)
       Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.
       
      optional string creation_timestamp = 30525366;
      Parameters:
      value - The creationTimestamp to set.
      Returns:
      This builder for chaining.
    • clearCreationTimestamp

      public ReservationSlot.Builder clearCreationTimestamp()
       Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.
       
      optional string creation_timestamp = 30525366;
      Returns:
      This builder for chaining.
    • setCreationTimestampBytes

      public ReservationSlot.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.
       
      optional string creation_timestamp = 30525366;
      Parameters:
      value - The bytes for creationTimestamp to set.
      Returns:
      This builder for chaining.
    • hasId

      public boolean hasId()
       Output only. [Output Only] The unique identifier for this resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      hasId in interface ReservationSlotOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       Output only. [Output Only] The unique identifier for this resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      getId in interface ReservationSlotOrBuilder
      Returns:
      The id.
    • setId

      public ReservationSlot.Builder setId(long value)
       Output only. [Output Only] The unique identifier for this resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public ReservationSlot.Builder clearId()
       Output only. [Output Only] The unique identifier for this resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Returns:
      This builder for chaining.
    • hasKind

      public boolean hasKind()
       Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface ReservationSlotOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface ReservationSlotOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface ReservationSlotOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public ReservationSlot.Builder setKind(String value)
       Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots.
       
      optional string kind = 3292052;
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      public ReservationSlot.Builder clearKind()
       Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

      public ReservationSlot.Builder setKindBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots.
       
      optional string kind = 3292052;
      Parameters:
      value - The bytes for kind to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Output only. [Output Only] The name of the reservation slot.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface ReservationSlotOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Output only. [Output Only] The name of the reservation slot.
       
      optional string name = 3373707;
      Specified by:
      getName in interface ReservationSlotOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. [Output Only] The name of the reservation slot.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface ReservationSlotOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ReservationSlot.Builder setName(String value)
       Output only. [Output Only] The name of the reservation slot.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ReservationSlot.Builder clearName()
       Output only. [Output Only] The name of the reservation slot.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ReservationSlot.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The name of the reservation slot.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasPhysicalTopology

      public boolean hasPhysicalTopology()
       Output only. [Output Only] The physical topology of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotPhysicalTopology physical_topology = 279778519;
      Specified by:
      hasPhysicalTopology in interface ReservationSlotOrBuilder
      Returns:
      Whether the physicalTopology field is set.
    • getPhysicalTopology

      public ReservationSlotPhysicalTopology getPhysicalTopology()
       Output only. [Output Only] The physical topology of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotPhysicalTopology physical_topology = 279778519;
      Specified by:
      getPhysicalTopology in interface ReservationSlotOrBuilder
      Returns:
      The physicalTopology.
    • setPhysicalTopology

      public ReservationSlot.Builder setPhysicalTopology(ReservationSlotPhysicalTopology value)
       Output only. [Output Only] The physical topology of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotPhysicalTopology physical_topology = 279778519;
    • setPhysicalTopology

      public ReservationSlot.Builder setPhysicalTopology(ReservationSlotPhysicalTopology.Builder builderForValue)
       Output only. [Output Only] The physical topology of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotPhysicalTopology physical_topology = 279778519;
    • mergePhysicalTopology

      public ReservationSlot.Builder mergePhysicalTopology(ReservationSlotPhysicalTopology value)
       Output only. [Output Only] The physical topology of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotPhysicalTopology physical_topology = 279778519;
    • clearPhysicalTopology

      public ReservationSlot.Builder clearPhysicalTopology()
       Output only. [Output Only] The physical topology of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotPhysicalTopology physical_topology = 279778519;
    • getPhysicalTopologyBuilder

      public ReservationSlotPhysicalTopology.Builder getPhysicalTopologyBuilder()
       Output only. [Output Only] The physical topology of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotPhysicalTopology physical_topology = 279778519;
    • getPhysicalTopologyOrBuilder

      public ReservationSlotPhysicalTopologyOrBuilder getPhysicalTopologyOrBuilder()
       Output only. [Output Only] The physical topology of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotPhysicalTopology physical_topology = 279778519;
      Specified by:
      getPhysicalTopologyOrBuilder in interface ReservationSlotOrBuilder
    • hasSelfLink

      public boolean hasSelfLink()
       Output only. [Output Only] A server-defined fully-qualified URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      hasSelfLink in interface ReservationSlotOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       Output only. [Output Only] A server-defined fully-qualified URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface ReservationSlotOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       Output only. [Output Only] A server-defined fully-qualified URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLinkBytes in interface ReservationSlotOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public ReservationSlot.Builder setSelfLink(String value)
       Output only. [Output Only] A server-defined fully-qualified URL for this resource.
       
      optional string self_link = 456214797;
      Parameters:
      value - The selfLink to set.
      Returns:
      This builder for chaining.
    • clearSelfLink

      public ReservationSlot.Builder clearSelfLink()
       Output only. [Output Only] A server-defined fully-qualified URL for this resource.
       
      optional string self_link = 456214797;
      Returns:
      This builder for chaining.
    • setSelfLinkBytes

      public ReservationSlot.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] A server-defined fully-qualified URL for this resource.
       
      optional string self_link = 456214797;
      Parameters:
      value - The bytes for selfLink to set.
      Returns:
      This builder for chaining.
    • hasSelfLinkWithId

      public boolean hasSelfLinkWithId()
       Output only. [Output Only] A server-defined URL for this resource with the resource ID.
       
      optional string self_link_with_id = 44520962;
      Specified by:
      hasSelfLinkWithId in interface ReservationSlotOrBuilder
      Returns:
      Whether the selfLinkWithId field is set.
    • getSelfLinkWithId

      public String getSelfLinkWithId()
       Output only. [Output Only] A server-defined URL for this resource with the resource ID.
       
      optional string self_link_with_id = 44520962;
      Specified by:
      getSelfLinkWithId in interface ReservationSlotOrBuilder
      Returns:
      The selfLinkWithId.
    • getSelfLinkWithIdBytes

      public com.google.protobuf.ByteString getSelfLinkWithIdBytes()
       Output only. [Output Only] A server-defined URL for this resource with the resource ID.
       
      optional string self_link_with_id = 44520962;
      Specified by:
      getSelfLinkWithIdBytes in interface ReservationSlotOrBuilder
      Returns:
      The bytes for selfLinkWithId.
    • setSelfLinkWithId

      public ReservationSlot.Builder setSelfLinkWithId(String value)
       Output only. [Output Only] A server-defined URL for this resource with the resource ID.
       
      optional string self_link_with_id = 44520962;
      Parameters:
      value - The selfLinkWithId to set.
      Returns:
      This builder for chaining.
    • clearSelfLinkWithId

      public ReservationSlot.Builder clearSelfLinkWithId()
       Output only. [Output Only] A server-defined URL for this resource with the resource ID.
       
      optional string self_link_with_id = 44520962;
      Returns:
      This builder for chaining.
    • setSelfLinkWithIdBytes

      public ReservationSlot.Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] A server-defined URL for this resource with the resource ID.
       
      optional string self_link_with_id = 44520962;
      Parameters:
      value - The bytes for selfLinkWithId to set.
      Returns:
      This builder for chaining.
    • hasShareSettings

      public boolean hasShareSettings()
       Specify share settings to create a shared slot. Set to empty
       to inherit the share settings from a parent resource.
       
      optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
      Specified by:
      hasShareSettings in interface ReservationSlotOrBuilder
      Returns:
      Whether the shareSettings field is set.
    • getShareSettings

      public ShareSettings getShareSettings()
       Specify share settings to create a shared slot. Set to empty
       to inherit the share settings from a parent resource.
       
      optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
      Specified by:
      getShareSettings in interface ReservationSlotOrBuilder
      Returns:
      The shareSettings.
    • setShareSettings

      public ReservationSlot.Builder setShareSettings(ShareSettings value)
       Specify share settings to create a shared slot. Set to empty
       to inherit the share settings from a parent resource.
       
      optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
    • setShareSettings

      public ReservationSlot.Builder setShareSettings(ShareSettings.Builder builderForValue)
       Specify share settings to create a shared slot. Set to empty
       to inherit the share settings from a parent resource.
       
      optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
    • mergeShareSettings

      public ReservationSlot.Builder mergeShareSettings(ShareSettings value)
       Specify share settings to create a shared slot. Set to empty
       to inherit the share settings from a parent resource.
       
      optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
    • clearShareSettings

      public ReservationSlot.Builder clearShareSettings()
       Specify share settings to create a shared slot. Set to empty
       to inherit the share settings from a parent resource.
       
      optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
    • getShareSettingsBuilder

      public ShareSettings.Builder getShareSettingsBuilder()
       Specify share settings to create a shared slot. Set to empty
       to inherit the share settings from a parent resource.
       
      optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
    • getShareSettingsOrBuilder

      public ShareSettingsOrBuilder getShareSettingsOrBuilder()
       Specify share settings to create a shared slot. Set to empty
       to inherit the share settings from a parent resource.
       
      optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
      Specified by:
      getShareSettingsOrBuilder in interface ReservationSlotOrBuilder
    • hasState

      public boolean hasState()
       Output only. [Output Only] The state of the reservation slot.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Specified by:
      hasState in interface ReservationSlotOrBuilder
      Returns:
      Whether the state field is set.
    • getState

      public String getState()
       Output only. [Output Only] The state of the reservation slot.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Specified by:
      getState in interface ReservationSlotOrBuilder
      Returns:
      The state.
    • getStateBytes

      public com.google.protobuf.ByteString getStateBytes()
       Output only. [Output Only] The state of the reservation slot.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Specified by:
      getStateBytes in interface ReservationSlotOrBuilder
      Returns:
      The bytes for state.
    • setState

      public ReservationSlot.Builder setState(String value)
       Output only. [Output Only] The state of the reservation slot.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public ReservationSlot.Builder clearState()
       Output only. [Output Only] The state of the reservation slot.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Returns:
      This builder for chaining.
    • setStateBytes

      public ReservationSlot.Builder setStateBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The state of the reservation slot.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Parameters:
      value - The bytes for state to set.
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
       Output only. [Output Only] The status of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotStatus status = 181260274;
      Specified by:
      hasStatus in interface ReservationSlotOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public ReservationSlotStatus getStatus()
       Output only. [Output Only] The status of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotStatus status = 181260274;
      Specified by:
      getStatus in interface ReservationSlotOrBuilder
      Returns:
      The status.
    • setStatus

       Output only. [Output Only] The status of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotStatus status = 181260274;
    • setStatus

      public ReservationSlot.Builder setStatus(ReservationSlotStatus.Builder builderForValue)
       Output only. [Output Only] The status of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotStatus status = 181260274;
    • mergeStatus

      public ReservationSlot.Builder mergeStatus(ReservationSlotStatus value)
       Output only. [Output Only] The status of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotStatus status = 181260274;
    • clearStatus

      public ReservationSlot.Builder clearStatus()
       Output only. [Output Only] The status of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotStatus status = 181260274;
    • getStatusBuilder

      public ReservationSlotStatus.Builder getStatusBuilder()
       Output only. [Output Only] The status of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotStatus status = 181260274;
    • getStatusOrBuilder

      public ReservationSlotStatusOrBuilder getStatusOrBuilder()
       Output only. [Output Only] The status of the reservation slot.
       
      optional .google.cloud.compute.v1.ReservationSlotStatus status = 181260274;
      Specified by:
      getStatusOrBuilder in interface ReservationSlotOrBuilder
    • hasZone

      public boolean hasZone()
       Output only. [Output Only] The zone in which the reservation slot resides.
       
      optional string zone = 3744684;
      Specified by:
      hasZone in interface ReservationSlotOrBuilder
      Returns:
      Whether the zone field is set.
    • getZone

      public String getZone()
       Output only. [Output Only] The zone in which the reservation slot resides.
       
      optional string zone = 3744684;
      Specified by:
      getZone in interface ReservationSlotOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      public com.google.protobuf.ByteString getZoneBytes()
       Output only. [Output Only] The zone in which the reservation slot resides.
       
      optional string zone = 3744684;
      Specified by:
      getZoneBytes in interface ReservationSlotOrBuilder
      Returns:
      The bytes for zone.
    • setZone

      public ReservationSlot.Builder setZone(String value)
       Output only. [Output Only] The zone in which the reservation slot resides.
       
      optional string zone = 3744684;
      Parameters:
      value - The zone to set.
      Returns:
      This builder for chaining.
    • clearZone

      public ReservationSlot.Builder clearZone()
       Output only. [Output Only] The zone in which the reservation slot resides.
       
      optional string zone = 3744684;
      Returns:
      This builder for chaining.
    • setZoneBytes

      public ReservationSlot.Builder setZoneBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The zone in which the reservation slot resides.
       
      optional string zone = 3744684;
      Parameters:
      value - The bytes for zone to set.
      Returns:
      This builder for chaining.