Class Schema.Builder (0.36.0)

public static final class Schema.Builder extends GeneratedMessage.Builder<Schema.Builder> implements SchemaOrBuilder

The schema details derived from the spec. Currently, this entity is supported for OpenAPI spec only. For OpenAPI spec, this maps to the schema defined in the definitions section for OpenAPI 2.0 version and in components.schemas section for OpenAPI 3.0 and 3.1 version.

Protobuf type google.cloud.apihub.v1.Schema

Implements

SchemaOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Schema build()
Returns
Type Description
Schema

buildPartial()

public Schema buildPartial()
Returns
Type Description
Schema

clear()

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

clearDisplayName()

public Schema.Builder clearDisplayName()

Output only. The display name of the schema. This will map to the name of the schema in the spec.

string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Schema.Builder

This builder for chaining.

clearRawValue()

public Schema.Builder clearRawValue()

Output only. The raw value of the schema definition corresponding to the schema name in the spec.

bytes raw_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Schema.Builder

This builder for chaining.

getDefaultInstanceForType()

public Schema getDefaultInstanceForType()
Returns
Type Description
Schema

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Output only. The display name of the schema. This will map to the name of the schema in the spec.

string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The display name of the schema. This will map to the name of the schema in the spec.

string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for displayName.

getRawValue()

public ByteString getRawValue()

Output only. The raw value of the schema definition corresponding to the schema name in the spec.

bytes raw_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The rawValue.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Schema other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDisplayName(String value)

public Schema.Builder setDisplayName(String value)

Output only. The display name of the schema. This will map to the name of the schema in the spec.

string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Schema.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Schema.Builder setDisplayNameBytes(ByteString value)

Output only. The display name of the schema. This will map to the name of the schema in the spec.

string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Schema.Builder

This builder for chaining.

setRawValue(ByteString value)

public Schema.Builder setRawValue(ByteString value)

Output only. The raw value of the schema definition corresponding to the schema name in the spec.

bytes raw_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The rawValue to set.

Returns
Type Description
Schema.Builder

This builder for chaining.