Class OdbSubnet.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OdbSubnet.Builder>
com.google.cloud.oracledatabase.v1.OdbSubnet.Builder
- All Implemented Interfaces:
OdbSubnetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OdbSubnet
public static final class OdbSubnet.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OdbSubnet.Builder>
implements OdbSubnetOrBuilder
Represents OdbSubnet resource.Protobuf type
google.cloud.oracledatabase.v1.OdbSubnet-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Output only.Identifier.Required.Output only.booleancontainsLabels(String key) Optional.Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.Deprecated.getName()Identifier.com.google.protobuf.ByteStringIdentifier.Required.intRequired.getState()Output only.intOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllLabels(Map<String, String> values) Optional.Optional.removeLabels(String key) Optional.setCidrRange(String value) Required.setCidrRangeBytes(com.google.protobuf.ByteString value) Required.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setPurpose(OdbSubnet.Purpose value) Required.setPurposeValue(int value) Required.setState(OdbSubnet.State value) Output only.setStateValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<OdbSubnet.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<OdbSubnet.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OdbSubnet.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<OdbSubnet.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<OdbSubnet.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OdbSubnet.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OdbSubnet.Builder>
-
mergeFrom
public OdbSubnet.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OdbSubnet.Builder>- Throws:
IOException
-
getName
Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceOdbSubnetOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceOdbSubnetOrBuilder- Returns:
- The bytes for name.
-
setName
Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- This builder for chaining.
-
setNameBytes
Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getCidrRange
Required. The CIDR range of the subnet.
string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCidrRangein interfaceOdbSubnetOrBuilder- Returns:
- The cidrRange.
-
getCidrRangeBytes
public com.google.protobuf.ByteString getCidrRangeBytes()Required. The CIDR range of the subnet.
string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCidrRangeBytesin interfaceOdbSubnetOrBuilder- Returns:
- The bytes for cidrRange.
-
setCidrRange
Required. The CIDR range of the subnet.
string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The cidrRange to set.- Returns:
- This builder for chaining.
-
clearCidrRange
Required. The CIDR range of the subnet.
string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setCidrRangeBytes
Required. The CIDR range of the subnet.
string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for cidrRange to set.- Returns:
- This builder for chaining.
-
getPurposeValue
public int getPurposeValue()Required. Purpose of the subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPurposeValuein interfaceOdbSubnetOrBuilder- Returns:
- The enum numeric value on the wire for purpose.
-
setPurposeValue
Required. Purpose of the subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for purpose to set.- Returns:
- This builder for chaining.
-
getPurpose
Required. Purpose of the subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPurposein interfaceOdbSubnetOrBuilder- Returns:
- The purpose.
-
setPurpose
Required. Purpose of the subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The purpose to set.- Returns:
- This builder for chaining.
-
clearPurpose
Required. Purpose of the subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:OdbSubnetOrBuilderOptional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceOdbSubnetOrBuilder
-
containsLabels
Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceOdbSubnetOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceOdbSubnetOrBuilder
-
getLabelsMap
Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceOdbSubnetOrBuilder
-
getLabelsOrDefault
Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceOdbSubnetOrBuilder
-
getLabelsOrThrow
Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceOdbSubnetOrBuilder
-
clearLabels
-
removeLabels
Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; -
putAllLabels
Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; -
hasCreateTime
public boolean hasCreateTime()Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceOdbSubnetOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceOdbSubnetOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceOdbSubnetOrBuilder
-
getStateValue
public int getStateValue()Output only. State of the ODB Subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceOdbSubnetOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. State of the ODB Subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.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
Output only. State of the ODB Subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceOdbSubnetOrBuilder- Returns:
- The state.
-
setState
Output only. State of the ODB Subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. State of the ODB Subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-