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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListSpecsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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
|
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;
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
|
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;
addSpecsBuilder()
public Spec.Builder addSpecsBuilder()
The specs corresponding to an API.
repeated .google.cloud.apihub.v1.Spec specs = 1;
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
|
build()
public ListSpecsResponse build()
buildPartial()
public ListSpecsResponse buildPartial()
clear()
public ListSpecsResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListSpecsResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public ListSpecsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSpecs()
public ListSpecsResponse.Builder clearSpecs()
The specs corresponding to an API.
repeated .google.cloud.apihub.v1.Spec specs = 1;
clone()
public ListSpecsResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public ListSpecsResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
getSpecsBuilderList()
public List<Spec.Builder> getSpecsBuilderList()
The specs corresponding to an API.
repeated .google.cloud.apihub.v1.Spec specs = 1;
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;
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ListSpecsResponse other)
public ListSpecsResponse.Builder mergeFrom(ListSpecsResponse other)
public ListSpecsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListSpecsResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListSpecsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public ListSpecsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListSpecsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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
|
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final ListSpecsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides