Class ApiHubResource.Builder (0.1.0)

public static final class ApiHubResource.Builder extends GeneratedMessageV3.Builder<ApiHubResource.Builder> implements ApiHubResourceOrBuilder

ApiHubResource is one of the resources such as Api, Operation, Deployment, Definition, Spec and Version resources stored in API-Hub.

Protobuf type google.cloud.apihub.v1.ApiHubResource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ApiHubResource build()
Returns
Type Description
ApiHubResource

buildPartial()

public ApiHubResource buildPartial()
Returns
Type Description
ApiHubResource

clear()

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

clearApi()

public ApiHubResource.Builder clearApi()

This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results.

.google.cloud.apihub.v1.Api api = 1;

Returns
Type Description
ApiHubResource.Builder

clearDefinition()

public ApiHubResource.Builder clearDefinition()

This represents Definition resource in search results. Only name field is populated in search results.

.google.cloud.apihub.v1.Definition definition = 5;

Returns
Type Description
ApiHubResource.Builder

clearDeployment()

public ApiHubResource.Builder clearDeployment()

This represents Deployment resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Deployment deployment = 3;

Returns
Type Description
ApiHubResource.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperation()

public ApiHubResource.Builder clearOperation()

This represents ApiOperation resource in search results. Only name, and description fields are populated in search results.

.google.cloud.apihub.v1.ApiOperation operation = 2;

Returns
Type Description
ApiHubResource.Builder

clearResource()

public ApiHubResource.Builder clearResource()
Returns
Type Description
ApiHubResource.Builder

clearSpec()

public ApiHubResource.Builder clearSpec()

This represents Spec resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Spec spec = 4;

Returns
Type Description
ApiHubResource.Builder

clearVersion()

public ApiHubResource.Builder clearVersion()

This represents Version resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Version version = 6;

Returns
Type Description
ApiHubResource.Builder

clone()

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

getApi()

public Api getApi()

This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results.

.google.cloud.apihub.v1.Api api = 1;

Returns
Type Description
Api

The api.

getApiBuilder()

public Api.Builder getApiBuilder()

This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results.

.google.cloud.apihub.v1.Api api = 1;

Returns
Type Description
Api.Builder

getApiOrBuilder()

public ApiOrBuilder getApiOrBuilder()

This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results.

.google.cloud.apihub.v1.Api api = 1;

Returns
Type Description
ApiOrBuilder

getDefaultInstanceForType()

public ApiHubResource getDefaultInstanceForType()
Returns
Type Description
ApiHubResource

getDefinition()

public Definition getDefinition()

This represents Definition resource in search results. Only name field is populated in search results.

.google.cloud.apihub.v1.Definition definition = 5;

Returns
Type Description
Definition

The definition.

getDefinitionBuilder()

public Definition.Builder getDefinitionBuilder()

This represents Definition resource in search results. Only name field is populated in search results.

.google.cloud.apihub.v1.Definition definition = 5;

Returns
Type Description
Definition.Builder

getDefinitionOrBuilder()

public DefinitionOrBuilder getDefinitionOrBuilder()

This represents Definition resource in search results. Only name field is populated in search results.

.google.cloud.apihub.v1.Definition definition = 5;

Returns
Type Description
DefinitionOrBuilder

getDeployment()

public Deployment getDeployment()

This represents Deployment resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Deployment deployment = 3;

Returns
Type Description
Deployment

The deployment.

getDeploymentBuilder()

public Deployment.Builder getDeploymentBuilder()

This represents Deployment resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Deployment deployment = 3;

Returns
Type Description
Deployment.Builder

getDeploymentOrBuilder()

public DeploymentOrBuilder getDeploymentOrBuilder()

This represents Deployment resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Deployment deployment = 3;

Returns
Type Description
DeploymentOrBuilder

getDescriptorForType()

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

getOperation()

public ApiOperation getOperation()

This represents ApiOperation resource in search results. Only name, and description fields are populated in search results.

