Class OpenApiSpecDetails.Builder (0.4.0)

public static final class OpenApiSpecDetails.Builder extends GeneratedMessageV3.Builder<OpenApiSpecDetails.Builder> implements OpenApiSpecDetailsOrBuilder

OpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in SpecDetails.

Protobuf type google.cloud.apihub.v1.OpenApiSpecDetails

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OpenApiSpecDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OpenApiSpecDetails.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public OpenApiSpecDetails.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OpenApiSpecDetails.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public OpenApiSpecDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OpenApiSpecDetails.Builder
Overrides

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.

clone()

public OpenApiSpecDetails.Builder clone()
Returns
Type Description
OpenApiSpecDetails.Builder
Overrides

getDefaultInstanceForType()

public OpenApiSpecDetails getDefaultInstanceForType()
Returns
Type Description
OpenApiSpecDetails

getDescriptorForType()

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

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OpenApiSpecDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OpenApiSpecDetails.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public OpenApiSpecDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OpenApiSpecDetails.Builder
Overrides

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.Format

The 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 int

The 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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OpenApiSpecDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OpenApiSpecDetails.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OpenApiSpecDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OpenApiSpecDetails.Builder
Overrides

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 String

The 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 ByteString

The bytes for version to set.

Returns
Type Description
OpenApiSpecDetails.Builder

This builder for chaining.