Class CloudWorkspaceId (1.34.0)

public final class CloudWorkspaceId extends GeneratedMessageV3 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 Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

REPO_ID_FIELD_NUMBER

public static final int REPO_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CloudWorkspaceId getDefaultInstance()
Returns
TypeDescription
CloudWorkspaceId

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CloudWorkspaceId.Builder newBuilder()
Returns
TypeDescription
CloudWorkspaceId.Builder

newBuilder(CloudWorkspaceId prototype)

public static CloudWorkspaceId.Builder newBuilder(CloudWorkspaceId prototype)
Parameter
NameDescription
prototypeCloudWorkspaceId
Returns
TypeDescription
CloudWorkspaceId.Builder

parseDelimitedFrom(InputStream input)

public static CloudWorkspaceId parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CloudWorkspaceId
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudWorkspaceId parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudWorkspaceId
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CloudWorkspaceId parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CloudWorkspaceId
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CloudWorkspaceId parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudWorkspaceId
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CloudWorkspaceId parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CloudWorkspaceId
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CloudWorkspaceId parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudWorkspaceId
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CloudWorkspaceId parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CloudWorkspaceId
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudWorkspaceId parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudWorkspaceId
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CloudWorkspaceId parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CloudWorkspaceId
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudWorkspaceId parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudWorkspaceId
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CloudWorkspaceId parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CloudWorkspaceId
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CloudWorkspaceId parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudWorkspaceId
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CloudWorkspaceId> parser()
Returns
TypeDescription
Parser<CloudWorkspaceId>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CloudWorkspaceId getDefaultInstanceForType()
Returns
TypeDescription
CloudWorkspaceId

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.

getParserForType()

public Parser<CloudWorkspaceId> getParserForType()
Returns
TypeDescription
Parser<CloudWorkspaceId>
Overrides

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.

getRepoIdOrBuilder()

public RepoIdOrBuilder getRepoIdOrBuilder()

The ID of the repo containing the workspace.

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

Returns
TypeDescription
RepoIdOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CloudWorkspaceId.Builder newBuilderForType()
Returns
TypeDescription
CloudWorkspaceId.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CloudWorkspaceId.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CloudWorkspaceId.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CloudWorkspaceId.Builder toBuilder()
Returns
TypeDescription
CloudWorkspaceId.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException