public static final class ProjectBillingInfo.Builder extends com.google.protobuf.GeneratedMessageV3.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| Modifier and Type | Method and Description |
|---|---|
ProjectBillingInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ProjectBillingInfo |
build() |
ProjectBillingInfo |
buildPartial() |
ProjectBillingInfo.Builder |
clear() |
ProjectBillingInfo.Builder |
clearBillingAccountName()
The resource name of the billing account associated with the project, if
any.
|
ProjectBillingInfo.Builder |
clearBillingEnabled()
Output only.
|
ProjectBillingInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ProjectBillingInfo.Builder |
clearName()
Output only.
|
ProjectBillingInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ProjectBillingInfo.Builder |
clearProjectId()
Output only.
|
ProjectBillingInfo.Builder |
clone() |
String |
getBillingAccountName()
The resource name of the billing account associated with the project, if
any.
|
com.google.protobuf.ByteString |
getBillingAccountNameBytes()
The resource name of the billing account associated with the project, if
any.
|
boolean |
getBillingEnabled()
Output only.
|
ProjectBillingInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
String |
getProjectId()
Output only.
|
com.google.protobuf.ByteString |
getProjectIdBytes()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ProjectBillingInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ProjectBillingInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
ProjectBillingInfo.Builder |
mergeFrom(ProjectBillingInfo other) |
ProjectBillingInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ProjectBillingInfo.Builder |
setBillingAccountName(String value)
The resource name of the billing account associated with the project, if
any.
|
ProjectBillingInfo.Builder |
setBillingAccountNameBytes(com.google.protobuf.ByteString value)
The resource name of the billing account associated with the project, if
any.
|
ProjectBillingInfo.Builder |
setBillingEnabled(boolean value)
Output only.
|
ProjectBillingInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ProjectBillingInfo.Builder |
setName(String value)
Output only.
|
ProjectBillingInfo.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
ProjectBillingInfo.Builder |
setProjectId(String value)
Output only.
|
ProjectBillingInfo.Builder |
setProjectIdBytes(com.google.protobuf.ByteString value)
Output only.
|
ProjectBillingInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ProjectBillingInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>public ProjectBillingInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>public ProjectBillingInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ProjectBillingInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ProjectBillingInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ProjectBillingInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>public ProjectBillingInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>public ProjectBillingInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>public ProjectBillingInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>public ProjectBillingInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>public ProjectBillingInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>public ProjectBillingInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProjectBillingInfo.Builder>public ProjectBillingInfo.Builder mergeFrom(ProjectBillingInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>public ProjectBillingInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProjectBillingInfo.Builder>IOExceptionpublic 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];getName in interface ProjectBillingInfoOrBuilderpublic 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];getNameBytes in interface ProjectBillingInfoOrBuilderpublic 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];value - The name to set.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];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];value - The bytes for name to set.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];getProjectId in interface ProjectBillingInfoOrBuilderpublic 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];getProjectIdBytes in interface ProjectBillingInfoOrBuilderpublic 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];value - The projectId to set.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];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];value - The bytes for projectId to set.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;getBillingAccountName in interface ProjectBillingInfoOrBuilderpublic 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;getBillingAccountNameBytes in interface ProjectBillingInfoOrBuilderpublic 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;value - The billingAccountName to set.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;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;value - The bytes for billingAccountName to set.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];getBillingEnabled in interface ProjectBillingInfoOrBuilderpublic 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];value - The billingEnabled to set.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];public final ProjectBillingInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>public final ProjectBillingInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>Copyright © 2024 Google LLC. All rights reserved.