public static final class ExtendedMetadataSchema.Builder extends GeneratedMessage.Builder<ExtendedMetadataSchema.Builder> implements ExtendedMetadataSchemaOrBuilderExtendedMetadataSchema represents a schema for extended metadata of a service or workload.
Protobuf type google.cloud.apphub.v1.ExtendedMetadataSchema
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ExtendedMetadataSchema.BuilderImplements
ExtendedMetadataSchemaOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExtendedMetadataSchema.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExtendedMetadataSchema.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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 |
longThe schemaVersion to set. |
| Returns | |
|---|---|
| Type | Description |
ExtendedMetadataSchema.Builder |
This builder for chaining. |