Class GetRegionInstantSnapshotRequest.Builder (1.51.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRegionInstantSnapshotRequest build()
Returns
TypeDescription
GetRegionInstantSnapshotRequest

buildPartial()

public GetRegionInstantSnapshotRequest buildPartial()
Returns
TypeDescription
GetRegionInstantSnapshotRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GetRegionInstantSnapshotRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GetRegionInstantSnapshotRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetRegionInstantSnapshotRequest.Builder clearProject()

Project ID for this request.

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

Returns
TypeDescription
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
TypeDescription
GetRegionInstantSnapshotRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetRegionInstantSnapshotRequest getDefaultInstanceForType()
Returns
TypeDescription
GetRegionInstantSnapshotRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstantSnapshot()

public String getInstantSnapshot()

Name of the InstantSnapshot resource to return.

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

Returns
TypeDescription
String

The instantSnapshot.

getInstantSnapshotBytes()

public ByteString getInstantSnapshotBytes()

Name of the InstantSnapshot resource to return.

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

Returns
TypeDescription
ByteString

The bytes for instantSnapshot.

getProject()

public String getProject()

Project ID for this request.

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

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

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

Returns
TypeDescription
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
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

The name of the region for this request.

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

Returns
TypeDescription
ByteString

The bytes for region.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetRegionInstantSnapshotRequest other)

public GetRegionInstantSnapshotRequest.Builder mergeFrom(GetRegionInstantSnapshotRequest other)
Parameter
NameDescription
otherGetRegionInstantSnapshotRequest
Returns
TypeDescription
GetRegionInstantSnapshotRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public GetRegionInstantSnapshotRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The instantSnapshot to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for instantSnapshot to set.

Returns
TypeDescription
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
NameDescription
valueString

The project to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
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
NameDescription
valueString

The region to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetRegionInstantSnapshotRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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