Class GetFromFamilyImageRequest.Builder (1.26.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetFromFamilyImageRequest build()
Returns
TypeDescription
GetFromFamilyImageRequest

buildPartial()

public GetFromFamilyImageRequest buildPartial()
Returns
TypeDescription
GetFromFamilyImageRequest

clear()

public GetFromFamilyImageRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
GetFromFamilyImageRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public GetFromFamilyImageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
GetFromFamilyImageRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetFromFamilyImageRequest getDefaultInstanceForType()
Returns
TypeDescription
GetFromFamilyImageRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFamily()

public String getFamily()

Name of the image family to search for.

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

Returns
TypeDescription
String

The family.

getFamilyBytes()

public ByteString getFamilyBytes()

Name of the image family to search for.

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

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

public GetFromFamilyImageRequest.Builder mergeFrom(GetFromFamilyImageRequest other)
Parameter
NameDescription
otherGetFromFamilyImageRequest
Returns
TypeDescription
GetFromFamilyImageRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetFromFamilyImageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The family to set.

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

The bytes for family to set.

Returns
TypeDescription
GetFromFamilyImageRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The project to set.

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

The bytes for project to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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