Class Workstation.Builder (0.21.0)

public static final class Workstation.Builder extends GeneratedMessageV3.Builder<Workstation.Builder> implements WorkstationOrBuilder

A single instance of a developer workstation with its own persistent storage.

Protobuf type google.cloud.workstations.v1.Workstation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Workstation build()
Returns
TypeDescription
Workstation

buildPartial()

public Workstation buildPartial()
Returns
TypeDescription
Workstation

clear()

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

clearAnnotations()

public Workstation.Builder clearAnnotations()
Returns
TypeDescription
Workstation.Builder

clearCreateTime()

public Workstation.Builder clearCreateTime()

Output only. Time when this workstation was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Workstation.Builder

clearDeleteTime()

public Workstation.Builder clearDeleteTime()

Output only. Time when this workstation was soft-deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Workstation.Builder

clearDisplayName()

public Workstation.Builder clearDisplayName()

Optional. Human-readable name for this workstation.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

clearEtag()

public Workstation.Builder clearEtag()

Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.

string etag = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHost()

public Workstation.Builder clearHost()

Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To send traffic to a different port, clients may prefix the host with the destination port in the format {port}-{host}.

string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

clearLabels()

public Workstation.Builder clearLabels()
Returns
TypeDescription
Workstation.Builder

clearName()

public Workstation.Builder clearName()

Full name of this workstation.

string name = 1;

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReconciling()

public Workstation.Builder clearReconciling()

Output only. Indicates whether this workstation is currently being updated to match its intended state.

bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

clearStartTime()

public Workstation.Builder clearStartTime()

Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.

.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Workstation.Builder

clearState()

public Workstation.Builder clearState()

Output only. Current state of the workstation.

.google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

clearUid()

public Workstation.Builder clearUid()

Output only. A system-assigned unique identifier for this workstation.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

clearUpdateTime()

public Workstation.Builder clearUpdateTime()

Output only. Time when this workstation was most recently updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Workstation.Builder

clone()

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

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Optional. Client-specified annotations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations() (deprecated)

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Optional. Client-specified annotations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Optional. Client-specified annotations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Optional. Client-specified annotations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Optional. Client-specified annotations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when this workstation was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when this workstation was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when this workstation was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Workstation getDefaultInstanceForType()
Returns
TypeDescription
Workstation

getDeleteTime()

public Timestamp getDeleteTime()

Output only. Time when this workstation was soft-deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

Output only. Time when this workstation was soft-deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. Time when this workstation was soft-deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Optional. Human-readable name for this workstation.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Human-readable name for this workstation.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for displayName.

getEtag()

public String getEtag()

Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.

string etag = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.

string etag = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for etag.

getHost()

public String getHost()

Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To send traffic to a different port, clients may prefix the host with the destination port in the format {port}-{host}.

string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The host.

getHostBytes()

public ByteString getHostBytes()

Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To send traffic to a different port, clients may prefix the host with the destination port in the format {port}-{host}.

string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for host.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableAnnotations() (deprecated)

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Full name of this workstation.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Full name of this workstation.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getReconciling()

public boolean getReconciling()

Output only. Indicates whether this workstation is currently being updated to match its intended state.

bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The reconciling.

getStartTime()

public Timestamp getStartTime()

Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.

.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.

.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.

.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getState()

public Workstation.State getState()

Output only. Current state of the workstation.

.google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Workstation.State

The state.

getStateValue()

public int getStateValue()

Output only. Current state of the workstation.

.google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUid()

public String getUid()

Output only. A system-assigned unique identifier for this workstation.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. A system-assigned unique identifier for this workstation.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when this workstation was most recently updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when this workstation was most recently updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when this workstation was most recently updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when this workstation was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDeleteTime()

public boolean hasDeleteTime()

Output only. Time when this workstation was soft-deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the deleteTime field is set.

hasStartTime()

public boolean hasStartTime()

Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.

.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the startTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when this workstation was most recently updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Workstation.Builder mergeCreateTime(Timestamp value)

Output only. Time when this workstation was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Workstation.Builder

mergeDeleteTime(Timestamp value)

