Class ManagedInstanceVersion.Builder (1.43.0)

public static final class ManagedInstanceVersion.Builder extends GeneratedMessageV3.Builder<ManagedInstanceVersion.Builder> implements ManagedInstanceVersionOrBuilder

Protobuf type google.cloud.compute.v1.ManagedInstanceVersion

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ManagedInstanceVersion build()
Returns
TypeDescription
ManagedInstanceVersion

buildPartial()

public ManagedInstanceVersion buildPartial()
Returns
TypeDescription
ManagedInstanceVersion

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceTemplate()

public ManagedInstanceVersion.Builder clearInstanceTemplate()

[Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.

optional string instance_template = 309248228;

Returns
TypeDescription
ManagedInstanceVersion.Builder

This builder for chaining.

clearName()

public ManagedInstanceVersion.Builder clearName()

[Output Only] Name of the version.

optional string name = 3373707;

Returns
TypeDescription
ManagedInstanceVersion.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ManagedInstanceVersion getDefaultInstanceForType()
Returns
TypeDescription
ManagedInstanceVersion

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstanceTemplate()

public String getInstanceTemplate()

[Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.

optional string instance_template = 309248228;

Returns
TypeDescription
String

The instanceTemplate.

getInstanceTemplateBytes()

public ByteString getInstanceTemplateBytes()

[Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.

optional string instance_template = 309248228;

Returns
TypeDescription
ByteString

The bytes for instanceTemplate.

getName()

public String getName()

[Output Only] Name of the version.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

[Output Only] Name of the version.

optional string name = 3373707;

Returns
TypeDescription
ByteString

The bytes for name.

hasInstanceTemplate()

public boolean hasInstanceTemplate()

[Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.

optional string instance_template = 309248228;

Returns
TypeDescription
boolean

Whether the instanceTemplate field is set.

hasName()

public boolean hasName()

[Output Only] Name of the version.

optional string name = 3373707;

Returns
TypeDescription
boolean

Whether the name field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ManagedInstanceVersion other)

public ManagedInstanceVersion.Builder mergeFrom(ManagedInstanceVersion other)
Parameter
NameDescription
otherManagedInstanceVersion
Returns
TypeDescription
ManagedInstanceVersion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceTemplate(String value)

public ManagedInstanceVersion.Builder setInstanceTemplate(String value)

[Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.

optional string instance_template = 309248228;

Parameter
NameDescription
valueString

The instanceTemplate to set.

Returns
TypeDescription
ManagedInstanceVersion.Builder

This builder for chaining.

setInstanceTemplateBytes(ByteString value)

public ManagedInstanceVersion.Builder setInstanceTemplateBytes(ByteString value)

[Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.

optional string instance_template = 309248228;

Parameter
NameDescription
valueByteString

The bytes for instanceTemplate to set.

Returns
TypeDescription
ManagedInstanceVersion.Builder

This builder for chaining.

setName(String value)

public ManagedInstanceVersion.Builder setName(String value)

[Output Only] Name of the version.

optional string name = 3373707;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ManagedInstanceVersion.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ManagedInstanceVersion.Builder setNameBytes(ByteString value)

[Output Only] Name of the version.

optional string name = 3373707;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ManagedInstanceVersion.Builder

This builder for chaining.

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

public ManagedInstanceVersion.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ManagedInstanceVersion.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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