Class OdbNetwork.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OdbNetwork.Builder>
com.google.cloud.oracledatabase.v1.OdbNetwork.Builder
- All Implemented Interfaces:
OdbNetworkOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OdbNetwork
public static final class OdbNetwork.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OdbNetwork.Builder>
implements OdbNetworkOrBuilder
Represents OdbNetwork resource.Protobuf type
google.cloud.oracledatabase.v1.OdbNetwork-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Optional.Identifier.Required.Output only.booleancontainsLabels(String key) Optional.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.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Optional.com.google.protobuf.ByteStringOptional.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.Deprecated.getName()Identifier.com.google.protobuf.ByteStringIdentifier.Required.com.google.protobuf.ByteStringRequired.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(OdbNetwork other) 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.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setEntitlementId(String value) Output only.setEntitlementIdBytes(com.google.protobuf.ByteString value) Output only.setGcpOracleZone(String value) Optional.setGcpOracleZoneBytes(com.google.protobuf.ByteString value) Optional.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setNetwork(String value) Required.setNetworkBytes(com.google.protobuf.ByteString value) Required.setState(OdbNetwork.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<OdbNetwork.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<OdbNetwork.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OdbNetwork.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<OdbNetwork.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<OdbNetwork.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<OdbNetwork.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OdbNetwork.Builder>
-
mergeFrom
public OdbNetwork.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<OdbNetwork.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceOdbNetworkOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];- Specified by:
getNameBytesin interfaceOdbNetworkOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Specified by:
getNetworkin interfaceOdbNetworkOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.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) = { ... }- Specified by:
getNetworkBytesin interfaceOdbNetworkOrBuilder- Returns:
- The bytes for network.
-
setNetwork
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) = { ... }- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNetworkBytes
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) = { ... }- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:OdbNetworkOrBuilderOptional. Labels or tags associated with the resource.
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceOdbNetworkOrBuilder
-
containsLabels
Optional. Labels or tags associated with the resource.
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceOdbNetworkOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceOdbNetworkOrBuilder
-
getLabelsMap
Optional. Labels or tags associated with the resource.
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceOdbNetworkOrBuilder
-
getLabelsOrDefault
Optional. Labels or tags associated with the resource.
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceOdbNetworkOrBuilder
-
getLabelsOrThrow
Optional. Labels or tags associated with the resource.
map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceOdbNetworkOrBuilder
-
clearLabels
-
removeLabels
Optional. Labels or tags associated with the resource.
map<string, string> labels = 3 [(.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 = 3 [(.google.api.field_behavior) = OPTIONAL]; -
putAllLabels
Optional. Labels or tags associated with the resource.
map<string, string> labels = 3 [(.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 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceOdbNetworkOrBuilder- 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 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceOdbNetworkOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The date and time that the OdbNetwork was created.
.google.protobuf.Timestamp create_time = 4 [(.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 = 4 [(.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 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceOdbNetworkOrBuilder
-
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];- Specified by:
getStateValuein interfaceOdbNetworkOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. State of the ODB Network.
.google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.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 Network.
.google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceOdbNetworkOrBuilder- Returns:
- The state.
-
setState
Output only. State of the ODB Network.
.google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. State of the ODB Network.
.google.cloud.oracledatabase.v1.OdbNetwork.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getEntitlementId
Output only. The ID of the subscription entitlement associated with the OdbNetwork.
string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEntitlementIdin interfaceOdbNetworkOrBuilder- Returns:
- The entitlementId.
-
getEntitlementIdBytes
public com.google.protobuf.ByteString getEntitlementIdBytes()Output only. The ID of the subscription entitlement associated with the OdbNetwork.
string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEntitlementIdBytesin interfaceOdbNetworkOrBuilder- Returns:
- The bytes for entitlementId.
-
setEntitlementId
Output only. The ID of the subscription entitlement associated with the OdbNetwork.
string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The entitlementId to set.- Returns:
- This builder for chaining.
-
clearEntitlementId
Output only. The ID of the subscription entitlement associated with the OdbNetwork.
string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setEntitlementIdBytes
Output only. The ID of the subscription entitlement associated with the OdbNetwork.
string entitlement_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for entitlementId to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getGcpOracleZonein interfaceOdbNetworkOrBuilder- Returns:
- The gcpOracleZone.
-
getGcpOracleZoneBytes
public com.google.protobuf.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];- Specified by:
getGcpOracleZoneBytesin interfaceOdbNetworkOrBuilder- Returns:
- The bytes for gcpOracleZone.
-
setGcpOracleZone
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];- Parameters:
value- The gcpOracleZone to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setGcpOracleZoneBytes
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];- Parameters:
value- The bytes for gcpOracleZone to set.- Returns:
- This builder for chaining.
-