Class Entitlement.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Entitlement.Builder>
com.google.cloud.oracledatabase.v1.Entitlement.Builder
All Implemented Interfaces:
EntitlementOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Entitlement

public static final class Entitlement.Builder extends com.google.protobuf.GeneratedMessage.Builder<Entitlement.Builder> implements EntitlementOrBuilder
 Details of the Entitlement resource.
 
Protobuf type google.cloud.oracledatabase.v1.Entitlement
  • Method Details

    • getDescriptor

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

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

      public Entitlement.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<Entitlement.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<Entitlement.Builder>
    • getDefaultInstanceForType

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

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

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

      public Entitlement.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<Entitlement.Builder>
    • mergeFrom

      public Entitlement.Builder mergeFrom(Entitlement other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Entitlement.Builder>
    • mergeFrom

      public Entitlement.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<Entitlement.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The name of the Entitlement resource with the format:
       projects/{project}/locations/{region}/entitlements/{entitlement}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface EntitlementOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The name of the Entitlement resource with the format:
       projects/{project}/locations/{region}/entitlements/{entitlement}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface EntitlementOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Entitlement.Builder setName(String value)
       Identifier. The name of the Entitlement resource with the format:
       projects/{project}/locations/{region}/entitlements/{entitlement}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Entitlement.Builder clearName()
       Identifier. The name of the Entitlement resource with the format:
       projects/{project}/locations/{region}/entitlements/{entitlement}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Entitlement.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The name of the Entitlement resource with the format:
       projects/{project}/locations/{region}/entitlements/{entitlement}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCloudAccountDetails

      public boolean hasCloudAccountDetails()
       Details of the OCI Cloud Account.
       
      .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2;
      Specified by:
      hasCloudAccountDetails in interface EntitlementOrBuilder
      Returns:
      Whether the cloudAccountDetails field is set.
    • getCloudAccountDetails

      public CloudAccountDetails getCloudAccountDetails()
       Details of the OCI Cloud Account.
       
      .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2;
      Specified by:
      getCloudAccountDetails in interface EntitlementOrBuilder
      Returns:
      The cloudAccountDetails.
    • setCloudAccountDetails

      public Entitlement.Builder setCloudAccountDetails(CloudAccountDetails value)
       Details of the OCI Cloud Account.
       
      .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2;
    • setCloudAccountDetails

      public Entitlement.Builder setCloudAccountDetails(CloudAccountDetails.Builder builderForValue)
       Details of the OCI Cloud Account.
       
      .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2;
    • mergeCloudAccountDetails

      public Entitlement.Builder mergeCloudAccountDetails(CloudAccountDetails value)
       Details of the OCI Cloud Account.
       
      .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2;
    • clearCloudAccountDetails

      public Entitlement.Builder clearCloudAccountDetails()
       Details of the OCI Cloud Account.
       
      .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2;
    • getCloudAccountDetailsBuilder

      public CloudAccountDetails.Builder getCloudAccountDetailsBuilder()
       Details of the OCI Cloud Account.
       
      .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2;
    • getCloudAccountDetailsOrBuilder

      public CloudAccountDetailsOrBuilder getCloudAccountDetailsOrBuilder()
       Details of the OCI Cloud Account.
       
      .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2;
      Specified by:
      getCloudAccountDetailsOrBuilder in interface EntitlementOrBuilder
    • getEntitlementId

      public String getEntitlementId()
       Output only. Google Cloud Marketplace order ID (aka entitlement ID)
       
      string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEntitlementId in interface EntitlementOrBuilder
      Returns:
      The entitlementId.
    • getEntitlementIdBytes

      public com.google.protobuf.ByteString getEntitlementIdBytes()
       Output only. Google Cloud Marketplace order ID (aka entitlement ID)
       
      string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEntitlementIdBytes in interface EntitlementOrBuilder
      Returns:
      The bytes for entitlementId.
    • setEntitlementId

      public Entitlement.Builder setEntitlementId(String value)
       Output only. Google Cloud Marketplace order ID (aka entitlement ID)
       
      string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The entitlementId to set.
      Returns:
      This builder for chaining.
    • clearEntitlementId

      public Entitlement.Builder clearEntitlementId()
       Output only. Google Cloud Marketplace order ID (aka entitlement ID)
       
      string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setEntitlementIdBytes

      public Entitlement.Builder setEntitlementIdBytes(com.google.protobuf.ByteString value)
       Output only. Google Cloud Marketplace order ID (aka entitlement ID)
       
      string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for entitlementId to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. Entitlement State.
       
      .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface EntitlementOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Entitlement.Builder setStateValue(int value)
       Output only. Entitlement State.
       
      .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.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 Entitlement.State getState()
       Output only. Entitlement State.
       
      .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface EntitlementOrBuilder
      Returns:
      The state.
    • setState

      public Entitlement.Builder setState(Entitlement.State value)
       Output only. Entitlement State.
       
      .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Entitlement.Builder clearState()
       Output only. Entitlement State.
       
      .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.