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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ApiHubResource.Builder newBuilder()
newBuilder(ApiHubResource prototype)
public static ApiHubResource.Builder newBuilder(ApiHubResource prototype)
public static ApiHubResource parseDelimitedFrom(InputStream input)
public static ApiHubResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ApiHubResource parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ApiHubResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ApiHubResource parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ApiHubResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ApiHubResource parseFrom(CodedInputStream input)
public static ApiHubResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ApiHubResource parseFrom(InputStream input)
public static ApiHubResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ApiHubResource parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ApiHubResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ApiHubResource> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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;
getDefaultInstanceForType()
public ApiHubResource getDefaultInstanceForType()
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;
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;
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;
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;
getParserForType()
public Parser<ApiHubResource> getParserForType()
Overrides
getResourceCase()
public ApiHubResource.ResourceCase getResourceCase()
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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;
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;
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()
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()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ApiHubResource.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ApiHubResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public ApiHubResource.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides