Class CloudWorkspaceSourceContext.Builder (1.23.0)

public static final class CloudWorkspaceSourceContext.Builder extends GeneratedMessageV3.Builder<CloudWorkspaceSourceContext.Builder> implements CloudWorkspaceSourceContextOrBuilder

A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.

Protobuf type google.devtools.source.v1.CloudWorkspaceSourceContext

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloudWorkspaceSourceContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder
Overrides

build()

public CloudWorkspaceSourceContext build()
Returns
TypeDescription
CloudWorkspaceSourceContext

buildPartial()

public CloudWorkspaceSourceContext buildPartial()
Returns
TypeDescription
CloudWorkspaceSourceContext

clear()

public CloudWorkspaceSourceContext.Builder clear()
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CloudWorkspaceSourceContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudWorkspaceSourceContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder
Overrides

clearSnapshotId()

public CloudWorkspaceSourceContext.Builder clearSnapshotId()

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

string snapshot_id = 2;

Returns
TypeDescription
CloudWorkspaceSourceContext.Builder

This builder for chaining.

clearWorkspaceId()

public CloudWorkspaceSourceContext.Builder clearWorkspaceId()

The ID of the workspace.

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

Returns
TypeDescription
CloudWorkspaceSourceContext.Builder

clone()

public CloudWorkspaceSourceContext.Builder clone()
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder
Overrides

getDefaultInstanceForType()

public CloudWorkspaceSourceContext getDefaultInstanceForType()
Returns
TypeDescription
CloudWorkspaceSourceContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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.

getWorkspaceIdBuilder()

public CloudWorkspaceId.Builder getWorkspaceIdBuilder()

The ID of the workspace.

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

Returns
TypeDescription
CloudWorkspaceId.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CloudWorkspaceSourceContext other)

public CloudWorkspaceSourceContext.Builder mergeFrom(CloudWorkspaceSourceContext other)
Parameter
NameDescription
otherCloudWorkspaceSourceContext
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloudWorkspaceSourceContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CloudWorkspaceSourceContext.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudWorkspaceSourceContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder
Overrides

mergeWorkspaceId(CloudWorkspaceId value)

public CloudWorkspaceSourceContext.Builder mergeWorkspaceId(CloudWorkspaceId value)

The ID of the workspace.

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

Parameter
NameDescription
valueCloudWorkspaceId
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CloudWorkspaceSourceContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CloudWorkspaceSourceContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder
Overrides

setSnapshotId(String value)

public CloudWorkspaceSourceContext.Builder setSnapshotId(String value)

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

string snapshot_id = 2;

Parameter
NameDescription
valueString

The snapshotId to set.

Returns
TypeDescription
CloudWorkspaceSourceContext.Builder

This builder for chaining.

setSnapshotIdBytes(ByteString value)

public CloudWorkspaceSourceContext.Builder setSnapshotIdBytes(ByteString value)

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

string snapshot_id = 2;

Parameter
NameDescription
valueByteString

The bytes for snapshotId to set.

Returns
TypeDescription
CloudWorkspaceSourceContext.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CloudWorkspaceSourceContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder
Overrides

setWorkspaceId(CloudWorkspaceId value)

public CloudWorkspaceSourceContext.Builder setWorkspaceId(CloudWorkspaceId value)

The ID of the workspace.

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

Parameter
NameDescription
valueCloudWorkspaceId
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder

setWorkspaceId(CloudWorkspaceId.Builder builderForValue)

public CloudWorkspaceSourceContext.Builder setWorkspaceId(CloudWorkspaceId.Builder builderForValue)

The ID of the workspace.

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

Parameter
NameDescription
builderForValueCloudWorkspaceId.Builder
Returns
TypeDescription
CloudWorkspaceSourceContext.Builder