Class GetMachineImageRequest.Builder (1.33.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetMachineImageRequest build()
Returns
TypeDescription
GetMachineImageRequest

buildPartial()

public GetMachineImageRequest buildPartial()
Returns
TypeDescription
GetMachineImageRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMachineImage()

public GetMachineImageRequest.Builder clearMachineImage()

The name of the machine image.

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

Returns
TypeDescription
GetMachineImageRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetMachineImageRequest.Builder clearProject()

Project ID for this request.

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

Returns
TypeDescription
GetMachineImageRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetMachineImageRequest getDefaultInstanceForType()
Returns
TypeDescription
GetMachineImageRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMachineImage()

public String getMachineImage()

The name of the machine image.

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

Returns
TypeDescription
String

The machineImage.

getMachineImageBytes()

public ByteString getMachineImageBytes()

The name of the machine image.

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

Returns
TypeDescription
ByteString

The bytes for machineImage.

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(GetMachineImageRequest other)

public GetMachineImageRequest.Builder mergeFrom(GetMachineImageRequest other)
Parameter
NameDescription
otherGetMachineImageRequest
Returns
TypeDescription
GetMachineImageRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The machineImage to set.

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

The bytes for machineImage to set.

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

The project to set.

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

The bytes for project to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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