Class StartWorkstationRequest.Builder (0.7.0)

public static final class StartWorkstationRequest.Builder extends GeneratedMessageV3.Builder<StartWorkstationRequest.Builder> implements StartWorkstationRequestOrBuilder

Request message for StartWorkstation.

Protobuf type google.cloud.workstations.v1.StartWorkstationRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StartWorkstationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StartWorkstationRequest.Builder
Overrides

build()

public StartWorkstationRequest build()
Returns
TypeDescription
StartWorkstationRequest

buildPartial()

public StartWorkstationRequest buildPartial()
Returns
TypeDescription
StartWorkstationRequest

clear()

public StartWorkstationRequest.Builder clear()
Returns
TypeDescription
StartWorkstationRequest.Builder
Overrides

clearEtag()

public StartWorkstationRequest.Builder clearEtag()

If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag.

string etag = 3;

Returns
TypeDescription
StartWorkstationRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public StartWorkstationRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StartWorkstationRequest.Builder
Overrides

clearName()

public StartWorkstationRequest.Builder clearName()

Required. Name of the workstation to start.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
StartWorkstationRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public StartWorkstationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StartWorkstationRequest.Builder
Overrides

clearValidateOnly()

public StartWorkstationRequest.Builder clearValidateOnly()

If set, validate the request and preview the review, but do not actually apply it.

bool validate_only = 2;

Returns
TypeDescription
StartWorkstationRequest.Builder

This builder for chaining.

clone()

public StartWorkstationRequest.Builder clone()
Returns
TypeDescription
StartWorkstationRequest.Builder
Overrides

getDefaultInstanceForType()

public StartWorkstationRequest getDefaultInstanceForType()
Returns
TypeDescription
StartWorkstationRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEtag()

public String getEtag()

If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag.

string etag = 3;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag.

string etag = 3;

Returns
TypeDescription
ByteString

The bytes for etag.

getName()

public String getName()

Required. Name of the workstation to start.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the workstation to start.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

getValidateOnly()

public boolean getValidateOnly()

If set, validate the request and preview the review, but do not actually apply it.

bool validate_only = 2;

Returns
TypeDescription
boolean

The validateOnly.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StartWorkstationRequest other)

public StartWorkstationRequest.Builder mergeFrom(StartWorkstationRequest other)
Parameter
NameDescription
otherStartWorkstationRequest
Returns
TypeDescription
StartWorkstationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StartWorkstationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartWorkstationRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StartWorkstationRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StartWorkstationRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StartWorkstationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StartWorkstationRequest.Builder
Overrides

setEtag(String value)

public StartWorkstationRequest.Builder setEtag(String value)

If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag.

string etag = 3;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
StartWorkstationRequest.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public StartWorkstationRequest.Builder setEtagBytes(ByteString value)

If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag.

string etag = 3;

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
StartWorkstationRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public StartWorkstationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StartWorkstationRequest.Builder
Overrides

setName(String value)

public StartWorkstationRequest.Builder setName(String value)

Required. Name of the workstation to start.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
StartWorkstationRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public StartWorkstationRequest.Builder setNameBytes(ByteString value)

Required. Name of the workstation to start.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
StartWorkstationRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StartWorkstationRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StartWorkstationRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StartWorkstationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StartWorkstationRequest.Builder
Overrides

setValidateOnly(boolean value)

public StartWorkstationRequest.Builder setValidateOnly(boolean value)

If set, validate the request and preview the review, but do not actually apply it.

bool validate_only = 2;

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
StartWorkstationRequest.Builder

This builder for chaining.