Class InstanceParams.Builder (0.42.0)

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

Additional instance params.

Protobuf type google.cloud.backupdr.v1.InstanceParams

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

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

clearResourceManagerTags()

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

containsResourceManagerTags(String key)

public boolean containsResourceManagerTags(String key)

Optional. Resource manager tags to be bound to the instance.

map<string, string> resource_manager_tags = 1 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. Resource manager tags to be bound to the instance.

map<string, string> resource_manager_tags = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getResourceManagerTagsMap()

public Map<String,String> getResourceManagerTagsMap()

Optional. Resource manager tags to be bound to the instance.

map<string, string> resource_manager_tags = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getResourceManagerTagsOrDefault(String key, String defaultValue)

public String getResourceManagerTagsOrDefault(String key, String defaultValue)

Optional. Resource manager tags to be bound to the instance.

map<string, string> resource_manager_tags = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getResourceManagerTagsOrThrow(String key)

public String getResourceManagerTagsOrThrow(String key)

Optional. Resource manager tags to be bound to the instance.

map<string, string> resource_manager_tags = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

internalGetFieldAccessorTable()

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

putAllResourceManagerTags(Map<String,String> values)

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

Optional. Resource manager tags to be bound to the instance.

map<string, string> resource_manager_tags = 1 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. Resource manager tags to be bound to the instance.

map<string, string> resource_manager_tags = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
InstanceParams.Builder

removeResourceManagerTags(String key)

public InstanceParams.Builder removeResourceManagerTags(String key)

Optional. Resource manager tags to be bound to the instance.

map<string, string> resource_manager_tags = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
InstanceParams.Builder