Class CloudWorkspaceSourceContext (1.19.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
TypeDescription
int

WORKSPACE_ID_FIELD_NUMBER

public static final int WORKSPACE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CloudWorkspaceSourceContext getDefaultInstance()
Returns
TypeDescription
CloudWorkspaceSourceContext

getDescriptor()

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

newBuilder()

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

newBuilder(CloudWorkspaceSourceContext prototype)

public static CloudWorkspaceSourceContext.Builder newBuilder(CloudWorkspaceSourceContext prototype)
Parameter
NameDescription
prototypeCloudWorkspaceSourceContext
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CloudWorkspaceSourceContext getDefaultInstanceForType()
Returns
TypeDescription
CloudWorkspaceSourceContext

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for snapshotId.

getWorkspaceId()

public CloudWorkspaceId getWorkspaceId()

The ID of the workspace.

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

Returns
TypeDescription
CloudWorkspaceId

The workspaceId.

getWorkspaceIdOrBuilder()

public CloudWorkspaceIdOrBuilder getWorkspaceIdOrBuilder()

The ID of the workspace.

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

Returns
TypeDescription
CloudWorkspaceIdOrBuilder

hasWorkspaceId()

public boolean hasWorkspaceId()

The ID of the workspace.

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

Returns
TypeDescription
boolean

Whether the workspaceId 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 CloudWorkspaceSourceContext.Builder newBuilderForType()
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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