Class CloudWorkspaceId.Builder (1.27.0)

publicstaticfinalclass CloudWorkspaceId.BuilderextendsGeneratedMessageV3.Builder<CloudWorkspaceId.Builder>implementsCloudWorkspaceIdOrBuilder

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCloudWorkspaceId.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

build()

publicCloudWorkspaceIdbuild()
Returns
Type Description
CloudWorkspaceId

buildPartial()

publicCloudWorkspaceIdbuildPartial()
Returns
Type Description
CloudWorkspaceId

clear()

publicCloudWorkspaceId.Builderclear()
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCloudWorkspaceId.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

clearName()

publicCloudWorkspaceId.BuilderclearName()

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)

publicCloudWorkspaceId.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

clearRepoId()

publicCloudWorkspaceId.BuilderclearRepoId()

The ID of the repo containing the workspace.

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

Returns
Type Description
CloudWorkspaceId.Builder

clone()

publicCloudWorkspaceId.Builderclone()
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

getDefaultInstanceForType()

publicCloudWorkspaceIdgetDefaultInstanceForType()
Returns
Type Description
CloudWorkspaceId

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

publicStringgetName()

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

publicByteStringgetNameBytes()

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

publicRepoIdgetRepoId()

The ID of the repo containing the workspace.

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

Returns
Type Description
RepoId

The repoId.

getRepoIdBuilder()

publicRepoId.BuildergetRepoIdBuilder()

The ID of the repo containing the workspace.

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

Returns
Type Description
RepoId.Builder

getRepoIdOrBuilder()

publicRepoIdOrBuildergetRepoIdOrBuilder()

The ID of the repo containing the workspace.

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

Returns
Type Description
RepoIdOrBuilder

hasRepoId()

publicbooleanhasRepoId()

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

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudWorkspaceId other)

publicCloudWorkspaceId.BuildermergeFrom(CloudWorkspaceIdother)
Parameter
Name Description
other CloudWorkspaceId
Returns
Type Description
CloudWorkspaceId.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCloudWorkspaceId.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudWorkspaceId.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicCloudWorkspaceId.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

mergeRepoId(RepoId value)

publicCloudWorkspaceId.BuildermergeRepoId(RepoIdvalue)

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)

publicfinalCloudWorkspaceId.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicCloudWorkspaceId.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

setName(String value)

publicCloudWorkspaceId.BuildersetName(Stringvalue)

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)

publicCloudWorkspaceId.BuildersetNameBytes(ByteStringvalue)

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)

publicCloudWorkspaceId.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

setRepoId(RepoId value)

publicCloudWorkspaceId.BuildersetRepoId(RepoIdvalue)

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)

publicCloudWorkspaceId.BuildersetRepoId(RepoId.BuilderbuilderForValue)

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)

publicfinalCloudWorkspaceId.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudWorkspaceId.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.