Class ExtendedMetadataSchema.Builder (0.67.0)

public static final class ExtendedMetadataSchema.Builder extends GeneratedMessage.Builder<ExtendedMetadataSchema.Builder> implements ExtendedMetadataSchemaOrBuilder

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

Protobuf type google.cloud.apphub.v1.ExtendedMetadataSchema

Static Methods

getDescriptor()

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

Methods

build()

public ExtendedMetadataSchema build()
Returns
Type Description
ExtendedMetadataSchema

buildPartial()

public ExtendedMetadataSchema buildPartial()
Returns
Type Description
ExtendedMetadataSchema

clear()

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

clearJsonSchema()

public ExtendedMetadataSchema.Builder clearJsonSchema()

Output only. The JSON schema as a string.

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

Returns
Type Description
ExtendedMetadataSchema.Builder

This builder for chaining.

clearName()

public ExtendedMetadataSchema.Builder clearName()

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
ExtendedMetadataSchema.Builder

This builder for chaining.

clearSchemaVersion()

public ExtendedMetadataSchema.Builder clearSchemaVersion()

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
ExtendedMetadataSchema.Builder

This builder for chaining.

getDefaultInstanceForType()

public ExtendedMetadataSchema getDefaultInstanceForType()
Returns
Type Description
ExtendedMetadataSchema

getDescriptorForType()

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

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExtendedMetadataSchema other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setJsonSchema(String value)

public ExtendedMetadataSchema.Builder setJsonSchema(String value)

Output only. The JSON schema as a string.

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

Parameter
Name Description
value String

The jsonSchema to set.

Returns
Type Description
ExtendedMetadataSchema.Builder

This builder for chaining.

setJsonSchemaBytes(ByteString value)

public ExtendedMetadataSchema.Builder setJsonSchemaBytes(ByteString value)

Output only. The JSON schema as a string.

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

Parameter
Name Description
value ByteString

The bytes for jsonSchema to set.

Returns
Type Description
ExtendedMetadataSchema.Builder

This builder for chaining.

setName(String value)

public ExtendedMetadataSchema.Builder setName(String value)

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ExtendedMetadataSchema.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ExtendedMetadataSchema.Builder setNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ExtendedMetadataSchema.Builder

This builder for chaining.

setSchemaVersion(long value)

public ExtendedMetadataSchema.Builder setSchemaVersion(long value)

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];

Parameter
Name Description
value long

The schemaVersion to set.

Returns
Type Description
ExtendedMetadataSchema.Builder

This builder for chaining.