Class ListMembershipsResponse.Builder (1.8.0)

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

Response message for the GkeHub.ListMemberships method.

Protobuf type google.cloud.gkehub.v1.ListMembershipsResponse

Static Methods

getDescriptor()

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

Methods

addAllResources(Iterable<? extends Membership> values)

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

The list of matching Memberships.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.gkehub.v1.Membership>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListMembershipsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResources(Membership value)

public ListMembershipsResponse.Builder addResources(Membership value)

The list of matching Memberships.

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

Parameter
NameDescription
valueMembership
Returns
TypeDescription
ListMembershipsResponse.Builder

addResources(Membership.Builder builderForValue)

public ListMembershipsResponse.Builder addResources(Membership.Builder builderForValue)

The list of matching Memberships.

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

Parameter
NameDescription
builderForValueMembership.Builder
Returns
TypeDescription
ListMembershipsResponse.Builder

addResources(int index, Membership value)

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

The list of matching Memberships.

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

Parameters
NameDescription
indexint
valueMembership
Returns
TypeDescription
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.v1.Membership resources = 1;

Parameters
NameDescription
indexint
builderForValueMembership.Builder
Returns
TypeDescription
ListMembershipsResponse.Builder

addResourcesBuilder()

public Membership.Builder addResourcesBuilder()

The list of matching Memberships.

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

Returns
TypeDescription
Membership.Builder

addResourcesBuilder(int index)

public Membership.Builder addResourcesBuilder(int index)

The list of matching Memberships.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListMembershipsResponse.Builder

This builder for chaining.

build()

public ListMembershipsResponse build()
Returns
TypeDescription
ListMembershipsResponse

buildPartial()

public ListMembershipsResponse buildPartial()
Returns
TypeDescription
ListMembershipsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListMembershipsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListMembershipsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResources()

public ListMembershipsResponse.Builder clearResources()

The list of matching Memberships.

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

Returns
TypeDescription
ListMembershipsResponse.Builder

clearUnreachable()

public ListMembershipsResponse.Builder clearUnreachable()

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

repeated string unreachable = 3;

Returns
TypeDescription
ListMembershipsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListMembershipsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListMembershipsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

getResources(int index)

public Membership getResources(int index)

The list of matching Memberships.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Membership

getResourcesBuilder(int index)

public Membership.Builder getResourcesBuilder(int index)

The list of matching Memberships.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Membership.Builder

getResourcesBuilderList()

public List<Membership.Builder> getResourcesBuilderList()

The list of matching Memberships.

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

Returns
TypeDescription
List<Builder>

getResourcesCount()

public int getResourcesCount()

The list of matching Memberships.

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

Returns
TypeDescription
int

getResourcesList()

public List<Membership> getResourcesList()

The list of matching Memberships.

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

Returns
TypeDescription
List<Membership>

getResourcesOrBuilder(int index)

public MembershipOrBuilder getResourcesOrBuilder(int index)

The list of matching Memberships.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
MembershipOrBuilder

getResourcesOrBuilderList()

public List<? extends MembershipOrBuilder> getResourcesOrBuilderList()

The list of matching Memberships.

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

Returns
TypeDescription
List<? extends com.google.cloud.gkehub.v1.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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListMembershipsResponse other)

public ListMembershipsResponse.Builder mergeFrom(ListMembershipsResponse other)
Parameter
NameDescription
otherListMembershipsResponse
Returns
TypeDescription
ListMembershipsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListMembershipsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListMembershipsResponse.Builder
Overrides

removeResources(int index)

public ListMembershipsResponse.Builder removeResources(int index)

The list of matching Memberships.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListMembershipsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListMembershipsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1.Membership resources = 1;

Parameters
NameDescription
indexint
valueMembership
Returns
TypeDescription
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.v1.Membership resources = 1;

Parameters
NameDescription
indexint
builderForValueMembership.Builder
Returns
TypeDescription
ListMembershipsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListMembershipsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListMembershipsResponse.Builder

This builder for chaining.