Class GetMachineImageRequest.Builder (1.56.0)

public static final class GetMachineImageRequest.Builder extends GeneratedMessageV3.Builder<GetMachineImageRequest.Builder> implements GetMachineImageRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetMachineImageRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetMachineImageRequest build()
Returns
Type Description
GetMachineImageRequest

buildPartial()

public GetMachineImageRequest buildPartial()
Returns
Type Description
GetMachineImageRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMachineImage()

public GetMachineImageRequest.Builder clearMachineImage()

The name of the machine image.

string machine_image = 69189475 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetMachineImageRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetMachineImageRequest.Builder clearProject()

Project ID for this request.

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

Returns
Type Description
GetMachineImageRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetMachineImageRequest getDefaultInstanceForType()
Returns
Type Description
GetMachineImageRequest

getDescriptorForType()

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

getMachineImage()

public String getMachineImage()

The name of the machine image.

string machine_image = 69189475 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The machineImage.

getMachineImageBytes()

public ByteString getMachineImageBytes()

The name of the machine image.

string machine_image = 69189475 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for machineImage.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetMachineImageRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineImage(String value)

public GetMachineImageRequest.Builder setMachineImage(String value)

The name of the machine image.

string machine_image = 69189475 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The machineImage to set.

Returns
Type Description
GetMachineImageRequest.Builder

This builder for chaining.

setMachineImageBytes(ByteString value)

public GetMachineImageRequest.Builder setMachineImageBytes(ByteString value)

The name of the machine image.

string machine_image = 69189475 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for machineImage to set.

Returns
Type Description
GetMachineImageRequest.Builder

This builder for chaining.

setProject(String value)

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

This builder for chaining.

setProjectBytes(ByteString value)

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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