Package com.google.cloud.billing.v1
Class ProjectBillingInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.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 typegoogle.cloud.billing.v1.ProjectBillingInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectBillingInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ProjectBillingInfobuild()ProjectBillingInfobuildPartial()ProjectBillingInfo.Builderclear()ProjectBillingInfo.BuilderclearBillingAccountName()The resource name of the billing account associated with the project, if any.ProjectBillingInfo.BuilderclearBillingEnabled()Output only.ProjectBillingInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ProjectBillingInfo.BuilderclearName()Output only.ProjectBillingInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ProjectBillingInfo.BuilderclearProjectId()Output only.ProjectBillingInfo.Builderclone()StringgetBillingAccountName()The resource name of the billing account associated with the project, if any.com.google.protobuf.ByteStringgetBillingAccountNameBytes()The resource name of the billing account associated with the project, if any.booleangetBillingEnabled()Output only.ProjectBillingInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.StringgetProjectId()Output only.com.google.protobuf.ByteStringgetProjectIdBytes()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ProjectBillingInfo.BuildermergeFrom(ProjectBillingInfo other)ProjectBillingInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ProjectBillingInfo.BuildermergeFrom(com.google.protobuf.Message other)ProjectBillingInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ProjectBillingInfo.BuildersetBillingAccountName(String value)The resource name of the billing account associated with the project, if any.ProjectBillingInfo.BuildersetBillingAccountNameBytes(com.google.protobuf.ByteString value)The resource name of the billing account associated with the project, if any.ProjectBillingInfo.BuildersetBillingEnabled(boolean value)Output only.ProjectBillingInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ProjectBillingInfo.BuildersetName(String value)Output only.ProjectBillingInfo.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.ProjectBillingInfo.BuildersetProjectId(String value)Output only.ProjectBillingInfo.BuildersetProjectIdBytes(com.google.protobuf.ByteString value)Output only.ProjectBillingInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ProjectBillingInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
clear
public ProjectBillingInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
getDefaultInstanceForType
public ProjectBillingInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ProjectBillingInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ProjectBillingInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ProjectBillingInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
setField
public ProjectBillingInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
clearField
public ProjectBillingInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
clearOneof
public ProjectBillingInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
setRepeatedField
public ProjectBillingInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
addRepeatedField
public ProjectBillingInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
mergeFrom
public ProjectBillingInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProjectBillingInfo.Builder>
-
mergeFrom
public ProjectBillingInfo.Builder mergeFrom(ProjectBillingInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
mergeFrom
public ProjectBillingInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getNamein interfaceProjectBillingInfoOrBuilder- 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:
getNameBytesin interfaceProjectBillingInfoOrBuilder- 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:
getProjectIdin interfaceProjectBillingInfoOrBuilder- 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:
getProjectIdBytesin interfaceProjectBillingInfoOrBuilder- 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:
getBillingAccountNamein interfaceProjectBillingInfoOrBuilder- 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:
getBillingAccountNameBytesin interfaceProjectBillingInfoOrBuilder- 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:
getBillingEnabledin interfaceProjectBillingInfoOrBuilder- 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.
-
setUnknownFields
public final ProjectBillingInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
mergeUnknownFields
public final ProjectBillingInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
-