public static final class Instance.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder> implements InstanceOrBuilder
A collection of Bigtable [Tables][google.bigtable.admin.v2.Table] and the resources that serve them. All tables in an instance are served from all [Clusters][google.bigtable.admin.v2.Cluster] in the instance.Protobuf type
google.bigtable.admin.v2.Instance| Modifier and Type | Method and Description |
|---|---|
Instance.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Instance |
build() |
Instance |
buildPartial() |
Instance.Builder |
clear() |
Instance.Builder |
clearDisplayName()
Required.
|
Instance.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Instance.Builder |
clearLabels() |
Instance.Builder |
clearName()
The unique name of the instance.
|
Instance.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Instance.Builder |
clearState()
(`OutputOnly`)
The current state of the instance.
|
Instance.Builder |
clearType()
The type of the instance.
|
Instance.Builder |
clone() |
boolean |
containsLabels(String key)
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies.
|
Instance |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
Required.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Required.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies.
|
Map<String,String> |
getLabelsMap()
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies.
|
String |
getLabelsOrThrow(String key)
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
String |
getName()
The unique name of the instance.
|
com.google.protobuf.ByteString |
getNameBytes()
The unique name of the instance.
|
Instance.State |
getState()
(`OutputOnly`)
The current state of the instance.
|
int |
getStateValue()
(`OutputOnly`)
The current state of the instance.
|
Instance.Type |
getType()
The type of the instance.
|
int |
getTypeValue()
The type of the instance.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Instance.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Instance.Builder |
mergeFrom(Instance other) |
Instance.Builder |
mergeFrom(com.google.protobuf.Message other) |
Instance.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Instance.Builder |
putAllLabels(Map<String,String> values)
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies.
|
Instance.Builder |
putLabels(String key,
String value)
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies.
|
Instance.Builder |
removeLabels(String key)
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies.
|
Instance.Builder |
setDisplayName(String value)
Required.
|
Instance.Builder |
setDisplayNameBytes(com.google.protobuf.ByteString value)
Required.
|
Instance.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Instance.Builder |
setName(String value)
The unique name of the instance.
|
Instance.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The unique name of the instance.
|
Instance.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Instance.Builder |
setState(Instance.State value)
(`OutputOnly`)
The current state of the instance.
|
Instance.Builder |
setStateValue(int value)
(`OutputOnly`)
The current state of the instance.
|
Instance.Builder |
setType(Instance.Type value)
The type of the instance.
|
Instance.Builder |
setTypeValue(int value)
The type of the instance.
|
Instance.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Instance build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Instance buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Instance.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Instance.Builder>public Instance.Builder mergeFrom(Instance other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Instance.Builder>IOExceptionpublic String getName()
The unique name of the instance. Values are of the form
`projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The unique name of the instance. Values are of the form
`projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface InstanceOrBuilderpublic Instance.Builder setName(String value)
The unique name of the instance. Values are of the form
`projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public Instance.Builder clearName()
The unique name of the instance. Values are of the form
`projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public Instance.Builder setNameBytes(com.google.protobuf.ByteString value)
The unique name of the instance. Values are of the form
`projects/{project}/instances/[a-z][a-z0-9\\-]+[a-z0-9]`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.public String getDisplayName()
Required. The descriptive name for this instance as it appears in UIs. Can be changed at any time, but should be kept globally unique to avoid confusion.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];getDisplayName in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Required. The descriptive name for this instance as it appears in UIs. Can be changed at any time, but should be kept globally unique to avoid confusion.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];getDisplayNameBytes in interface InstanceOrBuilderpublic Instance.Builder setDisplayName(String value)
Required. The descriptive name for this instance as it appears in UIs. Can be changed at any time, but should be kept globally unique to avoid confusion.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];value - The displayName to set.public Instance.Builder clearDisplayName()
Required. The descriptive name for this instance as it appears in UIs. Can be changed at any time, but should be kept globally unique to avoid confusion.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];public Instance.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Required. The descriptive name for this instance as it appears in UIs. Can be changed at any time, but should be kept globally unique to avoid confusion.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for displayName to set.public int getStateValue()
(`OutputOnly`) The current state of the instance.
.google.bigtable.admin.v2.Instance.State state = 3;getStateValue in interface InstanceOrBuilderpublic Instance.Builder setStateValue(int value)
(`OutputOnly`) The current state of the instance.
.google.bigtable.admin.v2.Instance.State state = 3;value - The enum numeric value on the wire for state to set.public Instance.State getState()
(`OutputOnly`) The current state of the instance.
.google.bigtable.admin.v2.Instance.State state = 3;getState in interface InstanceOrBuilderpublic Instance.Builder setState(Instance.State value)
(`OutputOnly`) The current state of the instance.
.google.bigtable.admin.v2.Instance.State state = 3;value - The state to set.public Instance.Builder clearState()
(`OutputOnly`) The current state of the instance.
.google.bigtable.admin.v2.Instance.State state = 3;public int getTypeValue()
The type of the instance. Defaults to `PRODUCTION`.
.google.bigtable.admin.v2.Instance.Type type = 4;getTypeValue in interface InstanceOrBuilderpublic Instance.Builder setTypeValue(int value)
The type of the instance. Defaults to `PRODUCTION`.
.google.bigtable.admin.v2.Instance.Type type = 4;value - The enum numeric value on the wire for type to set.public Instance.Type getType()
The type of the instance. Defaults to `PRODUCTION`.
.google.bigtable.admin.v2.Instance.Type type = 4;getType in interface InstanceOrBuilderpublic Instance.Builder setType(Instance.Type value)
The type of the instance. Defaults to `PRODUCTION`.
.google.bigtable.admin.v2.Instance.Type type = 4;value - The type to set.public Instance.Builder clearType()
The type of the instance. Defaults to `PRODUCTION`.
.google.bigtable.admin.v2.Instance.Type type = 4;public int getLabelsCount()
InstanceOrBuilder
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies. They can be used to filter resources and aggregate
metrics.
* Label keys must be between 1 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
* Label values must be between 0 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
* No more than 64 labels can be associated with a given resource.
* Keys and values must both be under 128 bytes.
map<string, string> labels = 5;getLabelsCount in interface InstanceOrBuilderpublic boolean containsLabels(String key)
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies. They can be used to filter resources and aggregate
metrics.
* Label keys must be between 1 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
* Label values must be between 0 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
* No more than 64 labels can be associated with a given resource.
* Keys and values must both be under 128 bytes.
map<string, string> labels = 5;containsLabels in interface InstanceOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface InstanceOrBuilderpublic Map<String,String> getLabelsMap()
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies. They can be used to filter resources and aggregate
metrics.
* Label keys must be between 1 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
* Label values must be between 0 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
* No more than 64 labels can be associated with a given resource.
* Keys and values must both be under 128 bytes.
map<string, string> labels = 5;getLabelsMap in interface InstanceOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies. They can be used to filter resources and aggregate
metrics.
* Label keys must be between 1 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
* Label values must be between 0 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
* No more than 64 labels can be associated with a given resource.
* Keys and values must both be under 128 bytes.
map<string, string> labels = 5;getLabelsOrDefault in interface InstanceOrBuilderpublic String getLabelsOrThrow(String key)
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies. They can be used to filter resources and aggregate
metrics.
* Label keys must be between 1 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
* Label values must be between 0 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
* No more than 64 labels can be associated with a given resource.
* Keys and values must both be under 128 bytes.
map<string, string> labels = 5;getLabelsOrThrow in interface InstanceOrBuilderpublic Instance.Builder clearLabels()
public Instance.Builder removeLabels(String key)
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies. They can be used to filter resources and aggregate
metrics.
* Label keys must be between 1 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
* Label values must be between 0 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
* No more than 64 labels can be associated with a given resource.
* Keys and values must both be under 128 bytes.
map<string, string> labels = 5;@Deprecated public Map<String,String> getMutableLabels()
public Instance.Builder putLabels(String key, String value)
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies. They can be used to filter resources and aggregate
metrics.
* Label keys must be between 1 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
* Label values must be between 0 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
* No more than 64 labels can be associated with a given resource.
* Keys and values must both be under 128 bytes.
map<string, string> labels = 5;public Instance.Builder putAllLabels(Map<String,String> values)
Labels are a flexible and lightweight mechanism for organizing cloud
resources into groups that reflect a customer's organizational needs and
deployment strategies. They can be used to filter resources and aggregate
metrics.
* Label keys must be between 1 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
* Label values must be between 0 and 63 characters long and must conform to
the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
* No more than 64 labels can be associated with a given resource.
* Keys and values must both be under 128 bytes.
map<string, string> labels = 5;public final Instance.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public final Instance.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>Copyright © 2020 Google LLC. All rights reserved.