Class ProjectBillingInfo.Builder

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

public static final class ProjectBillingInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<ProjectBillingInfo.Builder> implements ProjectBillingInfoOrBuilder
 Encapsulation of billing information for a Google Cloud Console project. A
 project has at most one associated billing account at a time (but a billing
 account can be assigned to multiple projects).
 
Protobuf type google.cloud.billing.v1.ProjectBillingInfo
  • 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<ProjectBillingInfo.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<ProjectBillingInfo.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<ProjectBillingInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getName()
       Output only. The resource name for the `ProjectBillingInfo`; has the form
       `projects/{project_id}/billingInfo`. For example, the resource name for the
       billing information for project `tokyo-rain-123` would be
       `projects/tokyo-rain-123/billingInfo`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface ProjectBillingInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name for the `ProjectBillingInfo`; has the form
       `projects/{project_id}/billingInfo`. For example, the resource name for the
       billing information for project `tokyo-rain-123` would be
       `projects/tokyo-rain-123/billingInfo`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface ProjectBillingInfoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ProjectBillingInfo.Builder setName(String value)
       Output only. The resource name for the `ProjectBillingInfo`; has the form
       `projects/{project_id}/billingInfo`. For example, the resource name for the
       billing information for project `tokyo-rain-123` would be
       `projects/tokyo-rain-123/billingInfo`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ProjectBillingInfo.Builder clearName()
       Output only. The resource name for the `ProjectBillingInfo`; has the form
       `projects/{project_id}/billingInfo`. For example, the resource name for the
       billing information for project `tokyo-rain-123` would be
       `projects/tokyo-rain-123/billingInfo`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public ProjectBillingInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name for the `ProjectBillingInfo`; has the form
       `projects/{project_id}/billingInfo`. For example, the resource name for the
       billing information for project `tokyo-rain-123` would be
       `projects/tokyo-rain-123/billingInfo`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getProjectId

      public String getProjectId()
       Output only. The ID of the project that this `ProjectBillingInfo`
       represents, such as `tokyo-rain-123`. This is a convenience field so that
       you don't need to parse the `name` field to obtain a project ID.
       
      string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProjectId in interface ProjectBillingInfoOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Output only. The ID of the project that this `ProjectBillingInfo`
       represents, such as `tokyo-rain-123`. This is a convenience field so that
       you don't need to parse the `name` field to obtain a project ID.
       
      string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProjectIdBytes in interface ProjectBillingInfoOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public ProjectBillingInfo.Builder setProjectId(String value)
       Output only. The ID of the project that this `ProjectBillingInfo`
       represents, such as `tokyo-rain-123`. This is a convenience field so that
       you don't need to parse the `name` field to obtain a project ID.
       
      string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public ProjectBillingInfo.Builder clearProjectId()
       Output only. The ID of the project that this `ProjectBillingInfo`
       represents, such as `tokyo-rain-123`. This is a convenience field so that
       you don't need to parse the `name` field to obtain a project ID.
       
      string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public ProjectBillingInfo.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       Output only. The ID of the project that this `ProjectBillingInfo`
       represents, such as `tokyo-rain-123`. This is a convenience field so that
       you don't need to parse the `name` field to obtain a project ID.
       
      string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getBillingAccountName

      public String getBillingAccountName()
       The resource name of the billing account associated with the project, if
       any. For example, `billingAccounts/012345-567890-ABCDEF`.
       
      string billing_account_name = 3;
      Specified by:
      getBillingAccountName in interface ProjectBillingInfoOrBuilder
      Returns:
      The billingAccountName.
    • getBillingAccountNameBytes

      public com.google.protobuf.ByteString getBillingAccountNameBytes()
       The resource name of the billing account associated with the project, if
       any. For example, `billingAccounts/012345-567890-ABCDEF`.
       
      string billing_account_name = 3;
      Specified by:
      getBillingAccountNameBytes in interface ProjectBillingInfoOrBuilder
      Returns:
      The bytes for billingAccountName.
    • setBillingAccountName

      public ProjectBillingInfo.Builder setBillingAccountName(String value)
       The resource name of the billing account associated with the project, if
       any. For example, `billingAccounts/012345-567890-ABCDEF`.
       
      string billing_account_name = 3;
      Parameters:
      value - The billingAccountName to set.
      Returns:
      This builder for chaining.
    • clearBillingAccountName

      public ProjectBillingInfo.Builder clearBillingAccountName()
       The resource name of the billing account associated with the project, if
       any. For example, `billingAccounts/012345-567890-ABCDEF`.
       
      string billing_account_name = 3;
      Returns:
      This builder for chaining.
    • setBillingAccountNameBytes

      public ProjectBillingInfo.Builder setBillingAccountNameBytes(com.google.protobuf.ByteString value)
       The resource name of the billing account associated with the project, if
       any. For example, `billingAccounts/012345-567890-ABCDEF`.
       
      string billing_account_name = 3;
      Parameters:
      value - The bytes for billingAccountName to set.
      Returns:
      This builder for chaining.
    • getBillingEnabled

      public boolean getBillingEnabled()
       Output only. True if the project is associated with an open billing
       account, to which usage on the project is charged. False if the project is
       associated with a closed billing account, or no billing account at all, and
       therefore cannot use paid services.
       
      bool billing_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBillingEnabled in interface ProjectBillingInfoOrBuilder
      Returns:
      The billingEnabled.
    • setBillingEnabled

      public ProjectBillingInfo.Builder setBillingEnabled(boolean value)
       Output only. True if the project is associated with an open billing
       account, to which usage on the project is charged. False if the project is
       associated with a closed billing account, or no billing account at all, and
       therefore cannot use paid services.
       
      bool billing_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The billingEnabled to set.
      Returns:
      This builder for chaining.
    • clearBillingEnabled

      public ProjectBillingInfo.Builder clearBillingEnabled()
       Output only. True if the project is associated with an open billing
       account, to which usage on the project is charged. False if the project is
       associated with a closed billing account, or no billing account at all, and
       therefore cannot use paid services.
       
      bool billing_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.