Class MoveBillingAccountRequest.Builder

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

public static final class MoveBillingAccountRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<MoveBillingAccountRequest.Builder> implements MoveBillingAccountRequestOrBuilder
 Request message for `MoveBillingAccount` RPC.
 
Protobuf type google.cloud.billing.v1.MoveBillingAccountRequest
  • 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<MoveBillingAccountRequest.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<MoveBillingAccountRequest.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<MoveBillingAccountRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

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

      public String getName()
       Required. The resource name of the billing account to move.
       Must be of the form `billingAccounts/{billing_account_id}`.
       The specified billing account cannot be a subaccount, since a subaccount
       always belongs to the same organization as its parent account.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface MoveBillingAccountRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The resource name of the billing account to move.
       Must be of the form `billingAccounts/{billing_account_id}`.
       The specified billing account cannot be a subaccount, since a subaccount
       always belongs to the same organization as its parent account.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface MoveBillingAccountRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public MoveBillingAccountRequest.Builder setName(String value)
       Required. The resource name of the billing account to move.
       Must be of the form `billingAccounts/{billing_account_id}`.
       The specified billing account cannot be a subaccount, since a subaccount
       always belongs to the same organization as its parent account.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. The resource name of the billing account to move.
       Must be of the form `billingAccounts/{billing_account_id}`.
       The specified billing account cannot be a subaccount, since a subaccount
       always belongs to the same organization as its parent account.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public MoveBillingAccountRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the billing account to move.
       Must be of the form `billingAccounts/{billing_account_id}`.
       The specified billing account cannot be a subaccount, since a subaccount
       always belongs to the same organization as its parent account.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDestinationParent

      public String getDestinationParent()
       Required. The resource name of the Organization to move
       the billing account under.
       Must be of the form `organizations/{organization_id}`.
       
      string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDestinationParent in interface MoveBillingAccountRequestOrBuilder
      Returns:
      The destinationParent.
    • getDestinationParentBytes

      public com.google.protobuf.ByteString getDestinationParentBytes()
       Required. The resource name of the Organization to move
       the billing account under.
       Must be of the form `organizations/{organization_id}`.
       
      string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDestinationParentBytes in interface MoveBillingAccountRequestOrBuilder
      Returns:
      The bytes for destinationParent.
    • setDestinationParent

      public MoveBillingAccountRequest.Builder setDestinationParent(String value)
       Required. The resource name of the Organization to move
       the billing account under.
       Must be of the form `organizations/{organization_id}`.
       
      string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The destinationParent to set.
      Returns:
      This builder for chaining.
    • clearDestinationParent

      public MoveBillingAccountRequest.Builder clearDestinationParent()
       Required. The resource name of the Organization to move
       the billing account under.
       Must be of the form `organizations/{organization_id}`.
       
      string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setDestinationParentBytes

      public MoveBillingAccountRequest.Builder setDestinationParentBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the Organization to move
       the billing account under.
       Must be of the form `organizations/{organization_id}`.
       
      string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for destinationParent to set.
      Returns:
      This builder for chaining.