.google.cloud.apihub.v1.ApiOperation operation = 2;

Returns
Type Description
ApiOperation

The operation.

getOperationBuilder()

public ApiOperation.Builder getOperationBuilder()

This represents ApiOperation resource in search results. Only name, and description fields are populated in search results.

.google.cloud.apihub.v1.ApiOperation operation = 2;

Returns
Type Description
ApiOperation.Builder

getOperationOrBuilder()

public ApiOperationOrBuilder getOperationOrBuilder()

This represents ApiOperation resource in search results. Only name, and description fields are populated in search results.

.google.cloud.apihub.v1.ApiOperation operation = 2;

Returns
Type Description
ApiOperationOrBuilder

getResourceCase()

public ApiHubResource.ResourceCase getResourceCase()
Returns
Type Description
ApiHubResource.ResourceCase

getSpec()

public Spec getSpec()

This represents Spec resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Spec spec = 4;

Returns
Type Description
Spec

The spec.

getSpecBuilder()

public Spec.Builder getSpecBuilder()

This represents Spec resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Spec spec = 4;

Returns
Type Description
Spec.Builder

getSpecOrBuilder()

public SpecOrBuilder getSpecOrBuilder()

This represents Spec resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Spec spec = 4;

Returns
Type Description
SpecOrBuilder

getVersion()

public Version getVersion()

This represents Version resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Version version = 6;

Returns
Type Description
Version

The version.

getVersionBuilder()

public Version.Builder getVersionBuilder()

This represents Version resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Version version = 6;

Returns
Type Description
Version.Builder

getVersionOrBuilder()

public VersionOrBuilder getVersionOrBuilder()

This represents Version resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Version version = 6;

Returns
Type Description
VersionOrBuilder

hasApi()

public boolean hasApi()

This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results.

.google.cloud.apihub.v1.Api api = 1;

Returns
Type Description
boolean

Whether the api field is set.

hasDefinition()

public boolean hasDefinition()

This represents Definition resource in search results. Only name field is populated in search results.

.google.cloud.apihub.v1.Definition definition = 5;

Returns
Type Description
boolean

Whether the definition field is set.

hasDeployment()

public boolean hasDeployment()

This represents Deployment resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Deployment deployment = 3;

Returns
Type Description
boolean

Whether the deployment field is set.

hasOperation()

public boolean hasOperation()

This represents ApiOperation resource in search results. Only name, and description fields are populated in search results.

.google.cloud.apihub.v1.ApiOperation operation = 2;

Returns
Type Description
boolean

Whether the operation field is set.

hasSpec()

public boolean hasSpec()

This represents Spec resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Spec spec = 4;

Returns
Type Description
boolean

Whether the spec field is set.

hasVersion()

public boolean hasVersion()

This represents Version resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Version version = 6;

Returns
Type Description
boolean

Whether the version field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApi(Api value)

public ApiHubResource.Builder mergeApi(Api value)

This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results.

.google.cloud.apihub.v1.Api api = 1;

Parameter
Name Description
value Api
Returns
Type Description
ApiHubResource.Builder

mergeDefinition(Definition value)

public ApiHubResource.Builder mergeDefinition(Definition value)

This represents Definition resource in search results. Only name field is populated in search results.

.google.cloud.apihub.v1.Definition definition = 5;

Parameter
Name Description
value Definition
Returns
Type Description
ApiHubResource.Builder

mergeDeployment(Deployment value)

public ApiHubResource.Builder mergeDeployment(Deployment value)

This represents Deployment resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Deployment deployment = 3;

Parameter
Name Description
value Deployment
Returns
Type Description
ApiHubResource.Builder

