Class ListLogsResponse.Builder (3.6.4)

public static final class ListLogsResponse.Builder extends GeneratedMessageV3.Builder<ListLogsResponse.Builder> implements ListLogsResponseOrBuilder

Result returned from ListLogs.

Protobuf type google.logging.v2.ListLogsResponse

Static Methods

getDescriptor()

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

Methods

addAllLogNames(Iterable<String> values)

public ListLogsResponse.Builder addAllLogNames(Iterable<String> values)

A list of log names. For example, "projects/my-project/logs/syslog" or "organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity".

repeated string log_names = 3;

Parameter
NameDescription
valuesIterable<String>

The logNames to add.

Returns
TypeDescription
ListLogsResponse.Builder

This builder for chaining.

addLogNames(String value)

public ListLogsResponse.Builder addLogNames(String value)

A list of log names. For example, "projects/my-project/logs/syslog" or "organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity".

repeated string log_names = 3;

Parameter
NameDescription
valueString

The logNames to add.

Returns
TypeDescription
ListLogsResponse.Builder

This builder for chaining.

addLogNamesBytes(ByteString value)

public ListLogsResponse.Builder addLogNamesBytes(ByteString value)

A list of log names. For example, "projects/my-project/logs/syslog" or "organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity".

repeated string log_names = 3;

Parameter
NameDescription
valueByteString

The bytes of the logNames to add.

Returns
TypeDescription
ListLogsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListLogsResponse build()
Returns
TypeDescription
ListLogsResponse

buildPartial()

public ListLogsResponse buildPartial()
Returns
TypeDescription
ListLogsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLogNames()

public ListLogsResponse.Builder clearLogNames()

A list of log names. For example, "projects/my-project/logs/syslog" or "organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity".

repeated string log_names = 3;

Returns
TypeDescription
ListLogsResponse.Builder

This builder for chaining.

clearNextPageToken()

public ListLogsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
TypeDescription
ListLogsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListLogsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListLogsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLogNames(int index)

public String getLogNames(int index)

A list of log names. For example, "projects/my-project/logs/syslog" or "organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity".

repeated string log_names = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The logNames at the given index.

getLogNamesBytes(int index)

public ByteString getLogNamesBytes(int index)

A list of log names. For example, "projects/my-project/logs/syslog" or "organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity".

repeated string log_names = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the logNames at the given index.

getLogNamesCount()

public int getLogNamesCount()

A list of log names. For example, "projects/my-project/logs/syslog" or "organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity".

repeated string log_names = 3;

Returns
TypeDescription
int

The count of logNames.

getLogNamesList()

public ProtocolStringList getLogNamesList()

A list of log names. For example, "projects/my-project/logs/syslog" or "organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity".

repeated string log_names = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the logNames.

getNextPageToken()

public String getNextPageToken()

If there might be more results than those appearing in this response, then nextPageToken is included. To get the next set of results, call this 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 those appearing in this response, then nextPageToken is included. To get the next set of results, call this 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(ListLogsResponse other)

public ListLogsResponse.Builder mergeFrom(ListLogsResponse other)
Parameter
NameDescription
otherListLogsResponse
Returns
TypeDescription
ListLogsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLogNames(int index, String value)

public ListLogsResponse.Builder setLogNames(int index, String value)

A list of log names. For example, "projects/my-project/logs/syslog" or "organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity".

repeated string log_names = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The logNames to set.

Returns
TypeDescription
ListLogsResponse.Builder

This builder for chaining.

setNextPageToken(String value)

public ListLogsResponse.Builder setNextPageToken(String value)

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

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListLogsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListLogsResponse.Builder setNextPageTokenBytes(ByteString value)

If there might be more results than those appearing in this response, then nextPageToken is included. To get the next set of results, call this 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
ListLogsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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