Class ListBudgetsRequest.Builder (2.40.0)

public static final class ListBudgetsRequest.Builder extends GeneratedMessageV3.Builder<ListBudgetsRequest.Builder> implements ListBudgetsRequestOrBuilder

Request for ListBudgets

Protobuf type google.cloud.billing.budgets.v1beta1.ListBudgetsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListBudgetsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListBudgetsRequest.Builder
Overrides

build()

public ListBudgetsRequest build()
Returns
TypeDescription
ListBudgetsRequest

buildPartial()

public ListBudgetsRequest buildPartial()
Returns
TypeDescription
ListBudgetsRequest

clear()

public ListBudgetsRequest.Builder clear()
Returns
TypeDescription
ListBudgetsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListBudgetsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListBudgetsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ListBudgetsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListBudgetsRequest.Builder
Overrides

clearPageSize()

public ListBudgetsRequest.Builder clearPageSize()

Optional. The maximum number of budgets to return per page. The default and maximum value are 100.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ListBudgetsRequest.Builder

This builder for chaining.

clearPageToken()

public ListBudgetsRequest.Builder clearPageToken()

Optional. The value returned by the last ListBudgetsResponse which indicates that this is a continuation of a prior ListBudgets call, and that the system should return the next page of data.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ListBudgetsRequest.Builder

This builder for chaining.

clearParent()

public ListBudgetsRequest.Builder clearParent()

Required. Name of billing account to list budgets under. Values are of the form billingAccounts/{billingAccountId}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ListBudgetsRequest.Builder

This builder for chaining.

clearScope()

public ListBudgetsRequest.Builder clearScope()

Optional. Set the scope of the budgets to be returned, in the format of the resource name. The scope of a budget is the cost that it tracks, such as costs for a single project, or the costs for all projects in a folder. Only project scope (in the format of "projects/project-id" or "projects/123") is supported in this field. When this field is set to a project's resource name, the budgets returned are tracking the costs for that project.

string scope = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ListBudgetsRequest.Builder

This builder for chaining.

clone()

public ListBudgetsRequest.Builder clone()
Returns
TypeDescription
ListBudgetsRequest.Builder
Overrides

getDefaultInstanceForType()

public ListBudgetsRequest getDefaultInstanceForType()
Returns
TypeDescription
ListBudgetsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPageSize()

public int getPageSize()

Optional. The maximum number of budgets to return per page. The default and maximum value are 100.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The pageSize.

getPageToken()

public String getPageToken()

Optional. The value returned by the last ListBudgetsResponse which indicates that this is a continuation of a prior ListBudgets call, and that the system should return the next page of data.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional. The value returned by the last ListBudgetsResponse which indicates that this is a continuation of a prior ListBudgets call, and that the system should return the next page of data.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. Name of billing account to list budgets under. Values are of the form billingAccounts/{billingAccountId}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Name of billing account to list budgets under. Values are of the form billingAccounts/{billingAccountId}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getScope()

public String getScope()

Optional. Set the scope of the budgets to be returned, in the format of the resource name. The scope of a budget is the cost that it tracks, such as costs for a single project, or the costs for all projects in a folder. Only project scope (in the format of "projects/project-id" or "projects/123") is supported in this field. When this field is set to a project's resource name, the budgets returned are tracking the costs for that project.

string scope = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The scope.

getScopeBytes()

public ByteString getScopeBytes()

Optional. Set the scope of the budgets to be returned, in the format of the resource name. The scope of a budget is the cost that it tracks, such as costs for a single project, or the costs for all projects in a folder. Only project scope (in the format of "projects/project-id" or "projects/123") is supported in this field. When this field is set to a project's resource name, the budgets returned are tracking the costs for that project.

string scope = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for scope.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListBudgetsRequest other)

public ListBudgetsRequest.Builder mergeFrom(ListBudgetsRequest other)
Parameter
NameDescription
otherListBudgetsRequest
Returns
TypeDescription
ListBudgetsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListBudgetsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListBudgetsRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListBudgetsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListBudgetsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListBudgetsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListBudgetsRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ListBudgetsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListBudgetsRequest.Builder
Overrides

setPageSize(int value)

public ListBudgetsRequest.Builder setPageSize(int value)

Optional. The maximum number of budgets to return per page. The default and maximum value are 100.

int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
ListBudgetsRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListBudgetsRequest.Builder setPageToken(String value)

Optional. The value returned by the last ListBudgetsResponse which indicates that this is a continuation of a prior ListBudgets call, and that the system should return the next page of data.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
ListBudgetsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListBudgetsRequest.Builder setPageTokenBytes(ByteString value)

Optional. The value returned by the last ListBudgetsResponse which indicates that this is a continuation of a prior ListBudgets call, and that the system should return the next page of data.

string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
ListBudgetsRequest.Builder

This builder for chaining.

setParent(String value)

public ListBudgetsRequest.Builder setParent(String value)

Required. Name of billing account to list budgets under. Values are of the form billingAccounts/{billingAccountId}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ListBudgetsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListBudgetsRequest.Builder setParentBytes(ByteString value)

Required. Name of billing account to list budgets under. Values are of the form billingAccounts/{billingAccountId}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ListBudgetsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListBudgetsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListBudgetsRequest.Builder
Overrides

setScope(String value)

public ListBudgetsRequest.Builder setScope(String value)

Optional. Set the scope of the budgets to be returned, in the format of the resource name. The scope of a budget is the cost that it tracks, such as costs for a single project, or the costs for all projects in a folder. Only project scope (in the format of "projects/project-id" or "projects/123") is supported in this field. When this field is set to a project's resource name, the budgets returned are tracking the costs for that project.

string scope = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The scope to set.

Returns
TypeDescription
ListBudgetsRequest.Builder

This builder for chaining.

setScopeBytes(ByteString value)

public ListBudgetsRequest.Builder setScopeBytes(ByteString value)

Optional. Set the scope of the budgets to be returned, in the format of the resource name. The scope of a budget is the cost that it tracks, such as costs for a single project, or the costs for all projects in a folder. Only project scope (in the format of "projects/project-id" or "projects/123") is supported in this field. When this field is set to a project's resource name, the budgets returned are tracking the costs for that project.

string scope = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for scope to set.

Returns
TypeDescription
ListBudgetsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ListBudgetsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListBudgetsRequest.Builder
Overrides