Class GetFromFamilyImageRequest.Builder (1.64.0)

public static final class GetFromFamilyImageRequest.Builder extends GeneratedMessageV3.Builder<GetFromFamilyImageRequest.Builder> implements GetFromFamilyImageRequestOrBuilder

A request message for Images.GetFromFamily. See the method description for details.

Protobuf type google.cloud.compute.v1.GetFromFamilyImageRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetFromFamilyImageRequest build()
Returns
Type Description
GetFromFamilyImageRequest

buildPartial()

public GetFromFamilyImageRequest buildPartial()
Returns
Type Description
GetFromFamilyImageRequest

clear()

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

clearFamily()

public GetFromFamilyImageRequest.Builder clearFamily()

Name of the image family to search for.

string family = 328751972 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetFromFamilyImageRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetFromFamilyImageRequest.Builder clearProject()

The image project that the image belongs to. For example, to get a CentOS image, specify centos-cloud as the image project.

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

Returns
Type Description
GetFromFamilyImageRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetFromFamilyImageRequest getDefaultInstanceForType()
Returns
Type Description
GetFromFamilyImageRequest

getDescriptorForType()

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

getFamily()

public String getFamily()

Name of the image family to search for.

string family = 328751972 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The family.

getFamilyBytes()

public ByteString getFamilyBytes()

Name of the image family to search for.

string family = 328751972 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for family.

getProject()

public String getProject()

The image project that the image belongs to. For example, to get a CentOS image, specify centos-cloud as the image project.

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

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

The image project that the image belongs to. For example, to get a CentOS image, specify centos-cloud as the image project.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setFamily(String value)

public GetFromFamilyImageRequest.Builder setFamily(String value)

Name of the image family to search for.

string family = 328751972 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The family to set.

Returns
Type Description
GetFromFamilyImageRequest.Builder

This builder for chaining.

setFamilyBytes(ByteString value)

public GetFromFamilyImageRequest.Builder setFamilyBytes(ByteString value)

Name of the image family to search for.

string family = 328751972 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for family to set.

Returns
Type Description
GetFromFamilyImageRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(String value)

public GetFromFamilyImageRequest.Builder setProject(String value)

The image project that the image belongs to. For example, to get a CentOS image, specify centos-cloud as the image project.

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

Parameter
Name Description
value String

The project to set.

Returns
Type Description
GetFromFamilyImageRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetFromFamilyImageRequest.Builder setProjectBytes(ByteString value)

The image project that the image belongs to. For example, to get a CentOS image, specify centos-cloud as the image project.

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

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
GetFromFamilyImageRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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