public static final class ListLogsResponse.Builder extends GeneratedMessage.Builder<ListLogsResponse.Builder> implements ListLogsResponseOrBuilderResult returned from ListLogs.
Protobuf type google.logging.v2.ListLogsResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.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 |
StringThe 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 |
ByteStringThe bytes of the logNames to add. |
| Returns | |
|---|---|
| Type | Description |
ListLogsResponse.Builder |
This builder for chaining. |
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 |
|
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. |
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 |
intThe 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 |
intThe 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 GeneratedMessage.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 |
|
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 |
intThe index to set the value at. |
value |
StringThe 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 |
StringThe 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 |
ByteStringThe bytes for nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListLogsResponse.Builder |
This builder for chaining. |