Class InstanceParams.Builder (1.43.0)

public static final class InstanceParams.Builder extends GeneratedMessageV3.Builder<InstanceParams.Builder> implements InstanceParamsOrBuilder

Additional instance params.

Protobuf type google.cloud.compute.v1.InstanceParams

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceParams build()
Returns
TypeDescription
InstanceParams

buildPartial()

public InstanceParams buildPartial()
Returns
TypeDescription
InstanceParams

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceManagerTags()

public InstanceParams.Builder clearResourceManagerTags()
Returns
TypeDescription
InstanceParams.Builder

clone()

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

containsResourceManagerTags(String key)

public boolean containsResourceManagerTags(String key)

Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

map<string, string> resource_manager_tags = 377671164;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public InstanceParams getDefaultInstanceForType()
Returns
TypeDescription
InstanceParams

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableResourceManagerTags() (deprecated)

public Map<String,String> getMutableResourceManagerTags()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getResourceManagerTags() (deprecated)

public Map<String,String> getResourceManagerTags()
Returns
TypeDescription
Map<String,String>

getResourceManagerTagsCount()

public int getResourceManagerTagsCount()

Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

map<string, string> resource_manager_tags = 377671164;

Returns
TypeDescription
int

getResourceManagerTagsMap()

public Map<String,String> getResourceManagerTagsMap()

Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

map<string, string> resource_manager_tags = 377671164;

Returns
TypeDescription
Map<String,String>

getResourceManagerTagsOrDefault(String key, String defaultValue)

public String getResourceManagerTagsOrDefault(String key, String defaultValue)

Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

map<string, string> resource_manager_tags = 377671164;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getResourceManagerTagsOrThrow(String key)

public String getResourceManagerTagsOrThrow(String key)

Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

map<string, string> resource_manager_tags = 377671164;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstanceParams other)

public InstanceParams.Builder mergeFrom(InstanceParams other)
Parameter
NameDescription
otherInstanceParams
Returns
TypeDescription
InstanceParams.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllResourceManagerTags(Map<String,String> values)

public InstanceParams.Builder putAllResourceManagerTags(Map<String,String> values)

Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

map<string, string> resource_manager_tags = 377671164;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
InstanceParams.Builder

putResourceManagerTags(String key, String value)

public InstanceParams.Builder putResourceManagerTags(String key, String value)

Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

map<string, string> resource_manager_tags = 377671164;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
InstanceParams.Builder

removeResourceManagerTags(String key)

public InstanceParams.Builder removeResourceManagerTags(String key)

Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

map<string, string> resource_manager_tags = 377671164;

Parameter
NameDescription
keyString
Returns
TypeDescription
InstanceParams.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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