Class CloudWorkspaceSourceContext (1.44.0)

public final class CloudWorkspaceSourceContext extends GeneratedMessageV3 implements CloudWorkspaceSourceContextOrBuilder

A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.

Protobuf type google.devtools.source.v1.CloudWorkspaceSourceContext

Static Fields

SNAPSHOT_ID_FIELD_NUMBER

public static final int SNAPSHOT_ID_FIELD_NUMBER
Field Value
Type Description
int

WORKSPACE_ID_FIELD_NUMBER

public static final int WORKSPACE_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CloudWorkspaceSourceContext getDefaultInstance()
Returns
Type Description
CloudWorkspaceSourceContext

getDescriptor()

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

newBuilder()

public static CloudWorkspaceSourceContext.Builder newBuilder()
Returns
Type Description
CloudWorkspaceSourceContext.Builder

newBuilder(CloudWorkspaceSourceContext prototype)

public static CloudWorkspaceSourceContext.Builder newBuilder(CloudWorkspaceSourceContext prototype)
Parameter
Name Description
prototype CloudWorkspaceSourceContext
Returns
Type Description
CloudWorkspaceSourceContext.Builder

parseDelimitedFrom(InputStream input)

public static CloudWorkspaceSourceContext parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CloudWorkspaceSourceContext
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudWorkspaceSourceContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudWorkspaceSourceContext
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CloudWorkspaceSourceContext parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CloudWorkspaceSourceContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CloudWorkspaceSourceContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudWorkspaceSourceContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CloudWorkspaceSourceContext parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CloudWorkspaceSourceContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CloudWorkspaceSourceContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudWorkspaceSourceContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CloudWorkspaceSourceContext parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CloudWorkspaceSourceContext
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudWorkspaceSourceContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudWorkspaceSourceContext
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CloudWorkspaceSourceContext parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CloudWorkspaceSourceContext
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudWorkspaceSourceContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudWorkspaceSourceContext
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CloudWorkspaceSourceContext parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CloudWorkspaceSourceContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CloudWorkspaceSourceContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudWorkspaceSourceContext
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CloudWorkspaceSourceContext> parser()
Returns
Type Description
Parser<CloudWorkspaceSourceContext>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CloudWorkspaceSourceContext getDefaultInstanceForType()
Returns
Type Description
CloudWorkspaceSourceContext

getParserForType()

public Parser<CloudWorkspaceSourceContext> getParserForType()
Returns
Type Description
Parser<CloudWorkspaceSourceContext>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSnapshotId()

public String getSnapshotId()

The ID of the snapshot. An empty snapshot_id refers to the most recent snapshot.

string snapshot_id = 2;

Returns
Type Description
String

The snapshotId.

getSnapshotIdBytes()

public ByteString getSnapshotIdBytes()

The ID of the snapshot. An empty snapshot_id refers to the most recent snapshot.

string snapshot_id = 2;

Returns
Type Description
ByteString

The bytes for snapshotId.

getWorkspaceId()

public CloudWorkspaceId getWorkspaceId()

The ID of the workspace.

.google.devtools.source.v1.CloudWorkspaceId workspace_id = 1;

Returns
Type Description
CloudWorkspaceId

The workspaceId.

getWorkspaceIdOrBuilder()

public CloudWorkspaceIdOrBuilder getWorkspaceIdOrBuilder()

The ID of the workspace.

.google.devtools.source.v1.CloudWorkspaceId workspace_id = 1;

Returns
Type Description
CloudWorkspaceIdOrBuilder

hasWorkspaceId()

public boolean hasWorkspaceId()

The ID of the workspace.

.google.devtools.source.v1.CloudWorkspaceId workspace_id = 1;

Returns
Type Description
boolean

Whether the workspaceId field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CloudWorkspaceSourceContext.Builder newBuilderForType()
Returns
Type Description
CloudWorkspaceSourceContext.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CloudWorkspaceSourceContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CloudWorkspaceSourceContext.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CloudWorkspaceSourceContext.Builder toBuilder()
Returns
Type Description
CloudWorkspaceSourceContext.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException