Class InstanceParams.Builder (1.65.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceParams build()
Returns
Type Description
InstanceParams

buildPartial()

public InstanceParams buildPartial()
Returns
Type Description
InstanceParams

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceManagerTags()

public InstanceParams.Builder clearResourceManagerTags()
Returns
Type Description
InstanceParams.Builder

clone()

public InstanceParams.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public InstanceParams getDefaultInstanceForType()
Returns
Type Description
InstanceParams

getDescriptorForType()

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

getMutableResourceManagerTags() (deprecated)

public Map<String,String> getMutableResourceManagerTags()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getResourceManagerTags() (deprecated)

public Map<String,String> getResourceManagerTags()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceParams other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
InstanceParams.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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