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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<OdbNetwork.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<OdbNetwork.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<OdbNetwork.Builder>
    • clear

      public OdbNetwork.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<OdbNetwork.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<OdbNetwork.Builder>
    • getDefaultInstanceForType

      public OdbNetwork getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public OdbNetwork build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public OdbNetwork buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public OdbNetwork.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OdbNetwork.Builder>
    • mergeFrom

      public OdbNetwork.Builder mergeFrom(OdbNetwork other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OdbNetwork.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getName in interface OdbNetworkOrBuilder
      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:
      getNameBytes in interface OdbNetworkOrBuilder
      Returns:
      The bytes for name.
    • setName

      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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public OdbNetwork.Builder setNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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) = { ... }
      Specified by:
      getNetwork in interface OdbNetworkOrBuilder
      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:
      getNetworkBytes in interface OdbNetworkOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

      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) = { ... }
      Parameters:
      value - The network to set.
      Returns:
      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:
      This builder for chaining.
    • setNetworkBytes

      public OdbNetwork.Builder setNetworkBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for network to set.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: OdbNetworkOrBuilder
       Optional. Labels or tags associated with the resource.
       
      map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface OdbNetworkOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels or tags associated with the resource.
       
      map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface OdbNetworkOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface OdbNetworkOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels or tags associated with the resource.
       
      map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface OdbNetworkOrBuilder
    • getLabelsOrDefault

      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];
      Specified by:
      getLabelsOrDefault in interface OdbNetworkOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels or tags associated with the resource.
       
      map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface OdbNetworkOrBuilder
    • clearLabels

      public OdbNetwork.Builder clearLabels()
    • removeLabels

      public OdbNetwork.Builder removeLabels(String key)
       Optional. Labels or tags associated with the resource.
       
      map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      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];
    • putAllLabels

      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];
    • 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:
      hasCreateTime in interface OdbNetworkOrBuilder
      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:
      getCreateTime in interface OdbNetworkOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public OdbNetwork.Builder setCreateTime(com.google.protobuf.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];
    • setCreateTime

      public OdbNetwork.Builder setCreateTime(com.google.protobuf.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];
    • mergeCreateTime

      public OdbNetwork.Builder mergeCreateTime(com.google.protobuf.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];
    • 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];
    • 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:
      getCreateTimeOrBuilder in interface OdbNetworkOrBuilder
    • 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:
      getStateValue in interface OdbNetworkOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      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];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getState in interface OdbNetworkOrBuilder
      Returns:
      The state.
    • setState

      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];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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];
      Specified by:
      getEntitlementId in interface OdbNetworkOrBuilder
      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:
      getEntitlementIdBytes in interface OdbNetworkOrBuilder
      Returns:
      The bytes for entitlementId.
    • setEntitlementId

      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];
      Parameters:
      value - The entitlementId to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setEntitlementIdBytes

      public OdbNetwork.Builder setEntitlementIdBytes(com.google.protobuf.ByteString value)
       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

      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];
      Specified by:
      getGcpOracleZone in interface OdbNetworkOrBuilder
      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:
      getGcpOracleZoneBytes in interface OdbNetworkOrBuilder
      Returns:
      The bytes for gcpOracleZone.
    • setGcpOracleZone

      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];
      Parameters:
      value - The gcpOracleZone to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setGcpOracleZoneBytes

      public OdbNetwork.Builder setGcpOracleZoneBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for gcpOracleZone to set.
      Returns:
      This builder for chaining.