Class Info.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Info.Builder>
com.openapi.v3.Info.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, InfoOrBuilder, Cloneable
Enclosing class:
Info

public static final class Info.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Info.Builder> implements InfoOrBuilder
 The object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience.
 
Protobuf type openapi.v3.Info
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Info.Builder>
    • clear

      public Info.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Info.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Info.Builder>
    • getDefaultInstanceForType

      public Info getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Info build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Info buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Info.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Info.Builder>
    • setField

      public Info.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Info.Builder>
    • clearField

      public Info.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Info.Builder>
    • clearOneof

      public Info.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Info.Builder>
    • setRepeatedField

      public Info.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Info.Builder>
    • addRepeatedField

      public Info.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Info.Builder>
    • mergeFrom

      public Info.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Info.Builder>
    • mergeFrom

      public Info.Builder mergeFrom(Info other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Info.Builder>
    • mergeFrom

      public Info.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Info.Builder>
      Throws:
      IOException
    • getTitle

      public String getTitle()
      string title = 1 [json_name = "title"];
      Specified by:
      getTitle in interface InfoOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
      string title = 1 [json_name = "title"];
      Specified by:
      getTitleBytes in interface InfoOrBuilder
      Returns:
      The bytes for title.
    • setTitle

      public Info.Builder setTitle(String value)
      string title = 1 [json_name = "title"];
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

      public Info.Builder clearTitle()
      string title = 1 [json_name = "title"];
      Returns:
      This builder for chaining.
    • setTitleBytes

      public Info.Builder setTitleBytes(com.google.protobuf.ByteString value)
      string title = 1 [json_name = "title"];
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
      string description = 2 [json_name = "description"];
      Specified by:
      getDescription in interface InfoOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
      string description = 2 [json_name = "description"];
      Specified by:
      getDescriptionBytes in interface InfoOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Info.Builder setDescription(String value)
      string description = 2 [json_name = "description"];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Info.Builder clearDescription()
      string description = 2 [json_name = "description"];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Info.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
      string description = 2 [json_name = "description"];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getTermsOfService

      public String getTermsOfService()
      string terms_of_service = 3 [json_name = "termsOfService"];
      Specified by:
      getTermsOfService in interface InfoOrBuilder
      Returns:
      The termsOfService.
    • getTermsOfServiceBytes

      public com.google.protobuf.ByteString getTermsOfServiceBytes()
      string terms_of_service = 3 [json_name = "termsOfService"];
      Specified by:
      getTermsOfServiceBytes in interface InfoOrBuilder
      Returns:
      The bytes for termsOfService.
    • setTermsOfService

      public Info.Builder setTermsOfService(String value)
      string terms_of_service = 3 [json_name = "termsOfService"];
      Parameters:
      value - The termsOfService to set.
      Returns:
      This builder for chaining.
    • clearTermsOfService

      public Info.Builder clearTermsOfService()
      string terms_of_service = 3 [json_name = "termsOfService"];
      Returns:
      This builder for chaining.
    • setTermsOfServiceBytes

      public Info.Builder setTermsOfServiceBytes(com.google.protobuf.ByteString value)
      string terms_of_service = 3 [json_name = "termsOfService"];
      Parameters:
      value - The bytes for termsOfService to set.
      Returns:
      This builder for chaining.
    • hasContact

      public boolean hasContact()
      .openapi.v3.Contact contact = 4 [json_name = "contact"];
      Specified by:
      hasContact in interface InfoOrBuilder
      Returns:
      Whether the contact field is set.
    • getContact

      public Contact getContact()
      .openapi.v3.Contact contact = 4 [json_name = "contact"];
      Specified by:
      getContact in interface InfoOrBuilder
      Returns:
      The contact.
    • setContact

      public Info.Builder setContact(Contact value)
      .openapi.v3.Contact contact = 4 [json_name = "contact"];
    • setContact

      public Info.Builder setContact(Contact.Builder builderForValue)
      .openapi.v3.Contact contact = 4 [json_name = "contact"];
    • mergeContact

      public Info.Builder mergeContact(Contact value)
      .openapi.v3.Contact contact = 4 [json_name = "contact"];
    • clearContact

      public Info.Builder clearContact()
      .openapi.v3.Contact contact = 4 [json_name = "contact"];
    • getContactBuilder

      public Contact.Builder getContactBuilder()
      .openapi.v3.Contact contact = 4 [json_name = "contact"];
    • getContactOrBuilder

      public ContactOrBuilder getContactOrBuilder()
      .openapi.v3.Contact contact = 4 [json_name = "contact"];
      Specified by:
      getContactOrBuilder in interface InfoOrBuilder
    • hasLicense

      public boolean hasLicense()
      .openapi.v3.License license = 5 [json_name = "license"];
      Specified by:
      hasLicense in interface InfoOrBuilder
      Returns:
      Whether the license field is set.
    • getLicense

      public License getLicense()
      .openapi.v3.License license = 5 [json_name = "license"];
      Specified by:
      getLicense in interface InfoOrBuilder
      Returns:
      The license.
    • setLicense

      public Info.Builder setLicense(License value)
      .openapi.v3.License license = 5 [json_name = "license"];
    • setLicense

      public Info.Builder setLicense(License.Builder builderForValue)
      .openapi.v3.License license = 5 [json_name = "license"];
    • mergeLicense

      public Info.Builder mergeLicense(License value)
      .openapi.v3.License license = 5 [json_name = "license"];
    • clearLicense

      public Info.Builder clearLicense()
      .openapi.v3.License license = 5 [json_name = "license"];
    • getLicenseBuilder

      public License.Builder getLicenseBuilder()
      .openapi.v3.License license = 5 [json_name = "license"];
    • getLicenseOrBuilder

      public LicenseOrBuilder getLicenseOrBuilder()
      .openapi.v3.License license = 5 [json_name = "license"];
      Specified by:
      getLicenseOrBuilder in interface InfoOrBuilder
    • getVersion

      public String getVersion()
      string version = 6 [json_name = "version"];
      Specified by:
      getVersion in interface InfoOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
      string version = 6 [json_name = "version"];
      Specified by:
      getVersionBytes in interface InfoOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public Info.Builder setVersion(String value)
      string version = 6 [json_name = "version"];
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public Info.Builder clearVersion()
      string version = 6 [json_name = "version"];
      Returns:
      This builder for chaining.
    • setVersionBytes

      public Info.Builder setVersionBytes(com.google.protobuf.ByteString value)
      string version = 6 [json_name = "version"];
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • getSpecificationExtensionList

      public List<NamedAny> getSpecificationExtensionList()
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
      Specified by:
      getSpecificationExtensionList in interface InfoOrBuilder
    • getSpecificationExtensionCount

      public int getSpecificationExtensionCount()
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
      Specified by:
      getSpecificationExtensionCount in interface InfoOrBuilder
    • getSpecificationExtension

      public NamedAny getSpecificationExtension(int index)
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
      Specified by:
      getSpecificationExtension in interface InfoOrBuilder
    • setSpecificationExtension

      public Info.Builder setSpecificationExtension(int index, NamedAny value)
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
    • setSpecificationExtension

      public Info.Builder setSpecificationExtension(int index, NamedAny.Builder builderForValue)
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
    • addSpecificationExtension

      public Info.Builder addSpecificationExtension(NamedAny value)
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
    • addSpecificationExtension

      public Info.Builder addSpecificationExtension(int index, NamedAny value)
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
    • addSpecificationExtension

      public Info.Builder addSpecificationExtension(NamedAny.Builder builderForValue)
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
    • addSpecificationExtension

      public Info.Builder addSpecificationExtension(int index, NamedAny.Builder builderForValue)
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
    • addAllSpecificationExtension

      public Info.Builder addAllSpecificationExtension(Iterable<? extends NamedAny> values)
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
    • clearSpecificationExtension

      public Info.Builder clearSpecificationExtension()
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
    • removeSpecificationExtension

      public Info.Builder removeSpecificationExtension(int index)
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
    • getSpecificationExtensionBuilder

      public NamedAny.Builder getSpecificationExtensionBuilder(int index)
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
    • getSpecificationExtensionOrBuilder

      public NamedAnyOrBuilder getSpecificationExtensionOrBuilder(int index)
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
      Specified by:
      getSpecificationExtensionOrBuilder in interface InfoOrBuilder
    • getSpecificationExtensionOrBuilderList

      public List<? extends NamedAnyOrBuilder> getSpecificationExtensionOrBuilderList()
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
      Specified by:
      getSpecificationExtensionOrBuilderList in interface InfoOrBuilder
    • addSpecificationExtensionBuilder

      public NamedAny.Builder addSpecificationExtensionBuilder()
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
    • addSpecificationExtensionBuilder

      public NamedAny.Builder addSpecificationExtensionBuilder(int index)
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
    • getSpecificationExtensionBuilderList

      public List<NamedAny.Builder> getSpecificationExtensionBuilderList()
      repeated .openapi.v3.NamedAny specification_extension = 7 [json_name = "specificationExtension"];
    • getSummary

      public String getSummary()
      string summary = 8 [json_name = "summary"];
      Specified by:
      getSummary in interface InfoOrBuilder
      Returns:
      The summary.
    • getSummaryBytes

      public com.google.protobuf.ByteString getSummaryBytes()
      string summary = 8 [json_name = "summary"];
      Specified by:
      getSummaryBytes in interface InfoOrBuilder
      Returns:
      The bytes for summary.
    • setSummary

      public Info.Builder setSummary(String value)
      string summary = 8 [json_name = "summary"];
      Parameters:
      value - The summary to set.
      Returns:
      This builder for chaining.
    • clearSummary

      public Info.Builder clearSummary()
      string summary = 8 [json_name = "summary"];
      Returns:
      This builder for chaining.
    • setSummaryBytes

      public Info.Builder setSummaryBytes(com.google.protobuf.ByteString value)
      string summary = 8 [json_name = "summary"];
      Parameters:
      value - The bytes for summary to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Info.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Info.Builder>
    • mergeUnknownFields

      public final Info.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Info.Builder>