public static final class OpenApiSpecDetails.Builder extends GeneratedMessage.Builder<OpenApiSpecDetails.Builder> implements OpenApiSpecDetailsOrBuilderOpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in SpecDetails.
Protobuf type google.cloud.apihub.v1.OpenApiSpecDetails
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > OpenApiSpecDetails.BuilderImplements
OpenApiSpecDetailsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public OpenApiSpecDetails build()| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails |
|
buildPartial()
public OpenApiSpecDetails buildPartial()| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails |
|
clear()
public OpenApiSpecDetails.Builder clear()| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Builder |
|
clearFormat()
public OpenApiSpecDetails.Builder clearFormat()Output only. The format of the spec.
.google.cloud.apihub.v1.OpenApiSpecDetails.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Builder |
This builder for chaining. |
clearOwner()
public OpenApiSpecDetails.Builder clearOwner() Output only. Owner details for the spec.
This maps to info.contact in OpenAPI spec.
.google.cloud.apihub.v1.Owner owner = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Builder |
|
clearVersion()
public OpenApiSpecDetails.Builder clearVersion() Output only. The version in the spec.
This maps to info.version in OpenAPI spec.
string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public OpenApiSpecDetails getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFormat()
public OpenApiSpecDetails.Format getFormat()Output only. The format of the spec.
.google.cloud.apihub.v1.OpenApiSpecDetails.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Format |
The format. |
getFormatValue()
public int getFormatValue()Output only. The format of the spec.
.google.cloud.apihub.v1.OpenApiSpecDetails.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for format. |
getOwner()
public Owner getOwner() Output only. Owner details for the spec.
This maps to info.contact in OpenAPI spec.
.google.cloud.apihub.v1.Owner owner = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Owner |
The owner. |
getOwnerBuilder()
public Owner.Builder getOwnerBuilder() Output only. Owner details for the spec.
This maps to info.contact in OpenAPI spec.
.google.cloud.apihub.v1.Owner owner = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Owner.Builder |
|
getOwnerOrBuilder()
public OwnerOrBuilder getOwnerOrBuilder() Output only. Owner details for the spec.
This maps to info.contact in OpenAPI spec.
.google.cloud.apihub.v1.Owner owner = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
OwnerOrBuilder |
|
getVersion()
public String getVersion() Output only. The version in the spec.
This maps to info.version in OpenAPI spec.
string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The version. |
getVersionBytes()
public ByteString getVersionBytes() Output only. The version in the spec.
This maps to info.version in OpenAPI spec.
string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for version. |
hasOwner()
public boolean hasOwner() Output only. Owner details for the spec.
This maps to info.contact in OpenAPI spec.
.google.cloud.apihub.v1.Owner owner = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the owner field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(OpenApiSpecDetails other)
public OpenApiSpecDetails.Builder mergeFrom(OpenApiSpecDetails other)| Parameter | |
|---|---|
| Name | Description |
other |
OpenApiSpecDetails |
| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OpenApiSpecDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public OpenApiSpecDetails.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Builder |
|
mergeOwner(Owner value)
public OpenApiSpecDetails.Builder mergeOwner(Owner value) Output only. Owner details for the spec.
This maps to info.contact in OpenAPI spec.
.google.cloud.apihub.v1.Owner owner = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Owner |
| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Builder |
|
setFormat(OpenApiSpecDetails.Format value)
public OpenApiSpecDetails.Builder setFormat(OpenApiSpecDetails.Format value)Output only. The format of the spec.
.google.cloud.apihub.v1.OpenApiSpecDetails.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
OpenApiSpecDetails.FormatThe format to set. |
| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Builder |
This builder for chaining. |
setFormatValue(int value)
public OpenApiSpecDetails.Builder setFormatValue(int value)Output only. The format of the spec.
.google.cloud.apihub.v1.OpenApiSpecDetails.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for format to set. |
| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Builder |
This builder for chaining. |
setOwner(Owner value)
public OpenApiSpecDetails.Builder setOwner(Owner value) Output only. Owner details for the spec.
This maps to info.contact in OpenAPI spec.
.google.cloud.apihub.v1.Owner owner = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Owner |
| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Builder |
|
setOwner(Owner.Builder builderForValue)
public OpenApiSpecDetails.Builder setOwner(Owner.Builder builderForValue) Output only. Owner details for the spec.
This maps to info.contact in OpenAPI spec.
.google.cloud.apihub.v1.Owner owner = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Owner.Builder |
| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Builder |
|
setVersion(String value)
public OpenApiSpecDetails.Builder setVersion(String value) Output only. The version in the spec.
This maps to info.version in OpenAPI spec.
string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe version to set. |
| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Builder |
This builder for chaining. |
setVersionBytes(ByteString value)
public OpenApiSpecDetails.Builder setVersionBytes(ByteString value) Output only. The version in the spec.
This maps to info.version in OpenAPI spec.
string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for version to set. |
| Returns | |
|---|---|
| Type | Description |
OpenApiSpecDetails.Builder |
This builder for chaining. |