Class ListBoundMembershipsResponse.Builder (1.85.0)

public static final class ListBoundMembershipsResponse.Builder extends GeneratedMessage.Builder<ListBoundMembershipsResponse.Builder> implements ListBoundMembershipsResponseOrBuilder

List of Memberships bound to a Scope.

Protobuf type google.cloud.gkehub.v1.ListBoundMembershipsResponse

Static Methods

getDescriptor()

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

Methods

addAllMemberships(Iterable<? extends Membership> values)

public ListBoundMembershipsResponse.Builder addAllMemberships(Iterable<? extends Membership> values)

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.gkehub.v1.Membership>
Returns
Type Description
ListBoundMembershipsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListBoundMembershipsResponse.Builder addAllUnreachable(Iterable<String> values)

List of locations that could not be reached while fetching this list.

repeated string unreachable = 2;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListBoundMembershipsResponse.Builder

This builder for chaining.

addMemberships(Membership value)

public ListBoundMembershipsResponse.Builder addMemberships(Membership value)

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Parameter
Name Description
value Membership
Returns
Type Description
ListBoundMembershipsResponse.Builder

addMemberships(Membership.Builder builderForValue)

public ListBoundMembershipsResponse.Builder addMemberships(Membership.Builder builderForValue)

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Parameter
Name Description
builderForValue Membership.Builder
Returns
Type Description
ListBoundMembershipsResponse.Builder

addMemberships(int index, Membership value)

public ListBoundMembershipsResponse.Builder addMemberships(int index, Membership value)

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Parameters
Name Description
index int
value Membership
Returns
Type Description
ListBoundMembershipsResponse.Builder

addMemberships(int index, Membership.Builder builderForValue)

public ListBoundMembershipsResponse.Builder addMemberships(int index, Membership.Builder builderForValue)

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Parameters
Name Description
index int
builderForValue Membership.Builder
Returns
Type Description
ListBoundMembershipsResponse.Builder

addMembershipsBuilder()

public Membership.Builder addMembershipsBuilder()

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Returns
Type Description
Membership.Builder

addMembershipsBuilder(int index)

public Membership.Builder addMembershipsBuilder(int index)

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Parameter
Name Description
index int
Returns
Type Description
Membership.Builder

addUnreachable(String value)

public ListBoundMembershipsResponse.Builder addUnreachable(String value)

List of locations that could not be reached while fetching this list.

repeated string unreachable = 2;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListBoundMembershipsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListBoundMembershipsResponse.Builder addUnreachableBytes(ByteString value)

List of locations that could not be reached while fetching this list.

repeated string unreachable = 2;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListBoundMembershipsResponse.Builder

This builder for chaining.

build()

public ListBoundMembershipsResponse build()
Returns
Type Description
ListBoundMembershipsResponse

buildPartial()

public ListBoundMembershipsResponse buildPartial()
Returns
Type Description
ListBoundMembershipsResponse

clear()

public ListBoundMembershipsResponse.Builder clear()
Returns
Type Description
ListBoundMembershipsResponse.Builder
Overrides

clearMemberships()

public ListBoundMembershipsResponse.Builder clearMemberships()

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Returns
Type Description
ListBoundMembershipsResponse.Builder

clearNextPageToken()

public ListBoundMembershipsResponse.Builder clearNextPageToken()

A token to request the next page of resources from the ListBoundMemberships method. The value of an empty string means that there are no more resources to return.

string next_page_token = 3;

Returns
Type Description
ListBoundMembershipsResponse.Builder

This builder for chaining.

clearUnreachable()

public ListBoundMembershipsResponse.Builder clearUnreachable()

List of locations that could not be reached while fetching this list.

repeated string unreachable = 2;

Returns
Type Description
ListBoundMembershipsResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListBoundMembershipsResponse getDefaultInstanceForType()
Returns
Type Description
ListBoundMembershipsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMemberships(int index)

public Membership getMemberships(int index)

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Parameter
Name Description
index int
Returns
Type Description
Membership

getMembershipsBuilder(int index)

public Membership.Builder getMembershipsBuilder(int index)

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Parameter
Name Description
index int
Returns
Type Description
Membership.Builder

getMembershipsBuilderList()

public List<Membership.Builder> getMembershipsBuilderList()

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Returns
Type Description
List<Builder>

getMembershipsCount()

public int getMembershipsCount()

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Returns
Type Description
int

getMembershipsList()

public List<Membership> getMembershipsList()

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Returns
Type Description
List<Membership>

getMembershipsOrBuilder(int index)

public MembershipOrBuilder getMembershipsOrBuilder(int index)

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Parameter
Name Description
index int
Returns
Type Description
MembershipOrBuilder

getMembershipsOrBuilderList()

public List<? extends MembershipOrBuilder> getMembershipsOrBuilderList()

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Returns
Type Description
List<? extends com.google.cloud.gkehub.v1.MembershipOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token to request the next page of resources from the ListBoundMemberships method. The value of an empty string means that there are no more resources to return.

string next_page_token = 3;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to request the next page of resources from the ListBoundMemberships method. The value of an empty string means that there are no more resources to return.

string next_page_token = 3;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

List of locations that could not be reached while fetching this list.

repeated string unreachable = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

List of locations that could not be reached while fetching this list.

repeated string unreachable = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

List of locations that could not be reached while fetching this list.

repeated string unreachable = 2;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

List of locations that could not be reached while fetching this list.

repeated string unreachable = 2;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListBoundMembershipsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ListBoundMembershipsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListBoundMembershipsResponse.Builder
Overrides

removeMemberships(int index)

public ListBoundMembershipsResponse.Builder removeMemberships(int index)

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Parameter
Name Description
index int
Returns
Type Description
ListBoundMembershipsResponse.Builder

setMemberships(int index, Membership value)

public ListBoundMembershipsResponse.Builder setMemberships(int index, Membership value)

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Parameters
Name Description
index int
value Membership
Returns
Type Description
ListBoundMembershipsResponse.Builder

setMemberships(int index, Membership.Builder builderForValue)

public ListBoundMembershipsResponse.Builder setMemberships(int index, Membership.Builder builderForValue)

The list of Memberships bound to the given Scope.

repeated .google.cloud.gkehub.v1.Membership memberships = 1;

Parameters
Name Description
index int
builderForValue Membership.Builder
Returns
Type Description
ListBoundMembershipsResponse.Builder

setNextPageToken(String value)

public ListBoundMembershipsResponse.Builder setNextPageToken(String value)

A token to request the next page of resources from the ListBoundMemberships method. The value of an empty string means that there are no more resources to return.

string next_page_token = 3;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListBoundMembershipsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListBoundMembershipsResponse.Builder setNextPageTokenBytes(ByteString value)

A token to request the next page of resources from the ListBoundMemberships method. The value of an empty string means that there are no more resources to return.

string next_page_token = 3;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListBoundMembershipsResponse.Builder

This builder for chaining.

setUnreachable(int index, String value)

public ListBoundMembershipsResponse.Builder setUnreachable(int index, String value)

List of locations that could not be reached while fetching this list.

repeated string unreachable = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListBoundMembershipsResponse.Builder

This builder for chaining.