public static final class ListLogsResponse.Builder extends GeneratedMessageV3.Builder<ListLogsResponse.Builder> implements ListLogsResponseOrBuilder
Result returned from ListLogs.
Protobuf type google.logging.v2.ListLogsResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ListLogsResponse.BuilderImplements
ListLogsResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values |
Iterable<String> The logNames to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The logNames to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes of the logNames to add. |
Returns | |
---|---|
Type | Description |
ListLogsResponse.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListLogsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ListLogsResponse.Builder |
build()
public ListLogsResponse build()
Returns | |
---|---|
Type | Description |
ListLogsResponse |
buildPartial()
public ListLogsResponse buildPartial()
Returns | |
---|---|
Type | Description |
ListLogsResponse |
clear()
public ListLogsResponse.Builder clear()
Returns | |
---|---|
Type | Description |
ListLogsResponse.Builder |
clearField(Descriptors.FieldDescriptor field)
public ListLogsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ListLogsResponse.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ListLogsResponse.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ListLogsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ListLogsResponse.Builder |
clone()
public ListLogsResponse.Builder clone()
Returns | |
---|---|
Type | Description |
ListLogsResponse.Builder |
getDefaultInstanceForType()
public ListLogsResponse getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ListLogsResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString |
The bytes for nextPageToken. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(ListLogsResponse other)
public ListLogsResponse.Builder mergeFrom(ListLogsResponse other)
Parameter | |
---|---|
Name | Description |
other |
ListLogsResponse |
Returns | |
---|---|
Type | Description |
ListLogsResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListLogsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ListLogsResponse.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ListLogsResponse.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ListLogsResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListLogsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ListLogsResponse.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ListLogsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ListLogsResponse.Builder |
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 | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The logNames to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The nextPageToken to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for nextPageToken to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ListLogsResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ListLogsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ListLogsResponse.Builder |