Class ListBucketsResponse.Builder (3.10.4)

public static final class ListBucketsResponse.Builder extends GeneratedMessageV3.Builder<ListBucketsResponse.Builder> implements ListBucketsResponseOrBuilder

The response from ListBuckets.

Protobuf type google.logging.v2.ListBucketsResponse

Static Methods

getDescriptor()

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

Methods

addAllBuckets(Iterable<? extends LogBucket> values)

public ListBucketsResponse.Builder addAllBuckets(Iterable<? extends LogBucket> values)

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.logging.v2.LogBucket>
Returns
TypeDescription
ListBucketsResponse.Builder

addBuckets(LogBucket value)

public ListBucketsResponse.Builder addBuckets(LogBucket value)

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Parameter
NameDescription
valueLogBucket
Returns
TypeDescription
ListBucketsResponse.Builder

addBuckets(LogBucket.Builder builderForValue)

public ListBucketsResponse.Builder addBuckets(LogBucket.Builder builderForValue)

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Parameter
NameDescription
builderForValueLogBucket.Builder
Returns
TypeDescription
ListBucketsResponse.Builder

addBuckets(int index, LogBucket value)

public ListBucketsResponse.Builder addBuckets(int index, LogBucket value)

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Parameters
NameDescription
indexint
valueLogBucket
Returns
TypeDescription
ListBucketsResponse.Builder

addBuckets(int index, LogBucket.Builder builderForValue)

public ListBucketsResponse.Builder addBuckets(int index, LogBucket.Builder builderForValue)

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Parameters
NameDescription
indexint
builderForValueLogBucket.Builder
Returns
TypeDescription
ListBucketsResponse.Builder

addBucketsBuilder()

public LogBucket.Builder addBucketsBuilder()

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Returns
TypeDescription
LogBucket.Builder

addBucketsBuilder(int index)

public LogBucket.Builder addBucketsBuilder(int index)

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
LogBucket.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListBucketsResponse build()
Returns
TypeDescription
ListBucketsResponse

buildPartial()

public ListBucketsResponse buildPartial()
Returns
TypeDescription
ListBucketsResponse

clear()

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

clearBuckets()

public ListBucketsResponse.Builder clearBuckets()

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Returns
TypeDescription
ListBucketsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListBucketsResponse.Builder clearNextPageToken()

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Returns
TypeDescription
ListBucketsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBuckets(int index)

public LogBucket getBuckets(int index)

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
LogBucket

getBucketsBuilder(int index)

public LogBucket.Builder getBucketsBuilder(int index)

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
LogBucket.Builder

getBucketsBuilderList()

public List<LogBucket.Builder> getBucketsBuilderList()

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Returns
TypeDescription
List<Builder>

getBucketsCount()

public int getBucketsCount()

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Returns
TypeDescription
int

getBucketsList()

public List<LogBucket> getBucketsList()

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Returns
TypeDescription
List<LogBucket>

getBucketsOrBuilder(int index)

public LogBucketOrBuilder getBucketsOrBuilder(int index)

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
LogBucketOrBuilder

getBucketsOrBuilderList()

public List<? extends LogBucketOrBuilder> getBucketsOrBuilderList()

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Returns
TypeDescription
List<? extends com.google.logging.v2.LogBucketOrBuilder>

getDefaultInstanceForType()

public ListBucketsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListBucketsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListBucketsResponse other)

public ListBucketsResponse.Builder mergeFrom(ListBucketsResponse other)
Parameter
NameDescription
otherListBucketsResponse
Returns
TypeDescription
ListBucketsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeBuckets(int index)

public ListBucketsResponse.Builder removeBuckets(int index)

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListBucketsResponse.Builder

setBuckets(int index, LogBucket value)

public ListBucketsResponse.Builder setBuckets(int index, LogBucket value)

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Parameters
NameDescription
indexint
valueLogBucket
Returns
TypeDescription
ListBucketsResponse.Builder

setBuckets(int index, LogBucket.Builder builderForValue)

public ListBucketsResponse.Builder setBuckets(int index, LogBucket.Builder builderForValue)

A list of buckets.

repeated .google.logging.v2.LogBucket buckets = 1;

Parameters
NameDescription
indexint
builderForValueLogBucket.Builder
Returns
TypeDescription
ListBucketsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListBucketsResponse.Builder setNextPageToken(String value)

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListBucketsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListBucketsResponse.Builder setNextPageTokenBytes(ByteString value)

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListBucketsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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