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
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 OpenApiSpecDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public OpenApiSpecDetails build()
buildPartial()
public OpenApiSpecDetails buildPartial()
clear()
public OpenApiSpecDetails.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public OpenApiSpecDetails.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public OpenApiSpecDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
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];
clone()
public OpenApiSpecDetails.Builder clone()
Overrides
getDefaultInstanceForType()
public OpenApiSpecDetails getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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];
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()
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(OpenApiSpecDetails other)
public OpenApiSpecDetails.Builder mergeFrom(OpenApiSpecDetails other)
public OpenApiSpecDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public OpenApiSpecDetails.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OpenApiSpecDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public OpenApiSpecDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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];
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.
|
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
|
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OpenApiSpecDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final OpenApiSpecDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|