Class ApiHubResource (0.4.0)

public final class ApiHubResource extends GeneratedMessageV3 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 Fields

API_FIELD_NUMBER

public static final int API_FIELD_NUMBER
Field Value
Type Description
int

DEFINITION_FIELD_NUMBER

public static final int DEFINITION_FIELD_NUMBER
Field Value
Type Description
int

DEPLOYMENT_FIELD_NUMBER

public static final int DEPLOYMENT_FIELD_NUMBER
Field Value
Type Description
int

OPERATION_FIELD_NUMBER

public static final int OPERATION_FIELD_NUMBER
Field Value
Type Description
int

SPEC_FIELD_NUMBER

public static final int SPEC_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ApiHubResource getDefaultInstance()
Returns
Type Description
ApiHubResource

getDescriptor()

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

newBuilder()

public static ApiHubResource.Builder newBuilder()
Returns
Type Description
ApiHubResource.Builder

newBuilder(ApiHubResource prototype)

public static ApiHubResource.Builder newBuilder(ApiHubResource prototype)
Parameter
Name Description
prototype ApiHubResource
Returns
Type Description
ApiHubResource.Builder

parseDelimitedFrom(InputStream input)

public static ApiHubResource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ApiHubResource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ApiHubResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiHubResource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ApiHubResource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ApiHubResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ApiHubResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiHubResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ApiHubResource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ApiHubResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ApiHubResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiHubResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ApiHubResource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ApiHubResource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ApiHubResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiHubResource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ApiHubResource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ApiHubResource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ApiHubResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiHubResource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ApiHubResource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ApiHubResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ApiHubResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiHubResource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ApiHubResource> parser()
Returns
Type Description
Parser<ApiHubResource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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.

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.

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

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.

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

getParserForType()

public Parser<ApiHubResource> getParserForType()
Returns
Type Description
Parser<ApiHubResource>
Overrides

getResourceCase()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ApiHubResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ApiHubResource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException