Class CloudWorkspaceId.Builder (1.42.0)

public static final class CloudWorkspaceId.Builder extends GeneratedMessageV3.Builder<CloudWorkspaceId.Builder> implements CloudWorkspaceIdOrBuilder

A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud workspace is a place associated with a repo where modified files can be stored before they are committed.

Protobuf type google.devtools.source.v1.CloudWorkspaceId

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloudWorkspaceId.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

build()

public CloudWorkspaceId build()
Returns
Type Description
CloudWorkspaceId

buildPartial()

public CloudWorkspaceId buildPartial()
Returns
Type Description
CloudWorkspaceId

clear()

public CloudWorkspaceId.Builder clear()
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CloudWorkspaceId.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

clearName()

public CloudWorkspaceId.Builder clearName()

The unique name of the workspace within the repo. This is the name chosen by the client in the Source API's CreateWorkspace method.

string name = 2;

Returns
Type Description
CloudWorkspaceId.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudWorkspaceId.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

clearRepoId()

public CloudWorkspaceId.Builder clearRepoId()

The ID of the repo containing the workspace.

.google.devtools.source.v1.RepoId repo_id = 1;

Returns
Type Description
CloudWorkspaceId.Builder

clone()

public CloudWorkspaceId.Builder clone()
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

getDefaultInstanceForType()

public CloudWorkspaceId getDefaultInstanceForType()
Returns
Type Description
CloudWorkspaceId

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

The unique name of the workspace within the repo. This is the name chosen by the client in the Source API's CreateWorkspace method.

string name = 2;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The unique name of the workspace within the repo. This is the name chosen by the client in the Source API's CreateWorkspace method.

string name = 2;

Returns
Type Description
ByteString

The bytes for name.

getRepoId()

public RepoId getRepoId()

The ID of the repo containing the workspace.

.google.devtools.source.v1.RepoId repo_id = 1;

Returns
Type Description
RepoId

The repoId.

getRepoIdBuilder()

public RepoId.Builder getRepoIdBuilder()

The ID of the repo containing the workspace.

.google.devtools.source.v1.RepoId repo_id = 1;

Returns
Type Description
RepoId.Builder

getRepoIdOrBuilder()

public RepoIdOrBuilder getRepoIdOrBuilder()

The ID of the repo containing the workspace.

.google.devtools.source.v1.RepoId repo_id = 1;

Returns
Type Description
RepoIdOrBuilder

hasRepoId()

public boolean hasRepoId()

The ID of the repo containing the workspace.

.google.devtools.source.v1.RepoId repo_id = 1;

Returns
Type Description
boolean

Whether the repoId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudWorkspaceId other)

public CloudWorkspaceId.Builder mergeFrom(CloudWorkspaceId other)
Parameter
Name Description
other CloudWorkspaceId
Returns
Type Description
CloudWorkspaceId.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloudWorkspaceId.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudWorkspaceId.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CloudWorkspaceId.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

mergeRepoId(RepoId value)

public CloudWorkspaceId.Builder mergeRepoId(RepoId value)

The ID of the repo containing the workspace.

.google.devtools.source.v1.RepoId repo_id = 1;

Parameter
Name Description
value RepoId
Returns
Type Description
CloudWorkspaceId.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudWorkspaceId.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CloudWorkspaceId.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

setName(String value)

public CloudWorkspaceId.Builder setName(String value)

The unique name of the workspace within the repo. This is the name chosen by the client in the Source API's CreateWorkspace method.

string name = 2;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
CloudWorkspaceId.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CloudWorkspaceId.Builder setNameBytes(ByteString value)

The unique name of the workspace within the repo. This is the name chosen by the client in the Source API's CreateWorkspace method.

string name = 2;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
CloudWorkspaceId.Builder

This builder for chaining.

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

public CloudWorkspaceId.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

setRepoId(RepoId value)

public CloudWorkspaceId.Builder setRepoId(RepoId value)

The ID of the repo containing the workspace.

.google.devtools.source.v1.RepoId repo_id = 1;

Parameter
Name Description
value RepoId
Returns
Type Description
CloudWorkspaceId.Builder

setRepoId(RepoId.Builder builderForValue)

public CloudWorkspaceId.Builder setRepoId(RepoId.Builder builderForValue)

The ID of the repo containing the workspace.

.google.devtools.source.v1.RepoId repo_id = 1;

Parameter
Name Description
builderForValue RepoId.Builder
Returns
Type Description
CloudWorkspaceId.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CloudWorkspaceId.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudWorkspaceId.Builder
Overrides