Class GetRegionInstantSnapshotRequest.Builder (1.54.0)

public static final class GetRegionInstantSnapshotRequest.Builder extends GeneratedMessageV3.Builder<GetRegionInstantSnapshotRequest.Builder> implements GetRegionInstantSnapshotRequestOrBuilder

A request message for RegionInstantSnapshots.Get. See the method description for details.

Protobuf type google.cloud.compute.v1.GetRegionInstantSnapshotRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetRegionInstantSnapshotRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetRegionInstantSnapshotRequest.Builder
Overrides

build()

public GetRegionInstantSnapshotRequest build()
Returns
Type Description
GetRegionInstantSnapshotRequest

buildPartial()

public GetRegionInstantSnapshotRequest buildPartial()
Returns
Type Description
GetRegionInstantSnapshotRequest

clear()

public GetRegionInstantSnapshotRequest.Builder clear()
Returns
Type Description
GetRegionInstantSnapshotRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetRegionInstantSnapshotRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GetRegionInstantSnapshotRequest.Builder
Overrides

clearInstantSnapshot()

public GetRegionInstantSnapshotRequest.Builder clearInstantSnapshot()

Name of the InstantSnapshot resource to return.

string instant_snapshot = 391638626 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetRegionInstantSnapshotRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetRegionInstantSnapshotRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GetRegionInstantSnapshotRequest.Builder
Overrides

clearProject()

public GetRegionInstantSnapshotRequest.Builder clearProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetRegionInstantSnapshotRequest.Builder

This builder for chaining.

clearRegion()

public GetRegionInstantSnapshotRequest.Builder clearRegion()

The name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetRegionInstantSnapshotRequest.Builder

This builder for chaining.

clone()

public GetRegionInstantSnapshotRequest.Builder clone()
Returns
Type Description
GetRegionInstantSnapshotRequest.Builder
Overrides

getDefaultInstanceForType()

public GetRegionInstantSnapshotRequest getDefaultInstanceForType()
Returns
Type Description
GetRegionInstantSnapshotRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstantSnapshot()

public String getInstantSnapshot()

Name of the InstantSnapshot resource to return.

string instant_snapshot = 391638626 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The instantSnapshot.

getInstantSnapshotBytes()

public ByteString getInstantSnapshotBytes()

Name of the InstantSnapshot resource to return.

string instant_snapshot = 391638626 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for instantSnapshot.

getProject()

public String getProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for project.

getRegion()

public String getRegion()

The name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

The name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for region.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetRegionInstantSnapshotRequest other)

public GetRegionInstantSnapshotRequest.Builder mergeFrom(GetRegionInstantSnapshotRequest other)
Parameter
Name Description
other GetRegionInstantSnapshotRequest
Returns
Type Description
GetRegionInstantSnapshotRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetRegionInstantSnapshotRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetRegionInstantSnapshotRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GetRegionInstantSnapshotRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GetRegionInstantSnapshotRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetRegionInstantSnapshotRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetRegionInstantSnapshotRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetRegionInstantSnapshotRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetRegionInstantSnapshotRequest.Builder
Overrides

setInstantSnapshot(String value)

public GetRegionInstantSnapshotRequest.Builder setInstantSnapshot(String value)

Name of the InstantSnapshot resource to return.

string instant_snapshot = 391638626 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The instantSnapshot to set.

Returns
Type Description
GetRegionInstantSnapshotRequest.Builder

This builder for chaining.

setInstantSnapshotBytes(ByteString value)

public GetRegionInstantSnapshotRequest.Builder setInstantSnapshotBytes(ByteString value)

Name of the InstantSnapshot resource to return.

string instant_snapshot = 391638626 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for instantSnapshot to set.

Returns
Type Description
GetRegionInstantSnapshotRequest.Builder

This builder for chaining.

setProject(String value)

public GetRegionInstantSnapshotRequest.Builder setProject(String value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The project to set.

Returns
Type Description
GetRegionInstantSnapshotRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetRegionInstantSnapshotRequest.Builder setProjectBytes(ByteString value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
GetRegionInstantSnapshotRequest.Builder

This builder for chaining.

setRegion(String value)

public GetRegionInstantSnapshotRequest.Builder setRegion(String value)

The name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The region to set.

Returns
Type Description
GetRegionInstantSnapshotRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public GetRegionInstantSnapshotRequest.Builder setRegionBytes(ByteString value)

The name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
GetRegionInstantSnapshotRequest.Builder

This builder for chaining.

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

public GetRegionInstantSnapshotRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetRegionInstantSnapshotRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetRegionInstantSnapshotRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetRegionInstantSnapshotRequest.Builder
Overrides