Class ListSpecsResponse.Builder (0.8.0)

public static final class ListSpecsResponse.Builder extends GeneratedMessageV3.Builder<ListSpecsResponse.Builder> implements ListSpecsResponseOrBuilder

The ListSpecs method's response.

Protobuf type google.cloud.apihub.v1.ListSpecsResponse

Static Methods

getDescriptor()

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

Methods

addAllSpecs(Iterable<? extends Spec> values)

public ListSpecsResponse.Builder addAllSpecs(Iterable<? extends Spec> values)

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSpecs(Spec value)

public ListSpecsResponse.Builder addSpecs(Spec value)

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Parameter
Name Description
value Spec
Returns
Type Description
ListSpecsResponse.Builder

addSpecs(Spec.Builder builderForValue)

public ListSpecsResponse.Builder addSpecs(Spec.Builder builderForValue)

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Parameter
Name Description
builderForValue Spec.Builder
Returns
Type Description
ListSpecsResponse.Builder

addSpecs(int index, Spec value)

public ListSpecsResponse.Builder addSpecs(int index, Spec value)

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Parameters
Name Description
index int
value Spec
Returns
Type Description
ListSpecsResponse.Builder

addSpecs(int index, Spec.Builder builderForValue)

public ListSpecsResponse.Builder addSpecs(int index, Spec.Builder builderForValue)

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Parameters
Name Description
index int
builderForValue Spec.Builder
Returns
Type Description
ListSpecsResponse.Builder

addSpecsBuilder()

public Spec.Builder addSpecsBuilder()

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Returns
Type Description
Spec.Builder

addSpecsBuilder(int index)

public Spec.Builder addSpecsBuilder(int index)

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Parameter
Name Description
index int
Returns
Type Description
Spec.Builder

build()

public ListSpecsResponse build()
Returns
Type Description
ListSpecsResponse

buildPartial()

public ListSpecsResponse buildPartial()
Returns
Type Description
ListSpecsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListSpecsResponse.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
ListSpecsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSpecs()

public ListSpecsResponse.Builder clearSpecs()

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Returns
Type Description
ListSpecsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSpecsResponse getDefaultInstanceForType()
Returns
Type Description
ListSpecsResponse

getDescriptorForType()

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

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.

getSpecs(int index)

public Spec getSpecs(int index)

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Parameter
Name Description
index int
Returns
Type Description
Spec

getSpecsBuilder(int index)

public Spec.Builder getSpecsBuilder(int index)

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Parameter
Name Description
index int
Returns
Type Description
Spec.Builder

getSpecsBuilderList()

public List<Spec.Builder> getSpecsBuilderList()

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Returns
Type Description
List<Builder>

getSpecsCount()

public int getSpecsCount()

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Returns
Type Description
int

getSpecsList()

public List<Spec> getSpecsList()

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Returns
Type Description
List<Spec>

getSpecsOrBuilder(int index)

public SpecOrBuilder getSpecsOrBuilder(int index)

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Parameter
Name Description
index int
Returns
Type Description
SpecOrBuilder

getSpecsOrBuilderList()

public List<? extends SpecOrBuilder> getSpecsOrBuilderList()

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListSpecsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSpecs(int index)

public ListSpecsResponse.Builder removeSpecs(int index)

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Parameter
Name Description
index int
Returns
Type Description
ListSpecsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListSpecsResponse.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
ListSpecsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListSpecsResponse.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
ListSpecsResponse.Builder

This builder for chaining.

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

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

setSpecs(int index, Spec value)

public ListSpecsResponse.Builder setSpecs(int index, Spec value)

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Parameters
Name Description
index int
value Spec
Returns
Type Description
ListSpecsResponse.Builder

setSpecs(int index, Spec.Builder builderForValue)

public ListSpecsResponse.Builder setSpecs(int index, Spec.Builder builderForValue)

The specs corresponding to an API.

repeated .google.cloud.apihub.v1.Spec specs = 1;

Parameters
Name Description
index int
builderForValue Spec.Builder
Returns
Type Description
ListSpecsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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