Package com.google.cloud.billing.v1
Interface ProjectBillingInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ProjectBillingInfo,ProjectBillingInfo.Builder
@Generated
public interface ProjectBillingInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe resource name of the billing account associated with the project, if any.com.google.protobuf.ByteStringThe resource name of the billing account associated with the project, if any.booleanOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
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];- Returns:
- The name.
-
getNameBytes
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];- Returns:
- The bytes for name.
-
getProjectId
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];- Returns:
- The projectId.
-
getProjectIdBytes
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];- Returns:
- The bytes for projectId.
-
getBillingAccountName
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;- Returns:
- The billingAccountName.
-
getBillingAccountNameBytes
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;- Returns:
- The bytes for billingAccountName.
-
getBillingEnabled
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];- Returns:
- The billingEnabled.
-