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
ListLogsResponseOrBuilderMethods
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;
Name | Description |
values | Iterable<String> The logNames to add. |
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;
Name | Description |
value | String The logNames to add. |
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;
Name | Description |
value | ByteString The bytes of the logNames to add. |
Type | Description |
ListLogsResponse.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListLogsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ListLogsResponse.Builder |
build()
public ListLogsResponse build()
Type | Description |
ListLogsResponse |
buildPartial()
public ListLogsResponse buildPartial()
Type | Description |
ListLogsResponse |
clear()
public ListLogsResponse.Builder clear()
Type | Description |
ListLogsResponse.Builder |
clearField(Descriptors.FieldDescriptor field)
public ListLogsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
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;
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;
Type | Description |
ListLogsResponse.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ListLogsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ListLogsResponse.Builder |
clone()
public ListLogsResponse.Builder clone()
Type | Description |
ListLogsResponse.Builder |
getDefaultInstanceForType()
public ListLogsResponse getDefaultInstanceForType()
Type | Description |
ListLogsResponse |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
Name | Description |
index | int The index of the element to return. |
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;
Name | Description |
index | int The index of the value to return. |
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;
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;
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;
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;
Type | Description |
ByteString | The bytes for nextPageToken. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ListLogsResponse other)
public ListLogsResponse.Builder mergeFrom(ListLogsResponse other)
Name | Description |
other | ListLogsResponse |
Type | Description |
ListLogsResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListLogsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ListLogsResponse.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ListLogsResponse.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ListLogsResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListLogsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ListLogsResponse.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ListLogsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
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;
Name | Description |
index | int The index to set the value at. |
value | String The logNames to set. |
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;
Name | Description |
value | String The nextPageToken to set. |
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;
Name | Description |
value | ByteString The bytes for nextPageToken to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ListLogsResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ListLogsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ListLogsResponse.Builder |