Class OpenApiSpecDetails (0.2.0)

public final class OpenApiSpecDetails extends GeneratedMessageV3 implements OpenApiSpecDetailsOrBuilder

OpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in SpecDetails.

Protobuf type google.cloud.apihub.v1.OpenApiSpecDetails

Static Fields

FORMAT_FIELD_NUMBER

public static final int FORMAT_FIELD_NUMBER
Field Value
Type Description
int

OWNER_FIELD_NUMBER

public static final int OWNER_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 OpenApiSpecDetails getDefaultInstance()
Returns
Type Description
OpenApiSpecDetails

getDescriptor()

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

newBuilder()

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

newBuilder(OpenApiSpecDetails prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public OpenApiSpecDetails getDefaultInstanceForType()
Returns
Type Description
OpenApiSpecDetails

getFormat()

public OpenApiSpecDetails.Format getFormat()

Output only. The format of the spec.

.google.cloud.apihub.v1.OpenApiSpecDetails.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
OpenApiSpecDetails.Format

The format.

getFormatValue()

public int getFormatValue()

Output only. The format of the spec.

.google.cloud.apihub.v1.OpenApiSpecDetails.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for format.

getOwner()

public Owner getOwner()

Output only. Owner details for the spec. This maps to info.contact in OpenAPI spec.

.google.cloud.apihub.v1.Owner owner = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Owner

The owner.

getOwnerOrBuilder()

public OwnerOrBuilder getOwnerOrBuilder()

Output only. Owner details for the spec. This maps to info.contact in OpenAPI spec.

.google.cloud.apihub.v1.Owner owner = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
OwnerOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getVersion()

public String getVersion()

Output only. The version in the spec. This maps to info.version in OpenAPI spec.

string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Output only. The version in the spec. This maps to info.version in OpenAPI spec.

string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for version.

hasOwner()

public boolean hasOwner()

Output only. Owner details for the spec. This maps to info.contact in OpenAPI spec.

.google.cloud.apihub.v1.Owner owner = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the owner 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 OpenApiSpecDetails.Builder newBuilderForType()
Returns
Type Description
OpenApiSpecDetails.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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