public static final class Schema.Builder extends GeneratedMessageV3.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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Schema.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
Returns |
Type |
Description |
Schema |
|
buildPartial()
public Schema buildPartial()
Returns |
Type |
Description |
Schema |
|
clear()
public Schema.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public Schema.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Schema.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
clone()
public Schema.Builder clone()
Overrides
getDefaultInstanceForType()
public Schema getDefaultInstanceForType()
Returns |
Type |
Description |
Schema |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Schema other)
public Schema.Builder mergeFrom(Schema other)
Parameter |
Name |
Description |
other |
Schema
|
public Schema.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Schema.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Schema.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Schema.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Schema.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Schema.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides