Class InstanceParams.Builder (0.13.0)

public static final class InstanceParams.Builder extends GeneratedMessageV3.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

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)

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

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

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