mergeFrom(ApiHubResource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOperation(ApiOperation value)

public ApiHubResource.Builder mergeOperation(ApiOperation value)

This represents ApiOperation resource in search results. Only name, and description fields are populated in search results.

.google.cloud.apihub.v1.ApiOperation operation = 2;

Parameter
Name Description
value ApiOperation
Returns
Type Description
ApiHubResource.Builder

mergeSpec(Spec value)

public ApiHubResource.Builder mergeSpec(Spec value)

This represents Spec resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Spec spec = 4;

Parameter
Name Description
value Spec
Returns
Type Description
ApiHubResource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVersion(Version value)

public ApiHubResource.Builder mergeVersion(Version value)

This represents Version resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Version version = 6;

Parameter
Name Description
value Version
Returns
Type Description
ApiHubResource.Builder

setApi(Api value)

public ApiHubResource.Builder setApi(Api value)

This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results.

.google.cloud.apihub.v1.Api api = 1;

Parameter
Name Description
value Api
Returns
Type Description
ApiHubResource.Builder

setApi(Api.Builder builderForValue)

public ApiHubResource.Builder setApi(Api.Builder builderForValue)

This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results.

.google.cloud.apihub.v1.Api api = 1;

Parameter
Name Description
builderForValue Api.Builder
Returns
Type Description
ApiHubResource.Builder

setDefinition(Definition value)

public ApiHubResource.Builder setDefinition(Definition value)

This represents Definition resource in search results. Only name field is populated in search results.

.google.cloud.apihub.v1.Definition definition = 5;

Parameter
Name Description
value Definition
Returns
Type Description
ApiHubResource.Builder

setDefinition(Definition.Builder builderForValue)

public ApiHubResource.Builder setDefinition(Definition.Builder builderForValue)

This represents Definition resource in search results. Only name field is populated in search results.

.google.cloud.apihub.v1.Definition definition = 5;

Parameter
Name Description
builderForValue Definition.Builder
Returns
Type Description
ApiHubResource.Builder

setDeployment(Deployment value)

public ApiHubResource.Builder setDeployment(Deployment value)

This represents Deployment resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Deployment deployment = 3;

Parameter
Name Description
value Deployment
Returns
Type Description
ApiHubResource.Builder

setDeployment(Deployment.Builder builderForValue)

public ApiHubResource.Builder setDeployment(Deployment.Builder builderForValue)

This represents Deployment resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Deployment deployment = 3;

Parameter
Name Description
builderForValue Deployment.Builder
Returns
Type Description
ApiHubResource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOperation(ApiOperation value)

public ApiHubResource.Builder setOperation(ApiOperation value)

This represents ApiOperation resource in search results. Only name, and description fields are populated in search results.

.google.cloud.apihub.v1.ApiOperation operation = 2;

Parameter
Name Description
value ApiOperation
Returns
Type Description
ApiHubResource.Builder

setOperation(ApiOperation.Builder builderForValue)

public ApiHubResource.Builder setOperation(ApiOperation.Builder builderForValue)

This represents ApiOperation resource in search results. Only name, and description fields are populated in search results.

.google.cloud.apihub.v1.ApiOperation operation = 2;

Parameter
Name Description
builderForValue ApiOperation.Builder
Returns
Type Description
ApiHubResource.Builder

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

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

setSpec(Spec value)

public ApiHubResource.Builder setSpec(Spec value)

This represents Spec resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Spec spec = 4;

Parameter
Name Description
value Spec
Returns
Type Description
ApiHubResource.Builder

setSpec(Spec.Builder builderForValue)

public ApiHubResource.Builder setSpec(Spec.Builder builderForValue)

This represents Spec resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Spec spec = 4;

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(Version value)

public ApiHubResource.Builder setVersion(Version value)

This represents Version resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Version version = 6;

Parameter
Name Description
value Version
Returns
Type Description
ApiHubResource.Builder

setVersion(Version.Builder builderForValue)

public ApiHubResource.Builder setVersion(Version.Builder builderForValue)

This represents Version resource in search results. Only name, display_name and description fields are populated in search results.

.google.cloud.apihub.v1.Version version = 6;

Parameter
Name Description
builderForValue Version.Builder
Returns
Type Description
ApiHubResource.Builder