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.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(ProjectBillingInfo other)
ProjectBillingInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ProjectBillingInfo.Builder
mergeFrom(com.google.protobuf.Message 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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
clear
public ProjectBillingInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
getDefaultInstanceForType
public ProjectBillingInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ProjectBillingInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ProjectBillingInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ProjectBillingInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
setField
public ProjectBillingInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
clearField
public ProjectBillingInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
clearOneof
public ProjectBillingInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
setRepeatedField
public ProjectBillingInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
addRepeatedField
public ProjectBillingInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
mergeFrom
public ProjectBillingInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ProjectBillingInfo.Builder>
-
mergeFrom
public ProjectBillingInfo.Builder mergeFrom(ProjectBillingInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getProjectId
in 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:
getProjectIdBytes
in 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:
getBillingAccountName
in 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:
getBillingAccountNameBytes
in 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:
getBillingEnabled
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
mergeUnknownFields
public final ProjectBillingInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProjectBillingInfo.Builder>
-
-