Class GetSnapshotSettingRequest.Builder (1.45.0)

public static final class GetSnapshotSettingRequest.Builder extends GeneratedMessageV3.Builder<GetSnapshotSettingRequest.Builder> implements GetSnapshotSettingRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetSnapshotSettingRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetSnapshotSettingRequest build()
Returns
TypeDescription
GetSnapshotSettingRequest

buildPartial()

public GetSnapshotSettingRequest buildPartial()
Returns
TypeDescription
GetSnapshotSettingRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetSnapshotSettingRequest.Builder clearProject()

Project ID for this request.

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

Returns
TypeDescription
GetSnapshotSettingRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetSnapshotSettingRequest getDefaultInstanceForType()
Returns
TypeDescription
GetSnapshotSettingRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetSnapshotSettingRequest other)

public GetSnapshotSettingRequest.Builder mergeFrom(GetSnapshotSettingRequest other)
Parameter
NameDescription
otherGetSnapshotSettingRequest
Returns
TypeDescription
GetSnapshotSettingRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(String value)

public GetSnapshotSettingRequest.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
GetSnapshotSettingRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetSnapshotSettingRequest.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
GetSnapshotSettingRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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