Class GetFromFamilyImageRequest.Builder (1.93.0)

public static final class GetFromFamilyImageRequest.Builder extends GeneratedMessage.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

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.

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.

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 GeneratedMessage.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

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.

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.