Class OdbNetwork.Builder (0.29.0)

public static final class OdbNetwork.Builder extends GeneratedMessageV3.Builder<OdbNetwork.Builder> implements OdbNetworkOrBuilder

Represents OdbNetwork resource.

Protobuf type google.cloud.oracledatabase.v1.OdbNetwork

Implements

OdbNetworkOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OdbNetwork.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OdbNetwork.Builder
Overrides

build()

public OdbNetwork build()
Returns
Type Description
OdbNetwork

buildPartial()

public OdbNetwork buildPartial()
Returns
Type Description
OdbNetwork

clear()

public OdbNetwork.Builder clear()
Returns
Type Description
OdbNetwork.Builder
Overrides

clearCreateTime()

public OdbNetwork.Builder clearCreateTime()

Output only. The date and time that the OdbNetwork was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
OdbNetwork.Builder

clearEntitlementId()

public OdbNetwork.Builder clearEntitlementId()

Output only. The ID of the subscription entitlement associated with the OdbNetwork.

string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OdbNetwork.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OdbNetwork.Builder
Overrides

clearGcpOracleZone()

public OdbNetwork.Builder clearGcpOracleZone()

Optional. The GCP Oracle zone where OdbNetwork is hosted. Example: us-east4-b-r2. If not specified, the system will pick a zone based on availability.

string gcp_oracle_zone = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

clearLabels()

public OdbNetwork.Builder clearLabels()
Returns
Type Description
OdbNetwork.Builder

clearName()

public OdbNetwork.Builder clearName()

Identifier. The name of the OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

clearNetwork()

public OdbNetwork.Builder clearNetwork()

Required. The name of the VPC network in the following format: projects/{project}/global/networks/{network}

string network = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OdbNetwork.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OdbNetwork.Builder
Overrides

clearState()

public OdbNetwork.Builder clearState()

Output only. State of the ODB Network.

.google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

clone()

public OdbNetwork.Builder clone()
Returns
Type Description
OdbNetwork.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels or tags associated with the resource.

map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The date and time that the OdbNetwork was created.

.google.protobuf.Timestamp create_time = 4 [(.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 = 4 [(.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 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public OdbNetwork getDefaultInstanceForType()
Returns
Type Description
OdbNetwork

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEntitlementId()

public String getEntitlementId()

Output only. The ID of the subscription entitlement associated with the OdbNetwork.

string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The entitlementId.

getEntitlementIdBytes()

public ByteString getEntitlementIdBytes()

Output only. The ID of the subscription entitlement associated with the OdbNetwork.

string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for entitlementId.

getGcpOracleZone()

public String getGcpOracleZone()

Optional. The GCP Oracle zone where OdbNetwork is hosted. Example: us-east4-b-r2. If not specified, the system will pick a zone based on availability.

string gcp_oracle_zone = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The gcpOracleZone.

getGcpOracleZoneBytes()

public ByteString getGcpOracleZoneBytes()

Optional. The GCP Oracle zone where OdbNetwork is hosted. Example: us-east4-b-r2. If not specified, the system will pick a zone based on availability.

string gcp_oracle_zone = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for gcpOracleZone.

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 = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.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 OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

Required. The name of the VPC network in the following format: projects/{project}/global/networks/{network}

string network = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Required. The name of the VPC network in the following format: projects/{project}/global/networks/{network}

string network = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for network.

getState()

public OdbNetwork.State getState()

Output only. State of the ODB Network.

.google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
OdbNetwork.State

The state.

getStateValue()

public int getStateValue()

Output only. State of the ODB Network.

.google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.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 = 4 [(.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
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public OdbNetwork.Builder mergeCreateTime(Timestamp value)

Output only. The date and time that the OdbNetwork was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
OdbNetwork.Builder

mergeFrom(OdbNetwork other)

public OdbNetwork.Builder mergeFrom(OdbNetwork other)
Parameter
Name Description
other OdbNetwork
Returns
Type Description
OdbNetwork.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OdbNetwork.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OdbNetwork.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OdbNetwork.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OdbNetwork.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OdbNetwork.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OdbNetwork.Builder
Overrides

putAllLabels(Map<String,String> values)

public OdbNetwork.Builder putAllLabels(Map<String,String> values)

Optional. Labels or tags associated with the resource.

map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
OdbNetwork.Builder

putLabels(String key, String value)

public OdbNetwork.Builder putLabels(String key, String value)

Optional. Labels or tags associated with the resource.

map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
OdbNetwork.Builder

removeLabels(String key)

public OdbNetwork.Builder removeLabels(String key)

Optional. Labels or tags associated with the resource.

map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
OdbNetwork.Builder

setCreateTime(Timestamp value)

public OdbNetwork.Builder setCreateTime(Timestamp value)

Output only. The date and time that the OdbNetwork was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
OdbNetwork.Builder

setCreateTime(Timestamp.Builder builderForValue)

public OdbNetwork.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The date and time that the OdbNetwork was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
OdbNetwork.Builder

setEntitlementId(String value)

public OdbNetwork.Builder setEntitlementId(String value)

Output only. The ID of the subscription entitlement associated with the OdbNetwork.

string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The entitlementId to set.

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

setEntitlementIdBytes(ByteString value)

public OdbNetwork.Builder setEntitlementIdBytes(ByteString value)

Output only. The ID of the subscription entitlement associated with the OdbNetwork.

string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for entitlementId to set.

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public OdbNetwork.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OdbNetwork.Builder
Overrides

setGcpOracleZone(String value)

public OdbNetwork.Builder setGcpOracleZone(String value)

Optional. The GCP Oracle zone where OdbNetwork is hosted. Example: us-east4-b-r2. If not specified, the system will pick a zone based on availability.

string gcp_oracle_zone = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The gcpOracleZone to set.

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

setGcpOracleZoneBytes(ByteString value)

public OdbNetwork.Builder setGcpOracleZoneBytes(ByteString value)

Optional. The GCP Oracle zone where OdbNetwork is hosted. Example: us-east4-b-r2. If not specified, the system will pick a zone based on availability.

string gcp_oracle_zone = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for gcpOracleZone to set.

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

setName(String value)

public OdbNetwork.Builder setName(String value)

Identifier. The name of the OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

setNameBytes(ByteString value)

public OdbNetwork.Builder setNameBytes(ByteString value)

Identifier. The name of the OdbNetwork resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

setNetwork(String value)

public OdbNetwork.Builder setNetwork(String value)

Required. The name of the VPC network in the following format: projects/{project}/global/networks/{network}

string network = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The network to set.

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public OdbNetwork.Builder setNetworkBytes(ByteString value)

Required. The name of the VPC network in the following format: projects/{project}/global/networks/{network}

string network = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OdbNetwork.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OdbNetwork.Builder
Overrides

setState(OdbNetwork.State value)

public OdbNetwork.Builder setState(OdbNetwork.State value)

Output only. State of the ODB Network.

.google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value OdbNetwork.State

The state to set.

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

setStateValue(int value)

public OdbNetwork.Builder setStateValue(int value)

Output only. State of the ODB Network.

.google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
OdbNetwork.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final OdbNetwork.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OdbNetwork.Builder
Overrides