public Workstation.Builder mergeDeleteTime(Timestamp value)

Output only. Time when this workstation was soft-deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Workstation.Builder

mergeFrom(Workstation other)

public Workstation.Builder mergeFrom(Workstation other)
Parameter
NameDescription
otherWorkstation
Returns
TypeDescription
Workstation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public Workstation.Builder mergeStartTime(Timestamp value)

Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.

.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Workstation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Workstation.Builder mergeUpdateTime(Timestamp value)

Output only. Time when this workstation was most recently updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Workstation.Builder

putAllAnnotations(Map<String,String> values)

public Workstation.Builder putAllAnnotations(Map<String,String> values)

Optional. Client-specified annotations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Workstation.Builder

putAllLabels(Map<String,String> values)

public Workstation.Builder putAllLabels(Map<String,String> values)

Optional. Labels that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Workstation.Builder

putAnnotations(String key, String value)

public Workstation.Builder putAnnotations(String key, String value)

Optional. Client-specified annotations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Workstation.Builder

putLabels(String key, String value)

public Workstation.Builder putLabels(String key, String value)

Optional. Labels that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Workstation.Builder

removeAnnotations(String key)

public Workstation.Builder removeAnnotations(String key)

Optional. Client-specified annotations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
Workstation.Builder

removeLabels(String key)

public Workstation.Builder removeLabels(String key)

Optional. Labels that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
Workstation.Builder

setCreateTime(Timestamp value)

public Workstation.Builder setCreateTime(Timestamp value)

Output only. Time when this workstation was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Workstation.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Workstation.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when this workstation was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Workstation.Builder

setDeleteTime(Timestamp value)

public Workstation.Builder setDeleteTime(Timestamp value)

Output only. Time when this workstation was soft-deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Workstation.Builder

setDeleteTime(Timestamp.Builder builderForValue)

public Workstation.Builder setDeleteTime(Timestamp.Builder builderForValue)

Output only. Time when this workstation was soft-deleted.

.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Workstation.Builder

setDisplayName(String value)

public Workstation.Builder setDisplayName(String value)

Optional. Human-readable name for this workstation.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Workstation.Builder setDisplayNameBytes(ByteString value)

Optional. Human-readable name for this workstation.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

setEtag(String value)

public Workstation.Builder setEtag(String value)

Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.

string etag = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Workstation.Builder setEtagBytes(ByteString value)

Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.

string etag = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHost(String value)

public Workstation.Builder setHost(String value)

Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To send traffic to a different port, clients may prefix the host with the destination port in the format {port}-{host}.

string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The host to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

setHostBytes(ByteString value)

public Workstation.Builder setHostBytes(ByteString value)

Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To send traffic to a different port, clients may prefix the host with the destination port in the format {port}-{host}.

string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for host to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

setName(String value)

public Workstation.Builder setName(String value)

Full name of this workstation.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Workstation.Builder setNameBytes(ByteString value)

Full name of this workstation.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

setReconciling(boolean value)

public Workstation.Builder setReconciling(boolean value)

Output only. Indicates whether this workstation is currently being updated to match its intended state.

bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The reconciling to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

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

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

setStartTime(Timestamp value)

public Workstation.Builder setStartTime(Timestamp value)

Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.

.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Workstation.Builder

setStartTime(Timestamp.Builder builderForValue)

public Workstation.Builder setStartTime(Timestamp.Builder builderForValue)

Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.

.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Workstation.Builder

setState(Workstation.State value)

public Workstation.Builder setState(Workstation.State value)

Output only. Current state of the workstation.

.google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueWorkstation.State

The state to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

setStateValue(int value)

public Workstation.Builder setStateValue(int value)

Output only. Current state of the workstation.

.google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

setUid(String value)

public Workstation.Builder setUid(String value)

Output only. A system-assigned unique identifier for this workstation.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Workstation.Builder setUidBytes(ByteString value)

Output only. A system-assigned unique identifier for this workstation.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Workstation.Builder setUpdateTime(Timestamp value)

Output only. Time when this workstation was most recently updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Workstation.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Workstation.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time when this workstation was most recently updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Workstation.Builder