public static final class OdbSubnet.Builder extends GeneratedMessageV3.Builder<OdbSubnet.Builder> implements OdbSubnetOrBuilderRepresents OdbSubnet resource.
Protobuf type google.cloud.oracledatabase.v1.OdbSubnet
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > OdbSubnet.BuilderImplements
OdbSubnetOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OdbSubnet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
build()
public OdbSubnet build()| Returns | |
|---|---|
| Type | Description |
OdbSubnet |
|
buildPartial()
public OdbSubnet buildPartial()| Returns | |
|---|---|
| Type | Description |
OdbSubnet |
|
clear()
public OdbSubnet.Builder clear()| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
clearCidrRange()
public OdbSubnet.Builder clearCidrRange()Required. The CIDR range of the subnet.
string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
This builder for chaining. |
clearCreateTime()
public OdbSubnet.Builder clearCreateTime()Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public OdbSubnet.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
clearLabels()
public OdbSubnet.Builder clearLabels()| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
clearName()
public OdbSubnet.Builder 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 | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public OdbSubnet.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
clearPurpose()
public OdbSubnet.Builder clearPurpose()Required. Purpose of the subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
This builder for chaining. |
clearState()
public OdbSubnet.Builder clearState()Output only. State of the ODB Subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
This builder for chaining. |
clone()
public OdbSubnet.Builder clone()| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
containsLabels(String key)
public boolean containsLabels(String key)Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getCidrRange()
public String getCidrRange()Required. The CIDR range of the subnet.
string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The cidrRange. |
getCidrRangeBytes()
public ByteString getCidrRangeBytes()Required. The CIDR range of the subnet.
string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for cidrRange. |
getCreateTime()
public 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];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public 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];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public 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];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public OdbSubnet getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OdbSubnet |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsCount()
public int getLabelsCount()Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getName()
public String 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];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public 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];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPurpose()
public OdbSubnet.Purpose getPurpose()Required. Purpose of the subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Purpose |
The purpose. |
getPurposeValue()
public int getPurposeValue()Required. Purpose of the subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for purpose. |
getState()
public OdbSubnet.State getState()Output only. State of the ODB Subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.State |
The state. |
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];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public OdbSubnet.Builder mergeCreateTime(Timestamp value)Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
mergeFrom(OdbSubnet other)
public OdbSubnet.Builder mergeFrom(OdbSubnet other)| Parameter | |
|---|---|
| Name | Description |
other |
OdbSubnet |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OdbSubnet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public OdbSubnet.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OdbSubnet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
putAllLabels(Map<String,String> values)
public OdbSubnet.Builder putAllLabels(Map<String,String> values)Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
putLabels(String key, String value)
public OdbSubnet.Builder putLabels(String key, String value)Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
removeLabels(String key)
public OdbSubnet.Builder removeLabels(String key)Optional. Labels or tags associated with the resource.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
setCidrRange(String value)
public OdbSubnet.Builder setCidrRange(String value)Required. The CIDR range of the subnet.
string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cidrRange to set. |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
This builder for chaining. |
setCidrRangeBytes(ByteString value)
public OdbSubnet.Builder setCidrRangeBytes(ByteString value)Required. The CIDR range of the subnet.
string cidr_range = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cidrRange to set. |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
This builder for chaining. |
setCreateTime(Timestamp value)
public OdbSubnet.Builder setCreateTime(Timestamp value)Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public OdbSubnet.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public OdbSubnet.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
setName(String value)
public OdbSubnet.Builder setName(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public OdbSubnet.Builder setNameBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
This builder for chaining. |
setPurpose(OdbSubnet.Purpose value)
public OdbSubnet.Builder setPurpose(OdbSubnet.Purpose value)Required. Purpose of the subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
OdbSubnet.PurposeThe purpose to set. |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
This builder for chaining. |
setPurposeValue(int value)
public OdbSubnet.Builder setPurposeValue(int value)Required. Purpose of the subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.Purpose purpose = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for purpose to set. |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OdbSubnet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|
setState(OdbSubnet.State value)
public OdbSubnet.Builder setState(OdbSubnet.State value)Output only. State of the ODB Subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
OdbSubnet.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
This builder for chaining. |
setStateValue(int value)
public OdbSubnet.Builder setStateValue(int value)Output only. State of the ODB Subnet.
.google.cloud.oracledatabase.v1.OdbSubnet.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final OdbSubnet.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
OdbSubnet.Builder |
|