Class ListLinksResponse.Builder (3.15.2)

public static final class ListLinksResponse.Builder extends GeneratedMessageV3.Builder<ListLinksResponse.Builder> implements ListLinksResponseOrBuilder

The response from ListLinks.

Protobuf type google.logging.v2.ListLinksResponse

Static Methods

getDescriptor()

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

Methods

public ListLinksResponse.Builder addAllLinks(Iterable<? extends Link> values)

A list of links.

repeated .google.logging.v2.Link links = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.logging.v2.Link>
Returns
TypeDescription
ListLinksResponse.Builder
public ListLinksResponse.Builder addLinks(Link value)

A list of links.

repeated .google.logging.v2.Link links = 1;

Parameter
NameDescription
valueLink
Returns
TypeDescription
ListLinksResponse.Builder
public ListLinksResponse.Builder addLinks(Link.Builder builderForValue)

A list of links.

repeated .google.logging.v2.Link links = 1;

Parameter
NameDescription
builderForValueLink.Builder
Returns
TypeDescription
ListLinksResponse.Builder
public ListLinksResponse.Builder addLinks(int index, Link value)

A list of links.

repeated .google.logging.v2.Link links = 1;

Parameters
NameDescription
indexint
valueLink
Returns
TypeDescription
ListLinksResponse.Builder
public ListLinksResponse.Builder addLinks(int index, Link.Builder builderForValue)

A list of links.

repeated .google.logging.v2.Link links = 1;

Parameters
NameDescription
indexint
builderForValueLink.Builder
Returns
TypeDescription
ListLinksResponse.Builder

addLinksBuilder()

public Link.Builder addLinksBuilder()

A list of links.

repeated .google.logging.v2.Link links = 1;

Returns
TypeDescription
Link.Builder

addLinksBuilder(int index)

public Link.Builder addLinksBuilder(int index)

A list of links.

repeated .google.logging.v2.Link links = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Link.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListLinksResponse build()
Returns
TypeDescription
ListLinksResponse

buildPartial()

public ListLinksResponse buildPartial()
Returns
TypeDescription
ListLinksResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

A list of links.

repeated .google.logging.v2.Link links = 1;

Returns
TypeDescription
ListLinksResponse.Builder

clearNextPageToken()

public ListLinksResponse.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 the same method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Returns
TypeDescription
ListLinksResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListLinksResponse getDefaultInstanceForType()
Returns
TypeDescription
ListLinksResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides
public Link getLinks(int index)

A list of links.

repeated .google.logging.v2.Link links = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Link

getLinksBuilder(int index)

public Link.Builder getLinksBuilder(int index)

A list of links.

repeated .google.logging.v2.Link links = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Link.Builder

getLinksBuilderList()

public List<Link.Builder> getLinksBuilderList()

A list of links.

repeated .google.logging.v2.Link links = 1;

Returns
TypeDescription
List<Builder>

getLinksCount()

public int getLinksCount()

A list of links.

repeated .google.logging.v2.Link links = 1;

Returns
TypeDescription
int
public List<Link> getLinksList()

A list of links.

repeated .google.logging.v2.Link links = 1;

Returns
TypeDescription
List<Link>

getLinksOrBuilder(int index)

public LinkOrBuilder getLinksOrBuilder(int index)

A list of links.

repeated .google.logging.v2.Link links = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
LinkOrBuilder

getLinksOrBuilderList()

public List<? extends LinkOrBuilder> getLinksOrBuilderList()

A list of links.

repeated .google.logging.v2.Link links = 1;

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

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 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 those appearing 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(ListLinksResponse other)

public ListLinksResponse.Builder mergeFrom(ListLinksResponse other)
Parameter
NameDescription
otherListLinksResponse
Returns
TypeDescription
ListLinksResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListLinksResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListLinksResponse.Builder
Overrides
public ListLinksResponse.Builder removeLinks(int index)

A list of links.

repeated .google.logging.v2.Link links = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListLinksResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListLinksResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListLinksResponse.Builder
Overrides
public ListLinksResponse.Builder setLinks(int index, Link value)

A list of links.

repeated .google.logging.v2.Link links = 1;

Parameters
NameDescription
indexint
valueLink
Returns
TypeDescription
ListLinksResponse.Builder
public ListLinksResponse.Builder setLinks(int index, Link.Builder builderForValue)

A list of links.

repeated .google.logging.v2.Link links = 1;

Parameters
NameDescription
indexint
builderForValueLink.Builder
Returns
TypeDescription
ListLinksResponse.Builder

setNextPageToken(String value)

public ListLinksResponse.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 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
ListLinksResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListLinksResponse.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 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
ListLinksResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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