Class ListHostProjectRegistrationsResponse.Builder (0.1.0)

public static final class ListHostProjectRegistrationsResponse.Builder extends GeneratedMessageV3.Builder<ListHostProjectRegistrationsResponse.Builder> implements ListHostProjectRegistrationsResponseOrBuilder

The ListHostProjectRegistrations method's response.

Protobuf type google.cloud.apihub.v1.ListHostProjectRegistrationsResponse

Static Methods

getDescriptor()

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

Methods

addAllHostProjectRegistrations(Iterable<? extends HostProjectRegistration> values)

public ListHostProjectRegistrationsResponse.Builder addAllHostProjectRegistrations(Iterable<? extends HostProjectRegistration> values)

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.apihub.v1.HostProjectRegistration>
Returns
Type Description
ListHostProjectRegistrationsResponse.Builder

addHostProjectRegistrations(HostProjectRegistration value)

public ListHostProjectRegistrationsResponse.Builder addHostProjectRegistrations(HostProjectRegistration value)

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Parameter
Name Description
value HostProjectRegistration
Returns
Type Description
ListHostProjectRegistrationsResponse.Builder

addHostProjectRegistrations(HostProjectRegistration.Builder builderForValue)

public ListHostProjectRegistrationsResponse.Builder addHostProjectRegistrations(HostProjectRegistration.Builder builderForValue)

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Parameter
Name Description
builderForValue HostProjectRegistration.Builder
Returns
Type Description
ListHostProjectRegistrationsResponse.Builder

addHostProjectRegistrations(int index, HostProjectRegistration value)

public ListHostProjectRegistrationsResponse.Builder addHostProjectRegistrations(int index, HostProjectRegistration value)

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Parameters
Name Description
index int
value HostProjectRegistration
Returns
Type Description
ListHostProjectRegistrationsResponse.Builder

addHostProjectRegistrations(int index, HostProjectRegistration.Builder builderForValue)

public ListHostProjectRegistrationsResponse.Builder addHostProjectRegistrations(int index, HostProjectRegistration.Builder builderForValue)

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Parameters
Name Description
index int
builderForValue HostProjectRegistration.Builder
Returns
Type Description
ListHostProjectRegistrationsResponse.Builder

addHostProjectRegistrationsBuilder()

public HostProjectRegistration.Builder addHostProjectRegistrationsBuilder()

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Returns
Type Description
HostProjectRegistration.Builder

addHostProjectRegistrationsBuilder(int index)

public HostProjectRegistration.Builder addHostProjectRegistrationsBuilder(int index)

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Parameter
Name Description
index int
Returns
Type Description
HostProjectRegistration.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListHostProjectRegistrationsResponse build()
Returns
Type Description
ListHostProjectRegistrationsResponse

buildPartial()

public ListHostProjectRegistrationsResponse buildPartial()
Returns
Type Description
ListHostProjectRegistrationsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHostProjectRegistrations()

public ListHostProjectRegistrationsResponse.Builder clearHostProjectRegistrations()

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Returns
Type Description
ListHostProjectRegistrationsResponse.Builder

clearNextPageToken()

public ListHostProjectRegistrationsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListHostProjectRegistrationsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListHostProjectRegistrationsResponse getDefaultInstanceForType()
Returns
Type Description
ListHostProjectRegistrationsResponse

getDescriptorForType()

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

getHostProjectRegistrations(int index)

public HostProjectRegistration getHostProjectRegistrations(int index)

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Parameter
Name Description
index int
Returns
Type Description
HostProjectRegistration

getHostProjectRegistrationsBuilder(int index)

public HostProjectRegistration.Builder getHostProjectRegistrationsBuilder(int index)

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Parameter
Name Description
index int
Returns
Type Description
HostProjectRegistration.Builder

getHostProjectRegistrationsBuilderList()

public List<HostProjectRegistration.Builder> getHostProjectRegistrationsBuilderList()

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Returns
Type Description
List<Builder>

getHostProjectRegistrationsCount()

public int getHostProjectRegistrationsCount()

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Returns
Type Description
int

getHostProjectRegistrationsList()

public List<HostProjectRegistration> getHostProjectRegistrationsList()

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Returns
Type Description
List<HostProjectRegistration>

getHostProjectRegistrationsOrBuilder(int index)

public HostProjectRegistrationOrBuilder getHostProjectRegistrationsOrBuilder(int index)

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Parameter
Name Description
index int
Returns
Type Description
HostProjectRegistrationOrBuilder

getHostProjectRegistrationsOrBuilderList()

public List<? extends HostProjectRegistrationOrBuilder> getHostProjectRegistrationsOrBuilderList()

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Returns
Type Description
List<? extends com.google.cloud.apihub.v1.HostProjectRegistrationOrBuilder>

getNextPageToken()

public String getNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListHostProjectRegistrationsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeHostProjectRegistrations(int index)

public ListHostProjectRegistrationsResponse.Builder removeHostProjectRegistrations(int index)

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Parameter
Name Description
index int
Returns
Type Description
ListHostProjectRegistrationsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHostProjectRegistrations(int index, HostProjectRegistration value)

public ListHostProjectRegistrationsResponse.Builder setHostProjectRegistrations(int index, HostProjectRegistration value)

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Parameters
Name Description
index int
value HostProjectRegistration
Returns
Type Description
ListHostProjectRegistrationsResponse.Builder

setHostProjectRegistrations(int index, HostProjectRegistration.Builder builderForValue)

public ListHostProjectRegistrationsResponse.Builder setHostProjectRegistrations(int index, HostProjectRegistration.Builder builderForValue)

The list of host project registrations.

repeated .google.cloud.apihub.v1.HostProjectRegistration host_project_registrations = 1;

Parameters
Name Description
index int
builderForValue HostProjectRegistration.Builder
Returns
Type Description
ListHostProjectRegistrationsResponse.Builder

setNextPageToken(String value)

public ListHostProjectRegistrationsResponse.Builder setNextPageToken(String value)

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

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListHostProjectRegistrationsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListHostProjectRegistrationsResponse.Builder setNextPageTokenBytes(ByteString value)

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

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListHostProjectRegistrationsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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