Class ApiMetadataList.Builder (0.36.0)

public static final class ApiMetadataList.Builder extends GeneratedMessage.Builder<ApiMetadataList.Builder> implements ApiMetadataListOrBuilder

The message to hold repeated API metadata.

Protobuf type google.cloud.apihub.v1.ApiMetadataList

Static Methods

getDescriptor()

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

Methods

addAllApiMetadata(Iterable<? extends APIMetadata> values)

public ApiMetadataList.Builder addAllApiMetadata(Iterable<? extends APIMetadata> values)

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

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

addApiMetadata(APIMetadata value)

public ApiMetadataList.Builder addApiMetadata(APIMetadata value)

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value APIMetadata
Returns
Type Description
ApiMetadataList.Builder

addApiMetadata(APIMetadata.Builder builderForValue)

public ApiMetadataList.Builder addApiMetadata(APIMetadata.Builder builderForValue)

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue APIMetadata.Builder
Returns
Type Description
ApiMetadataList.Builder

addApiMetadata(int index, APIMetadata value)

public ApiMetadataList.Builder addApiMetadata(int index, APIMetadata value)

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value APIMetadata
Returns
Type Description
ApiMetadataList.Builder

addApiMetadata(int index, APIMetadata.Builder builderForValue)

public ApiMetadataList.Builder addApiMetadata(int index, APIMetadata.Builder builderForValue)

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue APIMetadata.Builder
Returns
Type Description
ApiMetadataList.Builder

addApiMetadataBuilder()

public APIMetadata.Builder addApiMetadataBuilder()

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
APIMetadata.Builder

addApiMetadataBuilder(int index)

public APIMetadata.Builder addApiMetadataBuilder(int index)

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
APIMetadata.Builder

build()

public ApiMetadataList build()
Returns
Type Description
ApiMetadataList

buildPartial()

public ApiMetadataList buildPartial()
Returns
Type Description
ApiMetadataList

clear()

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

clearApiMetadata()

public ApiMetadataList.Builder clearApiMetadata()

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiMetadataList.Builder

getApiMetadata(int index)

public APIMetadata getApiMetadata(int index)

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
APIMetadata

getApiMetadataBuilder(int index)

public APIMetadata.Builder getApiMetadataBuilder(int index)

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
APIMetadata.Builder

getApiMetadataBuilderList()

public List<APIMetadata.Builder> getApiMetadataBuilderList()

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getApiMetadataCount()

public int getApiMetadataCount()

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getApiMetadataList()

public List<APIMetadata> getApiMetadataList()

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<APIMetadata>

getApiMetadataOrBuilder(int index)

public APIMetadataOrBuilder getApiMetadataOrBuilder(int index)

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
APIMetadataOrBuilder

getApiMetadataOrBuilderList()

public List<? extends APIMetadataOrBuilder> getApiMetadataOrBuilderList()

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

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

getDefaultInstanceForType()

public ApiMetadataList getDefaultInstanceForType()
Returns
Type Description
ApiMetadataList

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ApiMetadataList other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeApiMetadata(int index)

public ApiMetadataList.Builder removeApiMetadata(int index)

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ApiMetadataList.Builder

setApiMetadata(int index, APIMetadata value)

public ApiMetadataList.Builder setApiMetadata(int index, APIMetadata value)

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value APIMetadata
Returns
Type Description
ApiMetadataList.Builder

setApiMetadata(int index, APIMetadata.Builder builderForValue)

public ApiMetadataList.Builder setApiMetadata(int index, APIMetadata.Builder builderForValue)

Required. The list of API metadata.

repeated .google.cloud.apihub.v1.APIMetadata api_metadata = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue APIMetadata.Builder
Returns
Type Description
ApiMetadataList.Builder