Class CloudWorkspaceId.Builder (1.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudWorkspaceId build()
Returns
TypeDescription
CloudWorkspaceId

buildPartial()

public CloudWorkspaceId buildPartial()
Returns
TypeDescription
CloudWorkspaceId

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CloudWorkspaceId.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
CloudWorkspaceId.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudWorkspaceId.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CloudWorkspaceId.Builder

clone()

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

getDefaultInstanceForType()

public CloudWorkspaceId getDefaultInstanceForType()
Returns
TypeDescription
CloudWorkspaceId

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RepoId.Builder

getRepoIdOrBuilder()

public RepoIdOrBuilder getRepoIdOrBuilder()

The ID of the repo containing the workspace.

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

Returns
TypeDescription
RepoIdOrBuilder

hasRepoId()

public boolean hasRepoId()

The ID of the repo containing the workspace.

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

Returns
TypeDescription
boolean

Whether the repoId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CloudWorkspaceId other)

public CloudWorkspaceId.Builder mergeFrom(CloudWorkspaceId other)
Parameter
NameDescription
otherCloudWorkspaceId
Returns
TypeDescription
CloudWorkspaceId.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CloudWorkspaceId.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRepoId
Returns
TypeDescription
CloudWorkspaceId.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CloudWorkspaceId.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueRepoId
Returns
TypeDescription
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
NameDescription
builderForValueRepoId.Builder
Returns
TypeDescription
CloudWorkspaceId.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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