Class Workstation.Builder (0.11.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.v1beta.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 resource 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 resource was soft-deleted.

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

Returns
TypeDescription
Workstation.Builder

clearDisplayName()

public Workstation.Builder clearDisplayName()

Human-readable name for this resource.

string display_name = 2;

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

clearEnv()

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

clearEtag()

public Workstation.Builder clearEtag()

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;

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 resource.

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 resource 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.

clearState()

public Workstation.Builder clearState()

Output only. Current state of the workstation.

.google.cloud.workstations.v1beta.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 identified for this resource.

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 resource 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)

Client-specified annotations.

map<string, string> annotations = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsEnv(String key)

public boolean containsEnv(String key)

Environment variables passed to the workstation container's entrypoint.

map<string, string> env = 12;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Client-specified annotations.

map<string, string> annotations = 5;

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Client-specified annotations.

map<string, string> annotations = 5;

Returns
TypeDescription
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Client-specified annotations.

map<string, string> annotations = 5;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Client-specified annotations.

map<string, string> annotations = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when this resource 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 resource 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 resource 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 resource 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 resource 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 resource 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()

Human-readable name for this resource.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Human-readable name for this resource.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getEnv()

public Map<String,String> getEnv()

Use #getEnvMap() instead.

Returns
TypeDescription
Map<String,String>

getEnvCount()

public int getEnvCount()

Environment variables passed to the workstation container's entrypoint.

map<string, string> env = 12;

Returns
TypeDescription
int

getEnvMap()

public Map<String,String> getEnvMap()

Environment variables passed to the workstation container's entrypoint.

map<string, string> env = 12;

Returns
TypeDescription
Map<String,String>

getEnvOrDefault(String key, String defaultValue)

public String getEnvOrDefault(String key, String defaultValue)

Environment variables passed to the workstation container's entrypoint.

map<string, string> env = 12;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getEnvOrThrow(String key)

public String getEnvOrThrow(String key)

Environment variables passed to the workstation container's entrypoint.

map<string, string> env = 12;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getEtag()

public String getEtag()

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;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

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;

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()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableAnnotations()

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableEnv()

public Map<String,String> getMutableEnv()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Full name of this resource.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Full name of this resource.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getReconciling()

public boolean getReconciling()

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

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

Returns
TypeDescription
boolean

The reconciling.

getState()

public Workstation.State getState()

Output only. Current state of the workstation.

.google.cloud.workstations.v1beta.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.v1beta.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 identified for this resource.

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

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. A system-assigned unique identified for this resource.

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 resource 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 resource 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 resource 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 resource 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 resource was soft-deleted.

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

Returns
TypeDescription
boolean

Whether the deleteTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when this resource 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 resource 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 resource 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

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 resource 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)

Client-specified annotations.

map<string, string> annotations = 5;

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

putAllEnv(Map<String,String> values)

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

Environment variables passed to the workstation container's entrypoint.

map<string, string> env = 12;

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

putAllLabels(Map<String,String> values)

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

Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13;

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

putAnnotations(String key, String value)

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

Client-specified annotations.

map<string, string> annotations = 5;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Workstation.Builder

putEnv(String key, String value)

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

Environment variables passed to the workstation container's entrypoint.

map<string, string> env = 12;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Workstation.Builder

putLabels(String key, String value)

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

Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Workstation.Builder

removeAnnotations(String key)

public Workstation.Builder removeAnnotations(String key)

Client-specified annotations.

map<string, string> annotations = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
Workstation.Builder

removeEnv(String key)

public Workstation.Builder removeEnv(String key)

Environment variables passed to the workstation container's entrypoint.

map<string, string> env = 12;

Parameter
NameDescription
keyString
Returns
TypeDescription
Workstation.Builder

removeLabels(String key)

public Workstation.Builder removeLabels(String key)

Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.

map<string, string> labels = 13;

Parameter
NameDescription
keyString
Returns
TypeDescription
Workstation.Builder

setCreateTime(Timestamp value)

public Workstation.Builder setCreateTime(Timestamp value)

Output only. Time when this resource 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 resource 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 resource 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 resource 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)

Human-readable name for this resource.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Workstation.Builder setDisplayNameBytes(ByteString value)

Human-readable name for this resource.

string display_name = 2;

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)

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;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
Workstation.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Workstation.Builder setEtagBytes(ByteString value)

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;

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 resource.

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 resource.

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 resource 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

setState(Workstation.State value)

public Workstation.Builder setState(Workstation.State value)

Output only. Current state of the workstation.

.google.cloud.workstations.v1beta.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.v1beta.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 identified for this resource.

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 identified for this resource.

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 resource 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 resource was most recently updated.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Workstation.Builder