Package com.google.cloud.notebooks.v2
Class Instance.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
- com.google.cloud.notebooks.v2.Instance.Builder
-
- All Implemented Interfaces:
InstanceOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Instance
public static final class Instance.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder> implements InstanceOrBuilder
The definition of a notebook instance.
Protobuf typegoogle.cloud.notebooks.v2.Instance
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Instance.Builder
addAllInstanceOwners(Iterable<String> values)
Optional.Instance.Builder
addAllUpgradeHistory(Iterable<? extends UpgradeHistoryEntry> values)
Output only.Instance.Builder
addInstanceOwners(String value)
Optional.Instance.Builder
addInstanceOwnersBytes(com.google.protobuf.ByteString value)
Optional.Instance.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Instance.Builder
addUpgradeHistory(int index, UpgradeHistoryEntry value)
Output only.Instance.Builder
addUpgradeHistory(int index, UpgradeHistoryEntry.Builder builderForValue)
Output only.Instance.Builder
addUpgradeHistory(UpgradeHistoryEntry value)
Output only.Instance.Builder
addUpgradeHistory(UpgradeHistoryEntry.Builder builderForValue)
Output only.UpgradeHistoryEntry.Builder
addUpgradeHistoryBuilder()
Output only.UpgradeHistoryEntry.Builder
addUpgradeHistoryBuilder(int index)
Output only.Instance
build()
Instance
buildPartial()
Instance.Builder
clear()
Instance.Builder
clearCreateTime()
Output only.Instance.Builder
clearCreator()
Output only.Instance.Builder
clearDisableProxyAccess()
Optional.Instance.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Instance.Builder
clearGceSetup()
Optional.Instance.Builder
clearHealthInfo()
Instance.Builder
clearHealthState()
Output only.Instance.Builder
clearId()
Output only.Instance.Builder
clearInfrastructure()
Instance.Builder
clearInstanceOwners()
Optional.Instance.Builder
clearLabels()
Instance.Builder
clearName()
Output only.Instance.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Instance.Builder
clearProxyUri()
Output only.Instance.Builder
clearState()
Output only.Instance.Builder
clearUpdateTime()
Output only.Instance.Builder
clearUpgradeHistory()
Output only.Instance.Builder
clone()
boolean
containsHealthInfo(String key)
Output only.boolean
containsLabels(String key)
Optional.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.String
getCreator()
Output only.com.google.protobuf.ByteString
getCreatorBytes()
Output only.Instance
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getDisableProxyAccess()
Optional.GceSetup
getGceSetup()
Optional.GceSetup.Builder
getGceSetupBuilder()
Optional.GceSetupOrBuilder
getGceSetupOrBuilder()
Optional.Map<String,String>
getHealthInfo()
Deprecated.int
getHealthInfoCount()
Output only.Map<String,String>
getHealthInfoMap()
Output only.String
getHealthInfoOrDefault(String key, String defaultValue)
Output only.String
getHealthInfoOrThrow(String key)
Output only.HealthState
getHealthState()
Output only.int
getHealthStateValue()
Output only.String
getId()
Output only.com.google.protobuf.ByteString
getIdBytes()
Output only.Instance.InfrastructureCase
getInfrastructureCase()
String
getInstanceOwners(int index)
Optional.com.google.protobuf.ByteString
getInstanceOwnersBytes(int index)
Optional.int
getInstanceOwnersCount()
Optional.com.google.protobuf.ProtocolStringList
getInstanceOwnersList()
Optional.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Optional.Map<String,String>
getLabelsMap()
Optional.String
getLabelsOrDefault(String key, String defaultValue)
Optional.String
getLabelsOrThrow(String key)
Optional.Map<String,String>
getMutableHealthInfo()
Deprecated.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.String
getProxyUri()
Output only.com.google.protobuf.ByteString
getProxyUriBytes()
Output only.State
getState()
Output only.int
getStateValue()
Output only.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.UpgradeHistoryEntry
getUpgradeHistory(int index)
Output only.UpgradeHistoryEntry.Builder
getUpgradeHistoryBuilder(int index)
Output only.List<UpgradeHistoryEntry.Builder>
getUpgradeHistoryBuilderList()
Output only.int
getUpgradeHistoryCount()
Output only.List<UpgradeHistoryEntry>
getUpgradeHistoryList()
Output only.UpgradeHistoryEntryOrBuilder
getUpgradeHistoryOrBuilder(int index)
Output only.List<? extends UpgradeHistoryEntryOrBuilder>
getUpgradeHistoryOrBuilderList()
Output only.boolean
hasCreateTime()
Output only.boolean
hasGceSetup()
Optional.boolean
hasUpdateTime()
Output only.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
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.Instance.Builder
mergeFrom(Instance other)
Instance.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Instance.Builder
mergeFrom(com.google.protobuf.Message other)
Instance.Builder
mergeGceSetup(GceSetup value)
Optional.Instance.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Instance.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.Instance.Builder
putAllHealthInfo(Map<String,String> values)
Output only.Instance.Builder
putAllLabels(Map<String,String> values)
Optional.Instance.Builder
putHealthInfo(String key, String value)
Output only.Instance.Builder
putLabels(String key, String value)
Optional.Instance.Builder
removeHealthInfo(String key)
Output only.Instance.Builder
removeLabels(String key)
Optional.Instance.Builder
removeUpgradeHistory(int index)
Output only.Instance.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.Instance.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Instance.Builder
setCreator(String value)
Output only.Instance.Builder
setCreatorBytes(com.google.protobuf.ByteString value)
Output only.Instance.Builder
setDisableProxyAccess(boolean value)
Optional.Instance.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Instance.Builder
setGceSetup(GceSetup value)
Optional.Instance.Builder
setGceSetup(GceSetup.Builder builderForValue)
Optional.Instance.Builder
setHealthState(HealthState value)
Output only.Instance.Builder
setHealthStateValue(int value)
Output only.Instance.Builder
setId(String value)
Output only.Instance.Builder
setIdBytes(com.google.protobuf.ByteString value)
Output only.Instance.Builder
setInstanceOwners(int index, String value)
Optional.Instance.Builder
setName(String value)
Output only.Instance.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.Instance.Builder
setProxyUri(String value)
Output only.Instance.Builder
setProxyUriBytes(com.google.protobuf.ByteString value)
Output only.Instance.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Instance.Builder
setState(State value)
Output only.Instance.Builder
setStateValue(int value)
Output only.Instance.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Instance.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.Instance.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Instance.Builder
setUpgradeHistory(int index, UpgradeHistoryEntry value)
Output only.Instance.Builder
setUpgradeHistory(int index, UpgradeHistoryEntry.Builder builderForValue)
Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
clear
public Instance.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
getDefaultInstanceForType
public Instance getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Instance build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Instance buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Instance.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
setField
public Instance.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
clearField
public Instance.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
clearOneof
public Instance.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
setRepeatedField
public Instance.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
addRepeatedField
public Instance.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
mergeFrom
public Instance.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Instance.Builder>
-
mergeFrom
public Instance.Builder mergeFrom(Instance other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
mergeFrom
public Instance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Instance.Builder>
- Throws:
IOException
-
getInfrastructureCase
public Instance.InfrastructureCase getInfrastructureCase()
- Specified by:
getInfrastructureCase
in interfaceInstanceOrBuilder
-
clearInfrastructure
public Instance.Builder clearInfrastructure()
-
getName
public String getName()
Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceInstanceOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for name.
-
setName
public Instance.Builder setName(String value)
Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Instance.Builder clearName()
Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setNameBytes
public Instance.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasGceSetup
public boolean hasGceSetup()
Optional. Compute Engine setup for the notebook. Uses notebook-defined fields.
.google.cloud.notebooks.v2.GceSetup gce_setup = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasGceSetup
in interfaceInstanceOrBuilder
- Returns:
- Whether the gceSetup field is set.
-
getGceSetup
public GceSetup getGceSetup()
Optional. Compute Engine setup for the notebook. Uses notebook-defined fields.
.google.cloud.notebooks.v2.GceSetup gce_setup = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getGceSetup
in interfaceInstanceOrBuilder
- Returns:
- The gceSetup.
-
setGceSetup
public Instance.Builder setGceSetup(GceSetup value)
Optional. Compute Engine setup for the notebook. Uses notebook-defined fields.
.google.cloud.notebooks.v2.GceSetup gce_setup = 2 [(.google.api.field_behavior) = OPTIONAL];
-
setGceSetup
public Instance.Builder setGceSetup(GceSetup.Builder builderForValue)
Optional. Compute Engine setup for the notebook. Uses notebook-defined fields.
.google.cloud.notebooks.v2.GceSetup gce_setup = 2 [(.google.api.field_behavior) = OPTIONAL];
-
mergeGceSetup
public Instance.Builder mergeGceSetup(GceSetup value)
Optional. Compute Engine setup for the notebook. Uses notebook-defined fields.
.google.cloud.notebooks.v2.GceSetup gce_setup = 2 [(.google.api.field_behavior) = OPTIONAL];
-
clearGceSetup
public Instance.Builder clearGceSetup()
Optional. Compute Engine setup for the notebook. Uses notebook-defined fields.
.google.cloud.notebooks.v2.GceSetup gce_setup = 2 [(.google.api.field_behavior) = OPTIONAL];
-
getGceSetupBuilder
public GceSetup.Builder getGceSetupBuilder()
Optional. Compute Engine setup for the notebook. Uses notebook-defined fields.
.google.cloud.notebooks.v2.GceSetup gce_setup = 2 [(.google.api.field_behavior) = OPTIONAL];
-
getGceSetupOrBuilder
public GceSetupOrBuilder getGceSetupOrBuilder()
Optional. Compute Engine setup for the notebook. Uses notebook-defined fields.
.google.cloud.notebooks.v2.GceSetup gce_setup = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getGceSetupOrBuilder
in interfaceInstanceOrBuilder
-
getProxyUri
public String getProxyUri()
Output only. The proxy endpoint that is used to access the Jupyter notebook.
string proxy_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getProxyUri
in interfaceInstanceOrBuilder
- Returns:
- The proxyUri.
-
getProxyUriBytes
public com.google.protobuf.ByteString getProxyUriBytes()
Output only. The proxy endpoint that is used to access the Jupyter notebook.
string proxy_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getProxyUriBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for proxyUri.
-
setProxyUri
public Instance.Builder setProxyUri(String value)
Output only. The proxy endpoint that is used to access the Jupyter notebook.
string proxy_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The proxyUri to set.- Returns:
- This builder for chaining.
-
clearProxyUri
public Instance.Builder clearProxyUri()
Output only. The proxy endpoint that is used to access the Jupyter notebook.
string proxy_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setProxyUriBytes
public Instance.Builder setProxyUriBytes(com.google.protobuf.ByteString value)
Output only. The proxy endpoint that is used to access the Jupyter notebook.
string proxy_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for proxyUri to set.- Returns:
- This builder for chaining.
-
getInstanceOwnersList
public com.google.protobuf.ProtocolStringList getInstanceOwnersList()
Optional. Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.
repeated string instance_owners = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
- Specified by:
getInstanceOwnersList
in interfaceInstanceOrBuilder
- Returns:
- A list containing the instanceOwners.
-
getInstanceOwnersCount
public int getInstanceOwnersCount()
Optional. Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.
repeated string instance_owners = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
- Specified by:
getInstanceOwnersCount
in interfaceInstanceOrBuilder
- Returns:
- The count of instanceOwners.
-
getInstanceOwners
public String getInstanceOwners(int index)
Optional. Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.
repeated string instance_owners = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
- Specified by:
getInstanceOwners
in interfaceInstanceOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The instanceOwners at the given index.
-
getInstanceOwnersBytes
public com.google.protobuf.ByteString getInstanceOwnersBytes(int index)
Optional. Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.
repeated string instance_owners = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
- Specified by:
getInstanceOwnersBytes
in interfaceInstanceOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the instanceOwners at the given index.
-
setInstanceOwners
public Instance.Builder setInstanceOwners(int index, String value)
Optional. Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.
repeated string instance_owners = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
- Parameters:
index
- The index to set the value at.value
- The instanceOwners to set.- Returns:
- This builder for chaining.
-
addInstanceOwners
public Instance.Builder addInstanceOwners(String value)
Optional. Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.
repeated string instance_owners = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The instanceOwners to add.- Returns:
- This builder for chaining.
-
addAllInstanceOwners
public Instance.Builder addAllInstanceOwners(Iterable<String> values)
Optional. Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.
repeated string instance_owners = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
- Parameters:
values
- The instanceOwners to add.- Returns:
- This builder for chaining.
-
clearInstanceOwners
public Instance.Builder clearInstanceOwners()
Optional. Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.
repeated string instance_owners = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
addInstanceOwnersBytes
public Instance.Builder addInstanceOwnersBytes(com.google.protobuf.ByteString value)
Optional. Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.
repeated string instance_owners = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes of the instanceOwners to add.- Returns:
- This builder for chaining.
-
getCreator
public String getCreator()
Output only. Email address of entity that sent original CreateInstance request.
string creator = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreator
in interfaceInstanceOrBuilder
- Returns:
- The creator.
-
getCreatorBytes
public com.google.protobuf.ByteString getCreatorBytes()
Output only. Email address of entity that sent original CreateInstance request.
string creator = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreatorBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for creator.
-
setCreator
public Instance.Builder setCreator(String value)
Output only. Email address of entity that sent original CreateInstance request.
string creator = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The creator to set.- Returns:
- This builder for chaining.
-
clearCreator
public Instance.Builder clearCreator()
Output only. Email address of entity that sent original CreateInstance request.
string creator = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setCreatorBytes
public Instance.Builder setCreatorBytes(com.google.protobuf.ByteString value)
Output only. Email address of entity that sent original CreateInstance request.
string creator = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for creator to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()
Output only. The state of this instance.
.google.cloud.notebooks.v2.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateValue
in interfaceInstanceOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public Instance.Builder setStateValue(int value)
Output only. The state of this instance.
.google.cloud.notebooks.v2.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public State getState()
Output only. The state of this instance.
.google.cloud.notebooks.v2.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getState
in interfaceInstanceOrBuilder
- Returns:
- The state.
-
setState
public Instance.Builder setState(State value)
Output only. The state of this instance.
.google.cloud.notebooks.v2.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
public Instance.Builder clearState()
Output only. The state of this instance.
.google.cloud.notebooks.v2.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getUpgradeHistoryList
public List<UpgradeHistoryEntry> getUpgradeHistoryList()
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpgradeHistoryList
in interfaceInstanceOrBuilder
-
getUpgradeHistoryCount
public int getUpgradeHistoryCount()
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpgradeHistoryCount
in interfaceInstanceOrBuilder
-
getUpgradeHistory
public UpgradeHistoryEntry getUpgradeHistory(int index)
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpgradeHistory
in interfaceInstanceOrBuilder
-
setUpgradeHistory
public Instance.Builder setUpgradeHistory(int index, UpgradeHistoryEntry value)
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpgradeHistory
public Instance.Builder setUpgradeHistory(int index, UpgradeHistoryEntry.Builder builderForValue)
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addUpgradeHistory
public Instance.Builder addUpgradeHistory(UpgradeHistoryEntry value)
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addUpgradeHistory
public Instance.Builder addUpgradeHistory(int index, UpgradeHistoryEntry value)
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addUpgradeHistory
public Instance.Builder addUpgradeHistory(UpgradeHistoryEntry.Builder builderForValue)
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addUpgradeHistory
public Instance.Builder addUpgradeHistory(int index, UpgradeHistoryEntry.Builder builderForValue)
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addAllUpgradeHistory
public Instance.Builder addAllUpgradeHistory(Iterable<? extends UpgradeHistoryEntry> values)
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearUpgradeHistory
public Instance.Builder clearUpgradeHistory()
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
removeUpgradeHistory
public Instance.Builder removeUpgradeHistory(int index)
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpgradeHistoryBuilder
public UpgradeHistoryEntry.Builder getUpgradeHistoryBuilder(int index)
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpgradeHistoryOrBuilder
public UpgradeHistoryEntryOrBuilder getUpgradeHistoryOrBuilder(int index)
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpgradeHistoryOrBuilder
in interfaceInstanceOrBuilder
-
getUpgradeHistoryOrBuilderList
public List<? extends UpgradeHistoryEntryOrBuilder> getUpgradeHistoryOrBuilderList()
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpgradeHistoryOrBuilderList
in interfaceInstanceOrBuilder
-
addUpgradeHistoryBuilder
public UpgradeHistoryEntry.Builder addUpgradeHistoryBuilder()
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addUpgradeHistoryBuilder
public UpgradeHistoryEntry.Builder addUpgradeHistoryBuilder(int index)
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpgradeHistoryBuilderList
public List<UpgradeHistoryEntry.Builder> getUpgradeHistoryBuilderList()
Output only. The upgrade history of this instance.
repeated .google.cloud.notebooks.v2.UpgradeHistoryEntry upgrade_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getId
public String getId()
Output only. Unique ID of the resource.
string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getId
in interfaceInstanceOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
Output only. Unique ID of the resource.
string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getIdBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for id.
-
setId
public Instance.Builder setId(String value)
Output only. Unique ID of the resource.
string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Instance.Builder clearId()
Output only. Unique ID of the resource.
string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setIdBytes
public Instance.Builder setIdBytes(com.google.protobuf.ByteString value)
Output only. Unique ID of the resource.
string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
getHealthStateValue
public int getHealthStateValue()
Output only. Instance health_state.
.google.cloud.notebooks.v2.HealthState health_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getHealthStateValue
in interfaceInstanceOrBuilder
- Returns:
- The enum numeric value on the wire for healthState.
-
setHealthStateValue
public Instance.Builder setHealthStateValue(int value)
Output only. Instance health_state.
.google.cloud.notebooks.v2.HealthState health_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enum numeric value on the wire for healthState to set.- Returns:
- This builder for chaining.
-
getHealthState
public HealthState getHealthState()
Output only. Instance health_state.
.google.cloud.notebooks.v2.HealthState health_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getHealthState
in interfaceInstanceOrBuilder
- Returns:
- The healthState.
-
setHealthState
public Instance.Builder setHealthState(HealthState value)
Output only. Instance health_state.
.google.cloud.notebooks.v2.HealthState health_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The healthState to set.- Returns:
- This builder for chaining.
-
clearHealthState
public Instance.Builder clearHealthState()
Output only. Instance health_state.
.google.cloud.notebooks.v2.HealthState health_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getHealthInfoCount
public int getHealthInfoCount()
Description copied from interface:InstanceOrBuilder
Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }
map<string, string> health_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getHealthInfoCount
in interfaceInstanceOrBuilder
-
containsHealthInfo
public boolean containsHealthInfo(String key)
Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }
map<string, string> health_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
containsHealthInfo
in interfaceInstanceOrBuilder
-
getHealthInfo
@Deprecated public Map<String,String> getHealthInfo()
Deprecated.UsegetHealthInfoMap()
instead.- Specified by:
getHealthInfo
in interfaceInstanceOrBuilder
-
getHealthInfoMap
public Map<String,String> getHealthInfoMap()
Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }
map<string, string> health_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getHealthInfoMap
in interfaceInstanceOrBuilder
-
getHealthInfoOrDefault
public String getHealthInfoOrDefault(String key, String defaultValue)
Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }
map<string, string> health_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getHealthInfoOrDefault
in interfaceInstanceOrBuilder
-
getHealthInfoOrThrow
public String getHealthInfoOrThrow(String key)
Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }
map<string, string> health_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getHealthInfoOrThrow
in interfaceInstanceOrBuilder
-
clearHealthInfo
public Instance.Builder clearHealthInfo()
-
removeHealthInfo
public Instance.Builder removeHealthInfo(String key)
Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }
map<string, string> health_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getMutableHealthInfo
@Deprecated public Map<String,String> getMutableHealthInfo()
Deprecated.Use alternate mutation accessors instead.
-
putHealthInfo
public Instance.Builder putHealthInfo(String key, String value)
Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }
map<string, string> health_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
putAllHealthInfo
public Instance.Builder putAllHealthInfo(Map<String,String> values)
Output only. Additional information about instance health. Example: healthInfo": { "docker_proxy_agent_status": "1", "docker_status": "1", "jupyterlab_api_status": "-1", "jupyterlab_status": "-1", "updated": "2020-10-18 09:40:03.573409" }
map<string, string> health_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
hasCreateTime
public boolean hasCreateTime()
Output only. Instance creation time.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceInstanceOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. Instance creation time.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceInstanceOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public Instance.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. Instance creation time.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Instance.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Instance creation time.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Instance.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. Instance creation time.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public Instance.Builder clearCreateTime()
Output only. Instance creation time.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. Instance creation time.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Instance creation time.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceInstanceOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. Instance update time.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasUpdateTime
in interfaceInstanceOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. Instance update time.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTime
in interfaceInstanceOrBuilder
- Returns:
- The updateTime.
-
setUpdateTime
public Instance.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. Instance update time.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public Instance.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Instance update time.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeUpdateTime
public Instance.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. Instance update time.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearUpdateTime
public Instance.Builder clearUpdateTime()
Output only. Instance update time.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. Instance update time.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Instance update time.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTimeOrBuilder
in interfaceInstanceOrBuilder
-
getDisableProxyAccess
public boolean getDisableProxyAccess()
Optional. If true, the notebook instance will not register with the proxy.
bool disable_proxy_access = 13 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDisableProxyAccess
in interfaceInstanceOrBuilder
- Returns:
- The disableProxyAccess.
-
setDisableProxyAccess
public Instance.Builder setDisableProxyAccess(boolean value)
Optional. If true, the notebook instance will not register with the proxy.
bool disable_proxy_access = 13 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The disableProxyAccess to set.- Returns:
- This builder for chaining.
-
clearDisableProxyAccess
public Instance.Builder clearDisableProxyAccess()
Optional. If true, the notebook instance will not register with the proxy.
bool disable_proxy_access = 13 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:InstanceOrBuilder
Optional. Labels to apply to this instance. These can be later modified by the UpdateInstance method.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsCount
in interfaceInstanceOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Optional. Labels to apply to this instance. These can be later modified by the UpdateInstance method.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
containsLabels
in interfaceInstanceOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceInstanceOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Optional. Labels to apply to this instance. These can be later modified by the UpdateInstance method.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsMap
in interfaceInstanceOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Optional. Labels to apply to this instance. These can be later modified by the UpdateInstance method.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsOrDefault
in interfaceInstanceOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Optional. Labels to apply to this instance. These can be later modified by the UpdateInstance method.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsOrThrow
in interfaceInstanceOrBuilder
-
clearLabels
public Instance.Builder clearLabels()
-
removeLabels
public Instance.Builder removeLabels(String key)
Optional. Labels to apply to this instance. These can be later modified by the UpdateInstance method.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Instance.Builder putLabels(String key, String value)
Optional. Labels to apply to this instance. These can be later modified by the UpdateInstance method.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
-
putAllLabels
public Instance.Builder putAllLabels(Map<String,String> values)
Optional. Labels to apply to this instance. These can be later modified by the UpdateInstance method.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
-
setUnknownFields
public final Instance.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
mergeUnknownFields
public final Instance.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>
-
-