Class ListMembershipsResponse.Builder (1.45.0)

public static final class ListMembershipsResponse.Builder extends GeneratedMessageV3.Builder<ListMembershipsResponse.Builder> implements ListMembershipsResponseOrBuilder

Response message for the GkeHubMembershipService.ListMemberships method.

Protobuf type google.cloud.gkehub.v1beta1.ListMembershipsResponse

Static Methods

getDescriptor()

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

Methods

addAllResources(Iterable<? extends Membership> values)

public ListMembershipsResponse.Builder addAllResources(Iterable<? extends Membership> values)

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

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

addAllUnreachable(Iterable<String> values)

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

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

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListMembershipsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListMembershipsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

addResources(Membership value)

public ListMembershipsResponse.Builder addResources(Membership value)

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

Parameter
Name Description
value Membership
Returns
Type Description
ListMembershipsResponse.Builder

addResources(Membership.Builder builderForValue)

public ListMembershipsResponse.Builder addResources(Membership.Builder builderForValue)

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

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

addResources(int index, Membership value)

public ListMembershipsResponse.Builder addResources(int index, Membership value)

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

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

addResources(int index, Membership.Builder builderForValue)

public ListMembershipsResponse.Builder addResources(int index, Membership.Builder builderForValue)

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

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

addResourcesBuilder()

public Membership.Builder addResourcesBuilder()

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

Returns
Type Description
Membership.Builder

addResourcesBuilder(int index)

public Membership.Builder addResourcesBuilder(int index)

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

Parameter
Name Description
index int
Returns
Type Description
Membership.Builder

addUnreachable(String value)

public ListMembershipsResponse.Builder addUnreachable(String value)

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

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListMembershipsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListMembershipsResponse.Builder addUnreachableBytes(ByteString value)

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

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListMembershipsResponse.Builder

This builder for chaining.

build()

public ListMembershipsResponse build()
Returns
Type Description
ListMembershipsResponse

buildPartial()

public ListMembershipsResponse buildPartial()
Returns
Type Description
ListMembershipsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListMembershipsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

clearNextPageToken()

public ListMembershipsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListMembershipsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListMembershipsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

clearResources()

public ListMembershipsResponse.Builder clearResources()

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

Returns
Type Description
ListMembershipsResponse.Builder

clearUnreachable()

public ListMembershipsResponse.Builder clearUnreachable()

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

repeated string unreachable = 3;

Returns
Type Description
ListMembershipsResponse.Builder

This builder for chaining.

clone()

public ListMembershipsResponse.Builder clone()
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListMembershipsResponse getDefaultInstanceForType()
Returns
Type Description
ListMembershipsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getResources(int index)

public Membership getResources(int index)

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

Parameter
Name Description
index int
Returns
Type Description
Membership

getResourcesBuilder(int index)

public Membership.Builder getResourcesBuilder(int index)

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

Parameter
Name Description
index int
Returns
Type Description
Membership.Builder

getResourcesBuilderList()

public List<Membership.Builder> getResourcesBuilderList()

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

Returns
Type Description
List<Builder>

getResourcesCount()

public int getResourcesCount()

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

Returns
Type Description
int

getResourcesList()

public List<Membership> getResourcesList()

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

Returns
Type Description
List<Membership>

getResourcesOrBuilder(int index)

public MembershipOrBuilder getResourcesOrBuilder(int index)

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

Parameter
Name Description
index int
Returns
Type Description
MembershipOrBuilder

getResourcesOrBuilderList()

public List<? extends MembershipOrBuilder> getResourcesOrBuilderList()

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

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

getUnreachable(int index)

public String getUnreachable(int index)

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

repeated string unreachable = 3;

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 = 3;

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 = 3;

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 = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListMembershipsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListMembershipsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

removeResources(int index)

public ListMembershipsResponse.Builder removeResources(int index)

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

Parameter
Name Description
index int
Returns
Type Description
ListMembershipsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListMembershipsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

setNextPageToken(String value)

public ListMembershipsResponse.Builder setNextPageToken(String value)

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

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListMembershipsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListMembershipsResponse.Builder setNextPageTokenBytes(ByteString value)

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

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListMembershipsResponse.Builder

This builder for chaining.

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

public ListMembershipsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

setResources(int index, Membership value)

public ListMembershipsResponse.Builder setResources(int index, Membership value)

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

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

setResources(int index, Membership.Builder builderForValue)

public ListMembershipsResponse.Builder setResources(int index, Membership.Builder builderForValue)

The list of matching Memberships.

repeated .google.cloud.gkehub.v1beta1.Membership resources = 1;

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ListMembershipsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

setUnreachable(int index, String value)

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

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

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListMembershipsResponse.Builder

This builder for chaining.