Class CloudWorkspaceId.Builder (1.12.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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicCloudWorkspaceIdbuild()
Returns
Type Description

buildPartial()

publicCloudWorkspaceIdbuildPartial()
Returns
Type Description

clear()

publicCloudWorkspaceId.Builderclear()
Returns
Type Description
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCloudWorkspaceId.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
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
Returns
Type Description
Overrides

clearRepoId()

publicCloudWorkspaceId.BuilderclearRepoId()

The ID of the repo containing the workspace.

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

Returns
Type Description

clone()

publicCloudWorkspaceId.Builderclone()
Returns
Type Description
Overrides

getDefaultInstanceForType()

publicCloudWorkspaceIdgetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
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

getRepoIdOrBuilder()

publicRepoIdOrBuildergetRepoIdOrBuilder()

The ID of the repo containing the workspace.

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

Returns
Type Description

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
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(CloudWorkspaceId other)

publicCloudWorkspaceId.BuildermergeFrom(CloudWorkspaceIdother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCloudWorkspaceId.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicCloudWorkspaceId.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

publicCloudWorkspaceId.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
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
index int
value Object
Returns
Type Description
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

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

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCloudWorkspaceId.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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.