Class ListBudgetsRequest.Builder (2.49.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListBudgetsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListBudgetsRequest.Builder
Overrides

build()

public ListBudgetsRequest build()
Returns
Type Description
ListBudgetsRequest

buildPartial()

public ListBudgetsRequest buildPartial()
Returns
Type Description
ListBudgetsRequest

clear()

public ListBudgetsRequest.Builder clear()
Returns
Type Description
ListBudgetsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListBudgetsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListBudgetsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ListBudgetsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ListBudgetsRequest.Builder

This builder for chaining.

clone()

public ListBudgetsRequest.Builder clone()
Returns
Type Description
ListBudgetsRequest.Builder
Overrides

getDefaultInstanceForType()

public ListBudgetsRequest getDefaultInstanceForType()
Returns
Type Description
ListBudgetsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for scope.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListBudgetsRequest other)

public ListBudgetsRequest.Builder mergeFrom(ListBudgetsRequest other)
Parameter
Name Description
other ListBudgetsRequest
Returns
Type Description
ListBudgetsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListBudgetsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListBudgetsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListBudgetsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListBudgetsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListBudgetsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListBudgetsRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ListBudgetsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value int

The pageSize to set.

Returns
Type Description
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
Name Description
value String

The pageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The scope to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for scope to set.

Returns
Type Description
ListBudgetsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ListBudgetsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListBudgetsRequest.Builder
Overrides