Class ExtendedMetadataSchema (0.67.0)

public final class ExtendedMetadataSchema extends GeneratedMessage implements ExtendedMetadataSchemaOrBuilder

ExtendedMetadataSchema represents a schema for extended metadata of a service or workload.

Protobuf type google.cloud.apphub.v1.ExtendedMetadataSchema

Static Fields

JSON_SCHEMA_FIELD_NUMBER

public static final int JSON_SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

SCHEMA_VERSION_FIELD_NUMBER

public static final int SCHEMA_VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ExtendedMetadataSchema getDefaultInstance()
Returns
Type Description
ExtendedMetadataSchema

getDescriptor()

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

newBuilder()

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

newBuilder(ExtendedMetadataSchema prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ExtendedMetadataSchema getDefaultInstanceForType()
Returns
Type Description
ExtendedMetadataSchema

getJsonSchema()

public String getJsonSchema()

Output only. The JSON schema as a string.

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

Returns
Type Description
String

The jsonSchema.

getJsonSchemaBytes()

public ByteString getJsonSchemaBytes()

Output only. The JSON schema as a string.

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

Returns
Type Description
ByteString

The bytes for jsonSchema.

getName()

public String getName()

Identifier. Resource name of the schema. Format: projects/<project>/locations/<location>/extendedMetadataSchemas/<schema-id>

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Resource name of the schema. Format: projects/<project>/locations/<location>/extendedMetadataSchemas/<schema-id>

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getSchemaVersion()

public long getSchemaVersion()

Output only. The version of the schema. New versions are required to be backwards compatible.

int64 schema_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The schemaVersion.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ExtendedMetadataSchema.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ExtendedMetadataSchema.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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