Class ListLinksResponse.Builder (0.3.0)

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

Response for listing links.

Protobuf type google.cloud.observability.v1.ListLinksResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

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

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.observability.v1.Link>
Returns
Type Description
ListLinksResponse.Builder
public ListLinksResponse.Builder addLinks(Link value)

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Parameter
Name Description
value Link
Returns
Type Description
ListLinksResponse.Builder
public ListLinksResponse.Builder addLinks(Link.Builder builderForValue)

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Parameter
Name Description
builderForValue Link.Builder
Returns
Type Description
ListLinksResponse.Builder
public ListLinksResponse.Builder addLinks(int index, Link value)

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Parameters
Name Description
index int
value Link
Returns
Type Description
ListLinksResponse.Builder
public ListLinksResponse.Builder addLinks(int index, Link.Builder builderForValue)

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Parameters
Name Description
index int
builderForValue Link.Builder
Returns
Type Description
ListLinksResponse.Builder

addLinksBuilder()

public Link.Builder addLinksBuilder()

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Returns
Type Description
Link.Builder

addLinksBuilder(int index)

public Link.Builder addLinksBuilder(int index)

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Parameter
Name Description
index int
Returns
Type Description
Link.Builder

build()

public ListLinksResponse build()
Returns
Type Description
ListLinksResponse

buildPartial()

public ListLinksResponse buildPartial()
Returns
Type Description
ListLinksResponse

clear()

public ListLinksResponse.Builder clear()
Returns
Type Description
ListLinksResponse.Builder
Overrides
public ListLinksResponse.Builder clearLinks()

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Returns
Type Description
ListLinksResponse.Builder

clearNextPageToken()

public ListLinksResponse.Builder clearNextPageToken()

Optional. A token that can be sent as page_token to retrieve the next page. When this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListLinksResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListLinksResponse getDefaultInstanceForType()
Returns
Type Description
ListLinksResponse

getDescriptorForType()

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

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Parameter
Name Description
index int
Returns
Type Description
Link

getLinksBuilder(int index)

public Link.Builder getLinksBuilder(int index)

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Parameter
Name Description
index int
Returns
Type Description
Link.Builder

getLinksBuilderList()

public List<Link.Builder> getLinksBuilderList()

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Returns
Type Description
List<Builder>

getLinksCount()

public int getLinksCount()

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Returns
Type Description
int
public List<Link> getLinksList()

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Returns
Type Description
List<Link>

getLinksOrBuilder(int index)

public LinkOrBuilder getLinksOrBuilder(int index)

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Parameter
Name Description
index int
Returns
Type Description
LinkOrBuilder

getLinksOrBuilderList()

public List<? extends LinkOrBuilder> getLinksOrBuilderList()

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Returns
Type Description
List<? extends com.google.cloud.observability.v1.LinkOrBuilder>

getNextPageToken()

public String getNextPageToken()

Optional. A token that can be sent as page_token to retrieve the next page. When this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Optional. A token that can be sent as page_token to retrieve the next page. When this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListLinksResponse other)

public ListLinksResponse.Builder mergeFrom(ListLinksResponse other)
Parameter
Name Description
other ListLinksResponse
Returns
Type Description
ListLinksResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListLinksResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListLinksResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListLinksResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListLinksResponse.Builder
Overrides
public ListLinksResponse.Builder removeLinks(int index)

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Parameter
Name Description
index int
Returns
Type Description
ListLinksResponse.Builder
public ListLinksResponse.Builder setLinks(int index, Link value)

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Parameters
Name Description
index int
value Link
Returns
Type Description
ListLinksResponse.Builder
public ListLinksResponse.Builder setLinks(int index, Link.Builder builderForValue)

The list of links.

repeated .google.cloud.observability.v1.Link links = 1;

Parameters
Name Description
index int
builderForValue Link.Builder
Returns
Type Description
ListLinksResponse.Builder

setNextPageToken(String value)

public ListLinksResponse.Builder setNextPageToken(String value)

Optional. A token that can be sent as page_token to retrieve the next page. When this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListLinksResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListLinksResponse.Builder setNextPageTokenBytes(ByteString value)

Optional. A token that can be sent as page_token to retrieve the next page. When this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListLinksResponse.Builder

This builder for chaining.