All Downloads are FREE. Search and download functionalities are using the official Maven repository.

grpc.gateway.protoc_gen_swagger.options.Openapiv2 Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: protoc-gen-swagger/options/openapiv2.proto

package grpc.gateway.protoc_gen_swagger.options;

public final class Openapiv2 {
  private Openapiv2() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface SwaggerOrBuilder extends
      // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_swagger.options.Swagger)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string swagger = 1;
     */
    java.lang.String getSwagger();
    /**
     * string swagger = 1;
     */
    com.google.protobuf.ByteString
        getSwaggerBytes();

    /**
     * .grpc.gateway.protoc_gen_swagger.options.Info info = 2;
     */
    boolean hasInfo();
    /**
     * .grpc.gateway.protoc_gen_swagger.options.Info info = 2;
     */
    grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info getInfo();
    /**
     * .grpc.gateway.protoc_gen_swagger.options.Info info = 2;
     */
    grpc.gateway.protoc_gen_swagger.options.Openapiv2.InfoOrBuilder getInfoOrBuilder();

    /**
     * string host = 3;
     */
    java.lang.String getHost();
    /**
     * string host = 3;
     */
    com.google.protobuf.ByteString
        getHostBytes();

    /**
     * string base_path = 4;
     */
    java.lang.String getBasePath();
    /**
     * string base_path = 4;
     */
    com.google.protobuf.ByteString
        getBasePathBytes();

    /**
     * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5;
     */
    java.util.List getSchemesList();
    /**
     * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5;
     */
    int getSchemesCount();
    /**
     * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5;
     */
    grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.SwaggerScheme getSchemes(int index);
    /**
     * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5;
     */
    java.util.List
    getSchemesValueList();
    /**
     * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5;
     */
    int getSchemesValue(int index);

    /**
     * repeated string consumes = 6;
     */
    java.util.List
        getConsumesList();
    /**
     * repeated string consumes = 6;
     */
    int getConsumesCount();
    /**
     * repeated string consumes = 6;
     */
    java.lang.String getConsumes(int index);
    /**
     * repeated string consumes = 6;
     */
    com.google.protobuf.ByteString
        getConsumesBytes(int index);

    /**
     * repeated string produces = 7;
     */
    java.util.List
        getProducesList();
    /**
     * repeated string produces = 7;
     */
    int getProducesCount();
    /**
     * repeated string produces = 7;
     */
    java.lang.String getProduces(int index);
    /**
     * repeated string produces = 7;
     */
    com.google.protobuf.ByteString
        getProducesBytes(int index);

    /**
     * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11;
     */
    boolean hasSecurityDefinitions();
    /**
     * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11;
     */
    grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions getSecurityDefinitions();
    /**
     * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11;
     */
    grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitionsOrBuilder getSecurityDefinitionsOrBuilder();

    /**
     * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12;
     */
    java.util.List 
        getSecurityList();
    /**
     * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12;
     */
    grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement getSecurity(int index);
    /**
     * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12;
     */
    int getSecurityCount();
    /**
     * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12;
     */
    java.util.List 
        getSecurityOrBuilderList();
    /**
     * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12;
     */
    grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirementOrBuilder getSecurityOrBuilder(
        int index);

    /**
     * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14;
     */
    boolean hasExternalDocs();
    /**
     * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14;
     */
    grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getExternalDocs();
    /**
     * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14;
     */
    grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder();
  }
  /**
   * 
   * `Swagger` is a representation of OpenAPI v2 specification's Swagger object.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#swaggerObject
   * TODO(ivucica): document fields
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.Swagger} */ public static final class Swagger extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_swagger.options.Swagger) SwaggerOrBuilder { private static final long serialVersionUID = 0L; // Use Swagger.newBuilder() to construct. private Swagger(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Swagger() { swagger_ = ""; host_ = ""; basePath_ = ""; schemes_ = java.util.Collections.emptyList(); consumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; produces_ = com.google.protobuf.LazyStringArrayList.EMPTY; security_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Swagger( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); swagger_ = s; break; } case 18: { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.Builder subBuilder = null; if (info_ != null) { subBuilder = info_.toBuilder(); } info_ = input.readMessage(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(info_); info_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); host_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); basePath_ = s; break; } case 40: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000010) != 0)) { schemes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } schemes_.add(rawValue); break; } case 42: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000010) != 0)) { schemes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } schemes_.add(rawValue); } input.popLimit(oldLimit); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000020) != 0)) { consumes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } consumes_.add(s); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000040) != 0)) { produces_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000040; } produces_.add(s); break; } case 90: { grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.Builder subBuilder = null; if (securityDefinitions_ != null) { subBuilder = securityDefinitions_.toBuilder(); } securityDefinitions_ = input.readMessage(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(securityDefinitions_); securityDefinitions_ = subBuilder.buildPartial(); } break; } case 98: { if (!((mutable_bitField0_ & 0x00000100) != 0)) { security_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } security_.add( input.readMessage(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.parser(), extensionRegistry)); break; } case 114: { grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder subBuilder = null; if (externalDocs_ != null) { subBuilder = externalDocs_.toBuilder(); } externalDocs_ = input.readMessage(grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(externalDocs_); externalDocs_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000010) != 0)) { schemes_ = java.util.Collections.unmodifiableList(schemes_); } if (((mutable_bitField0_ & 0x00000020) != 0)) { consumes_ = consumes_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000040) != 0)) { produces_ = produces_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000100) != 0)) { security_ = java.util.Collections.unmodifiableList(security_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Swagger_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Swagger_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.Builder.class); } /** * Protobuf enum {@code grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme} */ public enum SwaggerScheme implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * HTTP = 1; */ HTTP(1), /** * HTTPS = 2; */ HTTPS(2), /** * WS = 3; */ WS(3), /** * WSS = 4; */ WSS(4), UNRECOGNIZED(-1), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * HTTP = 1; */ public static final int HTTP_VALUE = 1; /** * HTTPS = 2; */ public static final int HTTPS_VALUE = 2; /** * WS = 3; */ public static final int WS_VALUE = 3; /** * WSS = 4; */ public static final int WSS_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SwaggerScheme valueOf(int value) { return forNumber(value); } public static SwaggerScheme forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return HTTP; case 2: return HTTPS; case 3: return WS; case 4: return WSS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SwaggerScheme> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SwaggerScheme findValueByNumber(int number) { return SwaggerScheme.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.getDescriptor().getEnumTypes().get(0); } private static final SwaggerScheme[] VALUES = values(); public static SwaggerScheme valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private SwaggerScheme(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme) } private int bitField0_; public static final int SWAGGER_FIELD_NUMBER = 1; private volatile java.lang.Object swagger_; /** * string swagger = 1; */ public java.lang.String getSwagger() { java.lang.Object ref = swagger_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); swagger_ = s; return s; } } /** * string swagger = 1; */ public com.google.protobuf.ByteString getSwaggerBytes() { java.lang.Object ref = swagger_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); swagger_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INFO_FIELD_NUMBER = 2; private grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info info_; /** * .grpc.gateway.protoc_gen_swagger.options.Info info = 2; */ public boolean hasInfo() { return info_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.Info info = 2; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info getInfo() { return info_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.getDefaultInstance() : info_; } /** * .grpc.gateway.protoc_gen_swagger.options.Info info = 2; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.InfoOrBuilder getInfoOrBuilder() { return getInfo(); } public static final int HOST_FIELD_NUMBER = 3; private volatile java.lang.Object host_; /** * string host = 3; */ public java.lang.String getHost() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** * string host = 3; */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BASE_PATH_FIELD_NUMBER = 4; private volatile java.lang.Object basePath_; /** * string base_path = 4; */ public java.lang.String getBasePath() { java.lang.Object ref = basePath_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); basePath_ = s; return s; } } /** * string base_path = 4; */ public com.google.protobuf.ByteString getBasePathBytes() { java.lang.Object ref = basePath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); basePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCHEMES_FIELD_NUMBER = 5; private java.util.List schemes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.SwaggerScheme> schemes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.SwaggerScheme>() { public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.SwaggerScheme convert(java.lang.Integer from) { @SuppressWarnings("deprecation") grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.SwaggerScheme result = grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.SwaggerScheme.valueOf(from); return result == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.SwaggerScheme.UNRECOGNIZED : result; } }; /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public java.util.List getSchemesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.SwaggerScheme>(schemes_, schemes_converter_); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public int getSchemesCount() { return schemes_.size(); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.SwaggerScheme getSchemes(int index) { return schemes_converter_.convert(schemes_.get(index)); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public java.util.List getSchemesValueList() { return schemes_; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public int getSchemesValue(int index) { return schemes_.get(index); } private int schemesMemoizedSerializedSize; public static final int CONSUMES_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList consumes_; /** * repeated string consumes = 6; */ public com.google.protobuf.ProtocolStringList getConsumesList() { return consumes_; } /** * repeated string consumes = 6; */ public int getConsumesCount() { return consumes_.size(); } /** * repeated string consumes = 6; */ public java.lang.String getConsumes(int index) { return consumes_.get(index); } /** * repeated string consumes = 6; */ public com.google.protobuf.ByteString getConsumesBytes(int index) { return consumes_.getByteString(index); } public static final int PRODUCES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList produces_; /** * repeated string produces = 7; */ public com.google.protobuf.ProtocolStringList getProducesList() { return produces_; } /** * repeated string produces = 7; */ public int getProducesCount() { return produces_.size(); } /** * repeated string produces = 7; */ public java.lang.String getProduces(int index) { return produces_.get(index); } /** * repeated string produces = 7; */ public com.google.protobuf.ByteString getProducesBytes(int index) { return produces_.getByteString(index); } public static final int SECURITY_DEFINITIONS_FIELD_NUMBER = 11; private grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions securityDefinitions_; /** * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11; */ public boolean hasSecurityDefinitions() { return securityDefinitions_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions getSecurityDefinitions() { return securityDefinitions_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.getDefaultInstance() : securityDefinitions_; } /** * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitionsOrBuilder getSecurityDefinitionsOrBuilder() { return getSecurityDefinitions(); } public static final int SECURITY_FIELD_NUMBER = 12; private java.util.List security_; /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public java.util.List getSecurityList() { return security_; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public java.util.List getSecurityOrBuilderList() { return security_; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public int getSecurityCount() { return security_.size(); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement getSecurity(int index) { return security_.get(index); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirementOrBuilder getSecurityOrBuilder( int index) { return security_.get(index); } public static final int EXTERNAL_DOCS_FIELD_NUMBER = 14; private grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation externalDocs_; /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14; */ public boolean hasExternalDocs() { return externalDocs_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getExternalDocs() { return externalDocs_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { return getExternalDocs(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!getSwaggerBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, swagger_); } if (info_ != null) { output.writeMessage(2, getInfo()); } if (!getHostBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, host_); } if (!getBasePathBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, basePath_); } if (getSchemesList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(schemesMemoizedSerializedSize); } for (int i = 0; i < schemes_.size(); i++) { output.writeEnumNoTag(schemes_.get(i)); } for (int i = 0; i < consumes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, consumes_.getRaw(i)); } for (int i = 0; i < produces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, produces_.getRaw(i)); } if (securityDefinitions_ != null) { output.writeMessage(11, getSecurityDefinitions()); } for (int i = 0; i < security_.size(); i++) { output.writeMessage(12, security_.get(i)); } if (externalDocs_ != null) { output.writeMessage(14, getExternalDocs()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getSwaggerBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, swagger_); } if (info_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getInfo()); } if (!getHostBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, host_); } if (!getBasePathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, basePath_); } { int dataSize = 0; for (int i = 0; i < schemes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(schemes_.get(i)); } size += dataSize; if (!getSchemesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }schemesMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < consumes_.size(); i++) { dataSize += computeStringSizeNoTag(consumes_.getRaw(i)); } size += dataSize; size += 1 * getConsumesList().size(); } { int dataSize = 0; for (int i = 0; i < produces_.size(); i++) { dataSize += computeStringSizeNoTag(produces_.getRaw(i)); } size += dataSize; size += 1 * getProducesList().size(); } if (securityDefinitions_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getSecurityDefinitions()); } for (int i = 0; i < security_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, security_.get(i)); } if (externalDocs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getExternalDocs()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger)) { return super.equals(obj); } grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger other = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger) obj; if (!getSwagger() .equals(other.getSwagger())) return false; if (hasInfo() != other.hasInfo()) return false; if (hasInfo()) { if (!getInfo() .equals(other.getInfo())) return false; } if (!getHost() .equals(other.getHost())) return false; if (!getBasePath() .equals(other.getBasePath())) return false; if (!schemes_.equals(other.schemes_)) return false; if (!getConsumesList() .equals(other.getConsumesList())) return false; if (!getProducesList() .equals(other.getProducesList())) return false; if (hasSecurityDefinitions() != other.hasSecurityDefinitions()) return false; if (hasSecurityDefinitions()) { if (!getSecurityDefinitions() .equals(other.getSecurityDefinitions())) return false; } if (!getSecurityList() .equals(other.getSecurityList())) return false; if (hasExternalDocs() != other.hasExternalDocs()) return false; if (hasExternalDocs()) { if (!getExternalDocs() .equals(other.getExternalDocs())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SWAGGER_FIELD_NUMBER; hash = (53 * hash) + getSwagger().hashCode(); if (hasInfo()) { hash = (37 * hash) + INFO_FIELD_NUMBER; hash = (53 * hash) + getInfo().hashCode(); } hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); hash = (37 * hash) + BASE_PATH_FIELD_NUMBER; hash = (53 * hash) + getBasePath().hashCode(); if (getSchemesCount() > 0) { hash = (37 * hash) + SCHEMES_FIELD_NUMBER; hash = (53 * hash) + schemes_.hashCode(); } if (getConsumesCount() > 0) { hash = (37 * hash) + CONSUMES_FIELD_NUMBER; hash = (53 * hash) + getConsumesList().hashCode(); } if (getProducesCount() > 0) { hash = (37 * hash) + PRODUCES_FIELD_NUMBER; hash = (53 * hash) + getProducesList().hashCode(); } if (hasSecurityDefinitions()) { hash = (37 * hash) + SECURITY_DEFINITIONS_FIELD_NUMBER; hash = (53 * hash) + getSecurityDefinitions().hashCode(); } if (getSecurityCount() > 0) { hash = (37 * hash) + SECURITY_FIELD_NUMBER; hash = (53 * hash) + getSecurityList().hashCode(); } if (hasExternalDocs()) { hash = (37 * hash) + EXTERNAL_DOCS_FIELD_NUMBER; hash = (53 * hash) + getExternalDocs().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * `Swagger` is a representation of OpenAPI v2 specification's Swagger object.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#swaggerObject
     * TODO(ivucica): document fields
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.Swagger} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_swagger.options.Swagger) grpc.gateway.protoc_gen_swagger.options.Openapiv2.SwaggerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Swagger_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Swagger_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.Builder.class); } // Construct using grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSecurityFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); swagger_ = ""; if (infoBuilder_ == null) { info_ = null; } else { info_ = null; infoBuilder_ = null; } host_ = ""; basePath_ = ""; schemes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); consumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); produces_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); if (securityDefinitionsBuilder_ == null) { securityDefinitions_ = null; } else { securityDefinitions_ = null; securityDefinitionsBuilder_ = null; } if (securityBuilder_ == null) { security_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { securityBuilder_.clear(); } if (externalDocsBuilder_ == null) { externalDocs_ = null; } else { externalDocs_ = null; externalDocsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Swagger_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger getDefaultInstanceForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger build() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger buildPartial() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger result = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.swagger_ = swagger_; if (infoBuilder_ == null) { result.info_ = info_; } else { result.info_ = infoBuilder_.build(); } result.host_ = host_; result.basePath_ = basePath_; if (((bitField0_ & 0x00000010) != 0)) { schemes_ = java.util.Collections.unmodifiableList(schemes_); bitField0_ = (bitField0_ & ~0x00000010); } result.schemes_ = schemes_; if (((bitField0_ & 0x00000020) != 0)) { consumes_ = consumes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000020); } result.consumes_ = consumes_; if (((bitField0_ & 0x00000040) != 0)) { produces_ = produces_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000040); } result.produces_ = produces_; if (securityDefinitionsBuilder_ == null) { result.securityDefinitions_ = securityDefinitions_; } else { result.securityDefinitions_ = securityDefinitionsBuilder_.build(); } if (securityBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { security_ = java.util.Collections.unmodifiableList(security_); bitField0_ = (bitField0_ & ~0x00000100); } result.security_ = security_; } else { result.security_ = securityBuilder_.build(); } if (externalDocsBuilder_ == null) { result.externalDocs_ = externalDocs_; } else { result.externalDocs_ = externalDocsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger) { return mergeFrom((grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger other) { if (other == grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.getDefaultInstance()) return this; if (!other.getSwagger().isEmpty()) { swagger_ = other.swagger_; onChanged(); } if (other.hasInfo()) { mergeInfo(other.getInfo()); } if (!other.getHost().isEmpty()) { host_ = other.host_; onChanged(); } if (!other.getBasePath().isEmpty()) { basePath_ = other.basePath_; onChanged(); } if (!other.schemes_.isEmpty()) { if (schemes_.isEmpty()) { schemes_ = other.schemes_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureSchemesIsMutable(); schemes_.addAll(other.schemes_); } onChanged(); } if (!other.consumes_.isEmpty()) { if (consumes_.isEmpty()) { consumes_ = other.consumes_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureConsumesIsMutable(); consumes_.addAll(other.consumes_); } onChanged(); } if (!other.produces_.isEmpty()) { if (produces_.isEmpty()) { produces_ = other.produces_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureProducesIsMutable(); produces_.addAll(other.produces_); } onChanged(); } if (other.hasSecurityDefinitions()) { mergeSecurityDefinitions(other.getSecurityDefinitions()); } if (securityBuilder_ == null) { if (!other.security_.isEmpty()) { if (security_.isEmpty()) { security_ = other.security_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureSecurityIsMutable(); security_.addAll(other.security_); } onChanged(); } } else { if (!other.security_.isEmpty()) { if (securityBuilder_.isEmpty()) { securityBuilder_.dispose(); securityBuilder_ = null; security_ = other.security_; bitField0_ = (bitField0_ & ~0x00000100); securityBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSecurityFieldBuilder() : null; } else { securityBuilder_.addAllMessages(other.security_); } } } if (other.hasExternalDocs()) { mergeExternalDocs(other.getExternalDocs()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object swagger_ = ""; /** * string swagger = 1; */ public java.lang.String getSwagger() { java.lang.Object ref = swagger_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); swagger_ = s; return s; } else { return (java.lang.String) ref; } } /** * string swagger = 1; */ public com.google.protobuf.ByteString getSwaggerBytes() { java.lang.Object ref = swagger_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); swagger_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string swagger = 1; */ public Builder setSwagger( java.lang.String value) { if (value == null) { throw new NullPointerException(); } swagger_ = value; onChanged(); return this; } /** * string swagger = 1; */ public Builder clearSwagger() { swagger_ = getDefaultInstance().getSwagger(); onChanged(); return this; } /** * string swagger = 1; */ public Builder setSwaggerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); swagger_ = value; onChanged(); return this; } private grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info info_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.InfoOrBuilder> infoBuilder_; /** * .grpc.gateway.protoc_gen_swagger.options.Info info = 2; */ public boolean hasInfo() { return infoBuilder_ != null || info_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.Info info = 2; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info getInfo() { if (infoBuilder_ == null) { return info_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.getDefaultInstance() : info_; } else { return infoBuilder_.getMessage(); } } /** * .grpc.gateway.protoc_gen_swagger.options.Info info = 2; */ public Builder setInfo(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info value) { if (infoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } info_ = value; onChanged(); } else { infoBuilder_.setMessage(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.Info info = 2; */ public Builder setInfo( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.Builder builderForValue) { if (infoBuilder_ == null) { info_ = builderForValue.build(); onChanged(); } else { infoBuilder_.setMessage(builderForValue.build()); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.Info info = 2; */ public Builder mergeInfo(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info value) { if (infoBuilder_ == null) { if (info_ != null) { info_ = grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.newBuilder(info_).mergeFrom(value).buildPartial(); } else { info_ = value; } onChanged(); } else { infoBuilder_.mergeFrom(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.Info info = 2; */ public Builder clearInfo() { if (infoBuilder_ == null) { info_ = null; onChanged(); } else { info_ = null; infoBuilder_ = null; } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.Info info = 2; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.Builder getInfoBuilder() { onChanged(); return getInfoFieldBuilder().getBuilder(); } /** * .grpc.gateway.protoc_gen_swagger.options.Info info = 2; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.InfoOrBuilder getInfoOrBuilder() { if (infoBuilder_ != null) { return infoBuilder_.getMessageOrBuilder(); } else { return info_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.getDefaultInstance() : info_; } } /** * .grpc.gateway.protoc_gen_swagger.options.Info info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.InfoOrBuilder> getInfoFieldBuilder() { if (infoBuilder_ == null) { infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.InfoOrBuilder>( getInfo(), getParentForChildren(), isClean()); info_ = null; } return infoBuilder_; } private java.lang.Object host_ = ""; /** * string host = 3; */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } else { return (java.lang.String) ref; } } /** * string host = 3; */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string host = 3; */ public Builder setHost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } host_ = value; onChanged(); return this; } /** * string host = 3; */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** * string host = 3; */ public Builder setHostBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; onChanged(); return this; } private java.lang.Object basePath_ = ""; /** * string base_path = 4; */ public java.lang.String getBasePath() { java.lang.Object ref = basePath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); basePath_ = s; return s; } else { return (java.lang.String) ref; } } /** * string base_path = 4; */ public com.google.protobuf.ByteString getBasePathBytes() { java.lang.Object ref = basePath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); basePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string base_path = 4; */ public Builder setBasePath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } basePath_ = value; onChanged(); return this; } /** * string base_path = 4; */ public Builder clearBasePath() { basePath_ = getDefaultInstance().getBasePath(); onChanged(); return this; } /** * string base_path = 4; */ public Builder setBasePathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); basePath_ = value; onChanged(); return this; } private java.util.List schemes_ = java.util.Collections.emptyList(); private void ensureSchemesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { schemes_ = new java.util.ArrayList(schemes_); bitField0_ |= 0x00000010; } } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public java.util.List getSchemesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.SwaggerScheme>(schemes_, schemes_converter_); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public int getSchemesCount() { return schemes_.size(); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.SwaggerScheme getSchemes(int index) { return schemes_converter_.convert(schemes_.get(index)); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public Builder setSchemes( int index, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.SwaggerScheme value) { if (value == null) { throw new NullPointerException(); } ensureSchemesIsMutable(); schemes_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public Builder addSchemes(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.SwaggerScheme value) { if (value == null) { throw new NullPointerException(); } ensureSchemesIsMutable(); schemes_.add(value.getNumber()); onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public Builder addAllSchemes( java.lang.Iterable values) { ensureSchemesIsMutable(); for (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger.SwaggerScheme value : values) { schemes_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public Builder clearSchemes() { schemes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public java.util.List getSchemesValueList() { return java.util.Collections.unmodifiableList(schemes_); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public int getSchemesValue(int index) { return schemes_.get(index); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public Builder setSchemesValue( int index, int value) { ensureSchemesIsMutable(); schemes_.set(index, value); onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public Builder addSchemesValue(int value) { ensureSchemesIsMutable(); schemes_.add(value); onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme schemes = 5; */ public Builder addAllSchemesValue( java.lang.Iterable values) { ensureSchemesIsMutable(); for (int value : values) { schemes_.add(value); } onChanged(); return this; } private com.google.protobuf.LazyStringList consumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureConsumesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { consumes_ = new com.google.protobuf.LazyStringArrayList(consumes_); bitField0_ |= 0x00000020; } } /** * repeated string consumes = 6; */ public com.google.protobuf.ProtocolStringList getConsumesList() { return consumes_.getUnmodifiableView(); } /** * repeated string consumes = 6; */ public int getConsumesCount() { return consumes_.size(); } /** * repeated string consumes = 6; */ public java.lang.String getConsumes(int index) { return consumes_.get(index); } /** * repeated string consumes = 6; */ public com.google.protobuf.ByteString getConsumesBytes(int index) { return consumes_.getByteString(index); } /** * repeated string consumes = 6; */ public Builder setConsumes( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConsumesIsMutable(); consumes_.set(index, value); onChanged(); return this; } /** * repeated string consumes = 6; */ public Builder addConsumes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConsumesIsMutable(); consumes_.add(value); onChanged(); return this; } /** * repeated string consumes = 6; */ public Builder addAllConsumes( java.lang.Iterable values) { ensureConsumesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, consumes_); onChanged(); return this; } /** * repeated string consumes = 6; */ public Builder clearConsumes() { consumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * repeated string consumes = 6; */ public Builder addConsumesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureConsumesIsMutable(); consumes_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList produces_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureProducesIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { produces_ = new com.google.protobuf.LazyStringArrayList(produces_); bitField0_ |= 0x00000040; } } /** * repeated string produces = 7; */ public com.google.protobuf.ProtocolStringList getProducesList() { return produces_.getUnmodifiableView(); } /** * repeated string produces = 7; */ public int getProducesCount() { return produces_.size(); } /** * repeated string produces = 7; */ public java.lang.String getProduces(int index) { return produces_.get(index); } /** * repeated string produces = 7; */ public com.google.protobuf.ByteString getProducesBytes(int index) { return produces_.getByteString(index); } /** * repeated string produces = 7; */ public Builder setProduces( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProducesIsMutable(); produces_.set(index, value); onChanged(); return this; } /** * repeated string produces = 7; */ public Builder addProduces( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProducesIsMutable(); produces_.add(value); onChanged(); return this; } /** * repeated string produces = 7; */ public Builder addAllProduces( java.lang.Iterable values) { ensureProducesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, produces_); onChanged(); return this; } /** * repeated string produces = 7; */ public Builder clearProduces() { produces_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * repeated string produces = 7; */ public Builder addProducesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureProducesIsMutable(); produces_.add(value); onChanged(); return this; } private grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions securityDefinitions_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitionsOrBuilder> securityDefinitionsBuilder_; /** * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11; */ public boolean hasSecurityDefinitions() { return securityDefinitionsBuilder_ != null || securityDefinitions_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions getSecurityDefinitions() { if (securityDefinitionsBuilder_ == null) { return securityDefinitions_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.getDefaultInstance() : securityDefinitions_; } else { return securityDefinitionsBuilder_.getMessage(); } } /** * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11; */ public Builder setSecurityDefinitions(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions value) { if (securityDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } securityDefinitions_ = value; onChanged(); } else { securityDefinitionsBuilder_.setMessage(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11; */ public Builder setSecurityDefinitions( grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.Builder builderForValue) { if (securityDefinitionsBuilder_ == null) { securityDefinitions_ = builderForValue.build(); onChanged(); } else { securityDefinitionsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11; */ public Builder mergeSecurityDefinitions(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions value) { if (securityDefinitionsBuilder_ == null) { if (securityDefinitions_ != null) { securityDefinitions_ = grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.newBuilder(securityDefinitions_).mergeFrom(value).buildPartial(); } else { securityDefinitions_ = value; } onChanged(); } else { securityDefinitionsBuilder_.mergeFrom(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11; */ public Builder clearSecurityDefinitions() { if (securityDefinitionsBuilder_ == null) { securityDefinitions_ = null; onChanged(); } else { securityDefinitions_ = null; securityDefinitionsBuilder_ = null; } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.Builder getSecurityDefinitionsBuilder() { onChanged(); return getSecurityDefinitionsFieldBuilder().getBuilder(); } /** * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitionsOrBuilder getSecurityDefinitionsOrBuilder() { if (securityDefinitionsBuilder_ != null) { return securityDefinitionsBuilder_.getMessageOrBuilder(); } else { return securityDefinitions_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.getDefaultInstance() : securityDefinitions_; } } /** * .grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions security_definitions = 11; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitionsOrBuilder> getSecurityDefinitionsFieldBuilder() { if (securityDefinitionsBuilder_ == null) { securityDefinitionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitionsOrBuilder>( getSecurityDefinitions(), getParentForChildren(), isClean()); securityDefinitions_ = null; } return securityDefinitionsBuilder_; } private java.util.List security_ = java.util.Collections.emptyList(); private void ensureSecurityIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { security_ = new java.util.ArrayList(security_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirementOrBuilder> securityBuilder_; /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public java.util.List getSecurityList() { if (securityBuilder_ == null) { return java.util.Collections.unmodifiableList(security_); } else { return securityBuilder_.getMessageList(); } } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public int getSecurityCount() { if (securityBuilder_ == null) { return security_.size(); } else { return securityBuilder_.getCount(); } } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement getSecurity(int index) { if (securityBuilder_ == null) { return security_.get(index); } else { return securityBuilder_.getMessage(index); } } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder setSecurity( int index, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement value) { if (securityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecurityIsMutable(); security_.set(index, value); onChanged(); } else { securityBuilder_.setMessage(index, value); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder setSecurity( int index, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder builderForValue) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.set(index, builderForValue.build()); onChanged(); } else { securityBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder addSecurity(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement value) { if (securityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecurityIsMutable(); security_.add(value); onChanged(); } else { securityBuilder_.addMessage(value); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder addSecurity( int index, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement value) { if (securityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecurityIsMutable(); security_.add(index, value); onChanged(); } else { securityBuilder_.addMessage(index, value); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder addSecurity( grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder builderForValue) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.add(builderForValue.build()); onChanged(); } else { securityBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder addSecurity( int index, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder builderForValue) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.add(index, builderForValue.build()); onChanged(); } else { securityBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder addAllSecurity( java.lang.Iterable values) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, security_); onChanged(); } else { securityBuilder_.addAllMessages(values); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder clearSecurity() { if (securityBuilder_ == null) { security_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { securityBuilder_.clear(); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder removeSecurity(int index) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.remove(index); onChanged(); } else { securityBuilder_.remove(index); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder getSecurityBuilder( int index) { return getSecurityFieldBuilder().getBuilder(index); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirementOrBuilder getSecurityOrBuilder( int index) { if (securityBuilder_ == null) { return security_.get(index); } else { return securityBuilder_.getMessageOrBuilder(index); } } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public java.util.List getSecurityOrBuilderList() { if (securityBuilder_ != null) { return securityBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(security_); } } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder addSecurityBuilder() { return getSecurityFieldBuilder().addBuilder( grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.getDefaultInstance()); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder addSecurityBuilder( int index) { return getSecurityFieldBuilder().addBuilder( index, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.getDefaultInstance()); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public java.util.List getSecurityBuilderList() { return getSecurityFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirementOrBuilder> getSecurityFieldBuilder() { if (securityBuilder_ == null) { securityBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirementOrBuilder>( security_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); security_ = null; } return securityBuilder_; } private grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation externalDocs_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder> externalDocsBuilder_; /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14; */ public boolean hasExternalDocs() { return externalDocsBuilder_ != null || externalDocs_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getExternalDocs() { if (externalDocsBuilder_ == null) { return externalDocs_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } else { return externalDocsBuilder_.getMessage(); } } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14; */ public Builder setExternalDocs(grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } externalDocs_ = value; onChanged(); } else { externalDocsBuilder_.setMessage(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14; */ public Builder setExternalDocs( grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder builderForValue) { if (externalDocsBuilder_ == null) { externalDocs_ = builderForValue.build(); onChanged(); } else { externalDocsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14; */ public Builder mergeExternalDocs(grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (externalDocs_ != null) { externalDocs_ = grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.newBuilder(externalDocs_).mergeFrom(value).buildPartial(); } else { externalDocs_ = value; } onChanged(); } else { externalDocsBuilder_.mergeFrom(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14; */ public Builder clearExternalDocs() { if (externalDocsBuilder_ == null) { externalDocs_ = null; onChanged(); } else { externalDocs_ = null; externalDocsBuilder_ = null; } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder getExternalDocsBuilder() { onChanged(); return getExternalDocsFieldBuilder().getBuilder(); } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { if (externalDocsBuilder_ != null) { return externalDocsBuilder_.getMessageOrBuilder(); } else { return externalDocs_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 14; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder> getExternalDocsFieldBuilder() { if (externalDocsBuilder_ == null) { externalDocsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder>( getExternalDocs(), getParentForChildren(), isClean()); externalDocs_ = null; } return externalDocsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.gateway.protoc_gen_swagger.options.Swagger) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Swagger) private static final grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger(); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Swagger parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Swagger(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Swagger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OperationOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_swagger.options.Operation) com.google.protobuf.MessageOrBuilder { /** * repeated string tags = 1; */ java.util.List getTagsList(); /** * repeated string tags = 1; */ int getTagsCount(); /** * repeated string tags = 1; */ java.lang.String getTags(int index); /** * repeated string tags = 1; */ com.google.protobuf.ByteString getTagsBytes(int index); /** * string summary = 2; */ java.lang.String getSummary(); /** * string summary = 2; */ com.google.protobuf.ByteString getSummaryBytes(); /** * string description = 3; */ java.lang.String getDescription(); /** * string description = 3; */ com.google.protobuf.ByteString getDescriptionBytes(); /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ boolean hasExternalDocs(); /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getExternalDocs(); /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder(); /** * string operation_id = 5; */ java.lang.String getOperationId(); /** * string operation_id = 5; */ com.google.protobuf.ByteString getOperationIdBytes(); /** * repeated string consumes = 6; */ java.util.List getConsumesList(); /** * repeated string consumes = 6; */ int getConsumesCount(); /** * repeated string consumes = 6; */ java.lang.String getConsumes(int index); /** * repeated string consumes = 6; */ com.google.protobuf.ByteString getConsumesBytes(int index); /** * repeated string produces = 7; */ java.util.List getProducesList(); /** * repeated string produces = 7; */ int getProducesCount(); /** * repeated string produces = 7; */ java.lang.String getProduces(int index); /** * repeated string produces = 7; */ com.google.protobuf.ByteString getProducesBytes(int index); /** * repeated string schemes = 10; */ java.util.List getSchemesList(); /** * repeated string schemes = 10; */ int getSchemesCount(); /** * repeated string schemes = 10; */ java.lang.String getSchemes(int index); /** * repeated string schemes = 10; */ com.google.protobuf.ByteString getSchemesBytes(int index); /** * bool deprecated = 11; */ boolean getDeprecated(); /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ java.util.List getSecurityList(); /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement getSecurity(int index); /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ int getSecurityCount(); /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ java.util.List getSecurityOrBuilderList(); /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirementOrBuilder getSecurityOrBuilder( int index); } /** *
   * `Operation` is a representation of OpenAPI v2 specification's Operation object.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#operationObject
   * TODO(ivucica): document fields
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.Operation} */ public static final class Operation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_swagger.options.Operation) OperationOrBuilder { private static final long serialVersionUID = 0L; // Use Operation.newBuilder() to construct. private Operation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Operation() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; summary_ = ""; description_ = ""; operationId_ = ""; consumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; produces_ = com.google.protobuf.LazyStringArrayList.EMPTY; schemes_ = com.google.protobuf.LazyStringArrayList.EMPTY; security_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Operation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } tags_.add(s); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); summary_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 34: { grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder subBuilder = null; if (externalDocs_ != null) { subBuilder = externalDocs_.toBuilder(); } externalDocs_ = input.readMessage(grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(externalDocs_); externalDocs_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); operationId_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000020) != 0)) { consumes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } consumes_.add(s); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000040) != 0)) { produces_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000040; } produces_.add(s); break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000080) != 0)) { schemes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000080; } schemes_.add(s); break; } case 88: { deprecated_ = input.readBool(); break; } case 98: { if (!((mutable_bitField0_ & 0x00000200) != 0)) { security_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } security_.add( input.readMessage(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { tags_ = tags_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000020) != 0)) { consumes_ = consumes_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000040) != 0)) { produces_ = produces_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000080) != 0)) { schemes_ = schemes_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000200) != 0)) { security_ = java.util.Collections.unmodifiableList(security_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Operation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation.Builder.class); } private int bitField0_; public static final int TAGS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList tags_; /** * repeated string tags = 1; */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** * repeated string tags = 1; */ public int getTagsCount() { return tags_.size(); } /** * repeated string tags = 1; */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * repeated string tags = 1; */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int SUMMARY_FIELD_NUMBER = 2; private volatile java.lang.Object summary_; /** * string summary = 2; */ public java.lang.String getSummary() { java.lang.Object ref = summary_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; } } /** * string summary = 2; */ public com.google.protobuf.ByteString getSummaryBytes() { java.lang.Object ref = summary_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); summary_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** * string description = 3; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** * string description = 3; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXTERNAL_DOCS_FIELD_NUMBER = 4; private grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation externalDocs_; /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ public boolean hasExternalDocs() { return externalDocs_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getExternalDocs() { return externalDocs_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { return getExternalDocs(); } public static final int OPERATION_ID_FIELD_NUMBER = 5; private volatile java.lang.Object operationId_; /** * string operation_id = 5; */ public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; } } /** * string operation_id = 5; */ public com.google.protobuf.ByteString getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); operationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONSUMES_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList consumes_; /** * repeated string consumes = 6; */ public com.google.protobuf.ProtocolStringList getConsumesList() { return consumes_; } /** * repeated string consumes = 6; */ public int getConsumesCount() { return consumes_.size(); } /** * repeated string consumes = 6; */ public java.lang.String getConsumes(int index) { return consumes_.get(index); } /** * repeated string consumes = 6; */ public com.google.protobuf.ByteString getConsumesBytes(int index) { return consumes_.getByteString(index); } public static final int PRODUCES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList produces_; /** * repeated string produces = 7; */ public com.google.protobuf.ProtocolStringList getProducesList() { return produces_; } /** * repeated string produces = 7; */ public int getProducesCount() { return produces_.size(); } /** * repeated string produces = 7; */ public java.lang.String getProduces(int index) { return produces_.get(index); } /** * repeated string produces = 7; */ public com.google.protobuf.ByteString getProducesBytes(int index) { return produces_.getByteString(index); } public static final int SCHEMES_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList schemes_; /** * repeated string schemes = 10; */ public com.google.protobuf.ProtocolStringList getSchemesList() { return schemes_; } /** * repeated string schemes = 10; */ public int getSchemesCount() { return schemes_.size(); } /** * repeated string schemes = 10; */ public java.lang.String getSchemes(int index) { return schemes_.get(index); } /** * repeated string schemes = 10; */ public com.google.protobuf.ByteString getSchemesBytes(int index) { return schemes_.getByteString(index); } public static final int DEPRECATED_FIELD_NUMBER = 11; private boolean deprecated_; /** * bool deprecated = 11; */ public boolean getDeprecated() { return deprecated_; } public static final int SECURITY_FIELD_NUMBER = 12; private java.util.List security_; /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public java.util.List getSecurityList() { return security_; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public java.util.List getSecurityOrBuilderList() { return security_; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public int getSecurityCount() { return security_.size(); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement getSecurity(int index) { return security_.get(index); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirementOrBuilder getSecurityOrBuilder( int index) { return security_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); } if (!getSummaryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, summary_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (externalDocs_ != null) { output.writeMessage(4, getExternalDocs()); } if (!getOperationIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, operationId_); } for (int i = 0; i < consumes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, consumes_.getRaw(i)); } for (int i = 0; i < produces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, produces_.getRaw(i)); } for (int i = 0; i < schemes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, schemes_.getRaw(i)); } if (deprecated_ != false) { output.writeBool(11, deprecated_); } for (int i = 0; i < security_.size(); i++) { output.writeMessage(12, security_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } if (!getSummaryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, summary_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (externalDocs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getExternalDocs()); } if (!getOperationIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, operationId_); } { int dataSize = 0; for (int i = 0; i < consumes_.size(); i++) { dataSize += computeStringSizeNoTag(consumes_.getRaw(i)); } size += dataSize; size += 1 * getConsumesList().size(); } { int dataSize = 0; for (int i = 0; i < produces_.size(); i++) { dataSize += computeStringSizeNoTag(produces_.getRaw(i)); } size += dataSize; size += 1 * getProducesList().size(); } { int dataSize = 0; for (int i = 0; i < schemes_.size(); i++) { dataSize += computeStringSizeNoTag(schemes_.getRaw(i)); } size += dataSize; size += 1 * getSchemesList().size(); } if (deprecated_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, deprecated_); } for (int i = 0; i < security_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, security_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation)) { return super.equals(obj); } grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation other = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation) obj; if (!getTagsList() .equals(other.getTagsList())) return false; if (!getSummary() .equals(other.getSummary())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (hasExternalDocs() != other.hasExternalDocs()) return false; if (hasExternalDocs()) { if (!getExternalDocs() .equals(other.getExternalDocs())) return false; } if (!getOperationId() .equals(other.getOperationId())) return false; if (!getConsumesList() .equals(other.getConsumesList())) return false; if (!getProducesList() .equals(other.getProducesList())) return false; if (!getSchemesList() .equals(other.getSchemesList())) return false; if (getDeprecated() != other.getDeprecated()) return false; if (!getSecurityList() .equals(other.getSecurityList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } hash = (37 * hash) + SUMMARY_FIELD_NUMBER; hash = (53 * hash) + getSummary().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasExternalDocs()) { hash = (37 * hash) + EXTERNAL_DOCS_FIELD_NUMBER; hash = (53 * hash) + getExternalDocs().hashCode(); } hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; hash = (53 * hash) + getOperationId().hashCode(); if (getConsumesCount() > 0) { hash = (37 * hash) + CONSUMES_FIELD_NUMBER; hash = (53 * hash) + getConsumesList().hashCode(); } if (getProducesCount() > 0) { hash = (37 * hash) + PRODUCES_FIELD_NUMBER; hash = (53 * hash) + getProducesList().hashCode(); } if (getSchemesCount() > 0) { hash = (37 * hash) + SCHEMES_FIELD_NUMBER; hash = (53 * hash) + getSchemesList().hashCode(); } hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeprecated()); if (getSecurityCount() > 0) { hash = (37 * hash) + SECURITY_FIELD_NUMBER; hash = (53 * hash) + getSecurityList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * `Operation` is a representation of OpenAPI v2 specification's Operation object.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#operationObject
     * TODO(ivucica): document fields
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.Operation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_swagger.options.Operation) grpc.gateway.protoc_gen_swagger.options.Openapiv2.OperationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Operation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation.Builder.class); } // Construct using grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSecurityFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); summary_ = ""; description_ = ""; if (externalDocsBuilder_ == null) { externalDocs_ = null; } else { externalDocs_ = null; externalDocsBuilder_ = null; } operationId_ = ""; consumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); produces_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); schemes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); deprecated_ = false; if (securityBuilder_ == null) { security_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); } else { securityBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Operation_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation getDefaultInstanceForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation build() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation buildPartial() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation result = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.tags_ = tags_; result.summary_ = summary_; result.description_ = description_; if (externalDocsBuilder_ == null) { result.externalDocs_ = externalDocs_; } else { result.externalDocs_ = externalDocsBuilder_.build(); } result.operationId_ = operationId_; if (((bitField0_ & 0x00000020) != 0)) { consumes_ = consumes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000020); } result.consumes_ = consumes_; if (((bitField0_ & 0x00000040) != 0)) { produces_ = produces_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000040); } result.produces_ = produces_; if (((bitField0_ & 0x00000080) != 0)) { schemes_ = schemes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000080); } result.schemes_ = schemes_; result.deprecated_ = deprecated_; if (securityBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0)) { security_ = java.util.Collections.unmodifiableList(security_); bitField0_ = (bitField0_ & ~0x00000200); } result.security_ = security_; } else { result.security_ = securityBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation) { return mergeFrom((grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation other) { if (other == grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation.getDefaultInstance()) return this; if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } if (!other.getSummary().isEmpty()) { summary_ = other.summary_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.hasExternalDocs()) { mergeExternalDocs(other.getExternalDocs()); } if (!other.getOperationId().isEmpty()) { operationId_ = other.operationId_; onChanged(); } if (!other.consumes_.isEmpty()) { if (consumes_.isEmpty()) { consumes_ = other.consumes_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureConsumesIsMutable(); consumes_.addAll(other.consumes_); } onChanged(); } if (!other.produces_.isEmpty()) { if (produces_.isEmpty()) { produces_ = other.produces_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureProducesIsMutable(); produces_.addAll(other.produces_); } onChanged(); } if (!other.schemes_.isEmpty()) { if (schemes_.isEmpty()) { schemes_ = other.schemes_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureSchemesIsMutable(); schemes_.addAll(other.schemes_); } onChanged(); } if (other.getDeprecated() != false) { setDeprecated(other.getDeprecated()); } if (securityBuilder_ == null) { if (!other.security_.isEmpty()) { if (security_.isEmpty()) { security_ = other.security_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureSecurityIsMutable(); security_.addAll(other.security_); } onChanged(); } } else { if (!other.security_.isEmpty()) { if (securityBuilder_.isEmpty()) { securityBuilder_.dispose(); securityBuilder_ = null; security_ = other.security_; bitField0_ = (bitField0_ & ~0x00000200); securityBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSecurityFieldBuilder() : null; } else { securityBuilder_.addAllMessages(other.security_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000001; } } /** * repeated string tags = 1; */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** * repeated string tags = 1; */ public int getTagsCount() { return tags_.size(); } /** * repeated string tags = 1; */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * repeated string tags = 1; */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** * repeated string tags = 1; */ public Builder setTags( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** * repeated string tags = 1; */ public Builder addTags( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** * repeated string tags = 1; */ public Builder addAllTags( java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); onChanged(); return this; } /** * repeated string tags = 1; */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string tags = 1; */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } private java.lang.Object summary_ = ""; /** * string summary = 2; */ public java.lang.String getSummary() { java.lang.Object ref = summary_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; } else { return (java.lang.String) ref; } } /** * string summary = 2; */ public com.google.protobuf.ByteString getSummaryBytes() { java.lang.Object ref = summary_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); summary_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string summary = 2; */ public Builder setSummary( java.lang.String value) { if (value == null) { throw new NullPointerException(); } summary_ = value; onChanged(); return this; } /** * string summary = 2; */ public Builder clearSummary() { summary_ = getDefaultInstance().getSummary(); onChanged(); return this; } /** * string summary = 2; */ public Builder setSummaryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); summary_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** * string description = 3; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * string description = 3; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string description = 3; */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** * string description = 3; */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * string description = 3; */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation externalDocs_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder> externalDocsBuilder_; /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ public boolean hasExternalDocs() { return externalDocsBuilder_ != null || externalDocs_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getExternalDocs() { if (externalDocsBuilder_ == null) { return externalDocs_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } else { return externalDocsBuilder_.getMessage(); } } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ public Builder setExternalDocs(grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } externalDocs_ = value; onChanged(); } else { externalDocsBuilder_.setMessage(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ public Builder setExternalDocs( grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder builderForValue) { if (externalDocsBuilder_ == null) { externalDocs_ = builderForValue.build(); onChanged(); } else { externalDocsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ public Builder mergeExternalDocs(grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (externalDocs_ != null) { externalDocs_ = grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.newBuilder(externalDocs_).mergeFrom(value).buildPartial(); } else { externalDocs_ = value; } onChanged(); } else { externalDocsBuilder_.mergeFrom(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ public Builder clearExternalDocs() { if (externalDocsBuilder_ == null) { externalDocs_ = null; onChanged(); } else { externalDocs_ = null; externalDocsBuilder_ = null; } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder getExternalDocsBuilder() { onChanged(); return getExternalDocsFieldBuilder().getBuilder(); } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { if (externalDocsBuilder_ != null) { return externalDocsBuilder_.getMessageOrBuilder(); } else { return externalDocs_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder> getExternalDocsFieldBuilder() { if (externalDocsBuilder_ == null) { externalDocsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder>( getExternalDocs(), getParentForChildren(), isClean()); externalDocs_ = null; } return externalDocsBuilder_; } private java.lang.Object operationId_ = ""; /** * string operation_id = 5; */ public java.lang.String getOperationId() { java.lang.Object ref = operationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string operation_id = 5; */ public com.google.protobuf.ByteString getOperationIdBytes() { java.lang.Object ref = operationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); operationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string operation_id = 5; */ public Builder setOperationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } operationId_ = value; onChanged(); return this; } /** * string operation_id = 5; */ public Builder clearOperationId() { operationId_ = getDefaultInstance().getOperationId(); onChanged(); return this; } /** * string operation_id = 5; */ public Builder setOperationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operationId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList consumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureConsumesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { consumes_ = new com.google.protobuf.LazyStringArrayList(consumes_); bitField0_ |= 0x00000020; } } /** * repeated string consumes = 6; */ public com.google.protobuf.ProtocolStringList getConsumesList() { return consumes_.getUnmodifiableView(); } /** * repeated string consumes = 6; */ public int getConsumesCount() { return consumes_.size(); } /** * repeated string consumes = 6; */ public java.lang.String getConsumes(int index) { return consumes_.get(index); } /** * repeated string consumes = 6; */ public com.google.protobuf.ByteString getConsumesBytes(int index) { return consumes_.getByteString(index); } /** * repeated string consumes = 6; */ public Builder setConsumes( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConsumesIsMutable(); consumes_.set(index, value); onChanged(); return this; } /** * repeated string consumes = 6; */ public Builder addConsumes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConsumesIsMutable(); consumes_.add(value); onChanged(); return this; } /** * repeated string consumes = 6; */ public Builder addAllConsumes( java.lang.Iterable values) { ensureConsumesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, consumes_); onChanged(); return this; } /** * repeated string consumes = 6; */ public Builder clearConsumes() { consumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * repeated string consumes = 6; */ public Builder addConsumesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureConsumesIsMutable(); consumes_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList produces_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureProducesIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { produces_ = new com.google.protobuf.LazyStringArrayList(produces_); bitField0_ |= 0x00000040; } } /** * repeated string produces = 7; */ public com.google.protobuf.ProtocolStringList getProducesList() { return produces_.getUnmodifiableView(); } /** * repeated string produces = 7; */ public int getProducesCount() { return produces_.size(); } /** * repeated string produces = 7; */ public java.lang.String getProduces(int index) { return produces_.get(index); } /** * repeated string produces = 7; */ public com.google.protobuf.ByteString getProducesBytes(int index) { return produces_.getByteString(index); } /** * repeated string produces = 7; */ public Builder setProduces( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProducesIsMutable(); produces_.set(index, value); onChanged(); return this; } /** * repeated string produces = 7; */ public Builder addProduces( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProducesIsMutable(); produces_.add(value); onChanged(); return this; } /** * repeated string produces = 7; */ public Builder addAllProduces( java.lang.Iterable values) { ensureProducesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, produces_); onChanged(); return this; } /** * repeated string produces = 7; */ public Builder clearProduces() { produces_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * repeated string produces = 7; */ public Builder addProducesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureProducesIsMutable(); produces_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList schemes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSchemesIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { schemes_ = new com.google.protobuf.LazyStringArrayList(schemes_); bitField0_ |= 0x00000080; } } /** * repeated string schemes = 10; */ public com.google.protobuf.ProtocolStringList getSchemesList() { return schemes_.getUnmodifiableView(); } /** * repeated string schemes = 10; */ public int getSchemesCount() { return schemes_.size(); } /** * repeated string schemes = 10; */ public java.lang.String getSchemes(int index) { return schemes_.get(index); } /** * repeated string schemes = 10; */ public com.google.protobuf.ByteString getSchemesBytes(int index) { return schemes_.getByteString(index); } /** * repeated string schemes = 10; */ public Builder setSchemes( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSchemesIsMutable(); schemes_.set(index, value); onChanged(); return this; } /** * repeated string schemes = 10; */ public Builder addSchemes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSchemesIsMutable(); schemes_.add(value); onChanged(); return this; } /** * repeated string schemes = 10; */ public Builder addAllSchemes( java.lang.Iterable values) { ensureSchemesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, schemes_); onChanged(); return this; } /** * repeated string schemes = 10; */ public Builder clearSchemes() { schemes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * repeated string schemes = 10; */ public Builder addSchemesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSchemesIsMutable(); schemes_.add(value); onChanged(); return this; } private boolean deprecated_ ; /** * bool deprecated = 11; */ public boolean getDeprecated() { return deprecated_; } /** * bool deprecated = 11; */ public Builder setDeprecated(boolean value) { deprecated_ = value; onChanged(); return this; } /** * bool deprecated = 11; */ public Builder clearDeprecated() { deprecated_ = false; onChanged(); return this; } private java.util.List security_ = java.util.Collections.emptyList(); private void ensureSecurityIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { security_ = new java.util.ArrayList(security_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirementOrBuilder> securityBuilder_; /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public java.util.List getSecurityList() { if (securityBuilder_ == null) { return java.util.Collections.unmodifiableList(security_); } else { return securityBuilder_.getMessageList(); } } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public int getSecurityCount() { if (securityBuilder_ == null) { return security_.size(); } else { return securityBuilder_.getCount(); } } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement getSecurity(int index) { if (securityBuilder_ == null) { return security_.get(index); } else { return securityBuilder_.getMessage(index); } } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder setSecurity( int index, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement value) { if (securityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecurityIsMutable(); security_.set(index, value); onChanged(); } else { securityBuilder_.setMessage(index, value); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder setSecurity( int index, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder builderForValue) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.set(index, builderForValue.build()); onChanged(); } else { securityBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder addSecurity(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement value) { if (securityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecurityIsMutable(); security_.add(value); onChanged(); } else { securityBuilder_.addMessage(value); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder addSecurity( int index, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement value) { if (securityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecurityIsMutable(); security_.add(index, value); onChanged(); } else { securityBuilder_.addMessage(index, value); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder addSecurity( grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder builderForValue) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.add(builderForValue.build()); onChanged(); } else { securityBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder addSecurity( int index, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder builderForValue) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.add(index, builderForValue.build()); onChanged(); } else { securityBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder addAllSecurity( java.lang.Iterable values) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, security_); onChanged(); } else { securityBuilder_.addAllMessages(values); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder clearSecurity() { if (securityBuilder_ == null) { security_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { securityBuilder_.clear(); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public Builder removeSecurity(int index) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.remove(index); onChanged(); } else { securityBuilder_.remove(index); } return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder getSecurityBuilder( int index) { return getSecurityFieldBuilder().getBuilder(index); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirementOrBuilder getSecurityOrBuilder( int index) { if (securityBuilder_ == null) { return security_.get(index); } else { return securityBuilder_.getMessageOrBuilder(index); } } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public java.util.List getSecurityOrBuilderList() { if (securityBuilder_ != null) { return securityBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(security_); } } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder addSecurityBuilder() { return getSecurityFieldBuilder().addBuilder( grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.getDefaultInstance()); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder addSecurityBuilder( int index) { return getSecurityFieldBuilder().addBuilder( index, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.getDefaultInstance()); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12; */ public java.util.List getSecurityBuilderList() { return getSecurityFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirementOrBuilder> getSecurityFieldBuilder() { if (securityBuilder_ == null) { securityBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirementOrBuilder>( security_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); security_ = null; } return securityBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.gateway.protoc_gen_swagger.options.Operation) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Operation) private static final grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation(); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Operation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Operation(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InfoOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_swagger.options.Info) com.google.protobuf.MessageOrBuilder { /** * string title = 1; */ java.lang.String getTitle(); /** * string title = 1; */ com.google.protobuf.ByteString getTitleBytes(); /** * string description = 2; */ java.lang.String getDescription(); /** * string description = 2; */ com.google.protobuf.ByteString getDescriptionBytes(); /** * string terms_of_service = 3; */ java.lang.String getTermsOfService(); /** * string terms_of_service = 3; */ com.google.protobuf.ByteString getTermsOfServiceBytes(); /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ boolean hasContact(); /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact getContact(); /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.ContactOrBuilder getContactOrBuilder(); /** * string version = 6; */ java.lang.String getVersion(); /** * string version = 6; */ com.google.protobuf.ByteString getVersionBytes(); } /** *
   * `Info` is a representation of OpenAPI v2 specification's Info object.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#infoObject
   * TODO(ivucica): document fields
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.Info} */ public static final class Info extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_swagger.options.Info) InfoOrBuilder { private static final long serialVersionUID = 0L; // Use Info.newBuilder() to construct. private Info(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Info() { title_ = ""; description_ = ""; termsOfService_ = ""; version_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Info( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); title_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); termsOfService_ = s; break; } case 34: { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.Builder subBuilder = null; if (contact_ != null) { subBuilder = contact_.toBuilder(); } contact_ = input.readMessage(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(contact_); contact_ = subBuilder.buildPartial(); } break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); version_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Info_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Info_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.Builder.class); } public static final int TITLE_FIELD_NUMBER = 1; private volatile java.lang.Object title_; /** * string title = 1; */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** * string title = 1; */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** * string description = 2; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** * string description = 2; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TERMS_OF_SERVICE_FIELD_NUMBER = 3; private volatile java.lang.Object termsOfService_; /** * string terms_of_service = 3; */ public java.lang.String getTermsOfService() { java.lang.Object ref = termsOfService_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); termsOfService_ = s; return s; } } /** * string terms_of_service = 3; */ public com.google.protobuf.ByteString getTermsOfServiceBytes() { java.lang.Object ref = termsOfService_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); termsOfService_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTACT_FIELD_NUMBER = 4; private grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact contact_; /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ public boolean hasContact() { return contact_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact getContact() { return contact_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.getDefaultInstance() : contact_; } /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ContactOrBuilder getContactOrBuilder() { return getContact(); } public static final int VERSION_FIELD_NUMBER = 6; private volatile java.lang.Object version_; /** * string version = 6; */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** * string version = 6; */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTitleBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (!getTermsOfServiceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, termsOfService_); } if (contact_ != null) { output.writeMessage(4, getContact()); } if (!getVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, version_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTitleBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (!getTermsOfServiceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, termsOfService_); } if (contact_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getContact()); } if (!getVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, version_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info)) { return super.equals(obj); } grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info other = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info) obj; if (!getTitle() .equals(other.getTitle())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getTermsOfService() .equals(other.getTermsOfService())) return false; if (hasContact() != other.hasContact()) return false; if (hasContact()) { if (!getContact() .equals(other.getContact())) return false; } if (!getVersion() .equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + TERMS_OF_SERVICE_FIELD_NUMBER; hash = (53 * hash) + getTermsOfService().hashCode(); if (hasContact()) { hash = (37 * hash) + CONTACT_FIELD_NUMBER; hash = (53 * hash) + getContact().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * `Info` is a representation of OpenAPI v2 specification's Info object.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#infoObject
     * TODO(ivucica): document fields
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.Info} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_swagger.options.Info) grpc.gateway.protoc_gen_swagger.options.Openapiv2.InfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Info_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Info_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.Builder.class); } // Construct using grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); title_ = ""; description_ = ""; termsOfService_ = ""; if (contactBuilder_ == null) { contact_ = null; } else { contact_ = null; contactBuilder_ = null; } version_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Info_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info getDefaultInstanceForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info build() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info buildPartial() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info result = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info(this); result.title_ = title_; result.description_ = description_; result.termsOfService_ = termsOfService_; if (contactBuilder_ == null) { result.contact_ = contact_; } else { result.contact_ = contactBuilder_.build(); } result.version_ = version_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info) { return mergeFrom((grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info other) { if (other == grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info.getDefaultInstance()) return this; if (!other.getTitle().isEmpty()) { title_ = other.title_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getTermsOfService().isEmpty()) { termsOfService_ = other.termsOfService_; onChanged(); } if (other.hasContact()) { mergeContact(other.getContact()); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object title_ = ""; /** * string title = 1; */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } else { return (java.lang.String) ref; } } /** * string title = 1; */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string title = 1; */ public Builder setTitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } title_ = value; onChanged(); return this; } /** * string title = 1; */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** * string title = 1; */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** * string description = 2; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * string description = 2; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string description = 2; */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** * string description = 2; */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * string description = 2; */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object termsOfService_ = ""; /** * string terms_of_service = 3; */ public java.lang.String getTermsOfService() { java.lang.Object ref = termsOfService_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); termsOfService_ = s; return s; } else { return (java.lang.String) ref; } } /** * string terms_of_service = 3; */ public com.google.protobuf.ByteString getTermsOfServiceBytes() { java.lang.Object ref = termsOfService_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); termsOfService_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string terms_of_service = 3; */ public Builder setTermsOfService( java.lang.String value) { if (value == null) { throw new NullPointerException(); } termsOfService_ = value; onChanged(); return this; } /** * string terms_of_service = 3; */ public Builder clearTermsOfService() { termsOfService_ = getDefaultInstance().getTermsOfService(); onChanged(); return this; } /** * string terms_of_service = 3; */ public Builder setTermsOfServiceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); termsOfService_ = value; onChanged(); return this; } private grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact contact_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ContactOrBuilder> contactBuilder_; /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ public boolean hasContact() { return contactBuilder_ != null || contact_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact getContact() { if (contactBuilder_ == null) { return contact_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.getDefaultInstance() : contact_; } else { return contactBuilder_.getMessage(); } } /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ public Builder setContact(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact value) { if (contactBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contact_ = value; onChanged(); } else { contactBuilder_.setMessage(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ public Builder setContact( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.Builder builderForValue) { if (contactBuilder_ == null) { contact_ = builderForValue.build(); onChanged(); } else { contactBuilder_.setMessage(builderForValue.build()); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ public Builder mergeContact(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact value) { if (contactBuilder_ == null) { if (contact_ != null) { contact_ = grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.newBuilder(contact_).mergeFrom(value).buildPartial(); } else { contact_ = value; } onChanged(); } else { contactBuilder_.mergeFrom(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ public Builder clearContact() { if (contactBuilder_ == null) { contact_ = null; onChanged(); } else { contact_ = null; contactBuilder_ = null; } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.Builder getContactBuilder() { onChanged(); return getContactFieldBuilder().getBuilder(); } /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ContactOrBuilder getContactOrBuilder() { if (contactBuilder_ != null) { return contactBuilder_.getMessageOrBuilder(); } else { return contact_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.getDefaultInstance() : contact_; } } /** * .grpc.gateway.protoc_gen_swagger.options.Contact contact = 4; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ContactOrBuilder> getContactFieldBuilder() { if (contactBuilder_ == null) { contactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ContactOrBuilder>( getContact(), getParentForChildren(), isClean()); contact_ = null; } return contactBuilder_; } private java.lang.Object version_ = ""; /** * string version = 6; */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** * string version = 6; */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string version = 6; */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** * string version = 6; */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * string version = 6; */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.gateway.protoc_gen_swagger.options.Info) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Info) private static final grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info(); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Info parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Info(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Info getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContactOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_swagger.options.Contact) com.google.protobuf.MessageOrBuilder { /** * string name = 1; */ java.lang.String getName(); /** * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * string url = 2; */ java.lang.String getUrl(); /** * string url = 2; */ com.google.protobuf.ByteString getUrlBytes(); /** * string email = 3; */ java.lang.String getEmail(); /** * string email = 3; */ com.google.protobuf.ByteString getEmailBytes(); } /** *
   * `Contact` is a representation of OpenAPI v2 specification's Contact object.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#contactObject
   * TODO(ivucica): document fields
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.Contact} */ public static final class Contact extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_swagger.options.Contact) ContactOrBuilder { private static final long serialVersionUID = 0L; // Use Contact.newBuilder() to construct. private Contact(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Contact() { name_ = ""; url_ = ""; email_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Contact( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); url_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); email_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Contact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Contact_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int URL_FIELD_NUMBER = 2; private volatile java.lang.Object url_; /** * string url = 2; */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** * string url = 2; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EMAIL_FIELD_NUMBER = 3; private volatile java.lang.Object email_; /** * string email = 3; */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** * string email = 3; */ public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_); } if (!getEmailBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, email_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_); } if (!getEmailBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, email_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact)) { return super.equals(obj); } grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact other = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact) obj; if (!getName() .equals(other.getName())) return false; if (!getUrl() .equals(other.getUrl())) return false; if (!getEmail() .equals(other.getEmail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + EMAIL_FIELD_NUMBER; hash = (53 * hash) + getEmail().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * `Contact` is a representation of OpenAPI v2 specification's Contact object.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#contactObject
     * TODO(ivucica): document fields
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.Contact} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_swagger.options.Contact) grpc.gateway.protoc_gen_swagger.options.Openapiv2.ContactOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Contact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Contact_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.Builder.class); } // Construct using grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; url_ = ""; email_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Contact_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact getDefaultInstanceForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact build() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact buildPartial() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact result = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact(this); result.name_ = name_; result.url_ = url_; result.email_ = email_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact) { return mergeFrom((grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact other) { if (other == grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); } if (!other.getEmail().isEmpty()) { email_ = other.email_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object url_ = ""; /** * string url = 2; */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } else { return (java.lang.String) ref; } } /** * string url = 2; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string url = 2; */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } url_ = value; onChanged(); return this; } /** * string url = 2; */ public Builder clearUrl() { url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** * string url = 2; */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = value; onChanged(); return this; } private java.lang.Object email_ = ""; /** * string email = 3; */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } else { return (java.lang.String) ref; } } /** * string email = 3; */ public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string email = 3; */ public Builder setEmail( java.lang.String value) { if (value == null) { throw new NullPointerException(); } email_ = value; onChanged(); return this; } /** * string email = 3; */ public Builder clearEmail() { email_ = getDefaultInstance().getEmail(); onChanged(); return this; } /** * string email = 3; */ public Builder setEmailBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); email_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.gateway.protoc_gen_swagger.options.Contact) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Contact) private static final grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact(); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Contact parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Contact(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Contact getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExternalDocumentationOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation) com.google.protobuf.MessageOrBuilder { /** * string description = 1; */ java.lang.String getDescription(); /** * string description = 1; */ com.google.protobuf.ByteString getDescriptionBytes(); /** * string url = 2; */ java.lang.String getUrl(); /** * string url = 2; */ com.google.protobuf.ByteString getUrlBytes(); } /** *
   * `ExternalDocumentation` is a representation of OpenAPI v2 specification's
   * ExternalDocumentation object.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#externalDocumentationObject
   * TODO(ivucica): document fields
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation} */ public static final class ExternalDocumentation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation) ExternalDocumentationOrBuilder { private static final long serialVersionUID = 0L; // Use ExternalDocumentation.newBuilder() to construct. private ExternalDocumentation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExternalDocumentation() { description_ = ""; url_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExternalDocumentation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); url_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_ExternalDocumentation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_ExternalDocumentation_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder.class); } public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** * string description = 1; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** * string description = 1; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int URL_FIELD_NUMBER = 2; private volatile java.lang.Object url_; /** * string url = 2; */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** * string url = 2; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } if (!getUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } if (!getUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation)) { return super.equals(obj); } grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation other = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation) obj; if (!getDescription() .equals(other.getDescription())) return false; if (!getUrl() .equals(other.getUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * `ExternalDocumentation` is a representation of OpenAPI v2 specification's
     * ExternalDocumentation object.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#externalDocumentationObject
     * TODO(ivucica): document fields
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation) grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_ExternalDocumentation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_ExternalDocumentation_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder.class); } // Construct using grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); description_ = ""; url_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_ExternalDocumentation_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getDefaultInstanceForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation build() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation buildPartial() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation result = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation(this); result.description_ = description_; result.url_ = url_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation) { return mergeFrom((grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation other) { if (other == grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object description_ = ""; /** * string description = 1; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * string description = 1; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string description = 1; */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** * string description = 1; */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * string description = 1; */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object url_ = ""; /** * string url = 2; */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } else { return (java.lang.String) ref; } } /** * string url = 2; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string url = 2; */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } url_ = value; onChanged(); return this; } /** * string url = 2; */ public Builder clearUrl() { url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** * string url = 2; */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation) private static final grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation(); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExternalDocumentation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExternalDocumentation(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_swagger.options.Schema) com.google.protobuf.MessageOrBuilder { /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ boolean hasJsonSchema(); /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema getJsonSchema(); /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchemaOrBuilder getJsonSchemaOrBuilder(); /** * string discriminator = 2; */ java.lang.String getDiscriminator(); /** * string discriminator = 2; */ com.google.protobuf.ByteString getDiscriminatorBytes(); /** * bool read_only = 3; */ boolean getReadOnly(); /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ boolean hasExternalDocs(); /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getExternalDocs(); /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder(); /** * .google.protobuf.Any example = 6; */ boolean hasExample(); /** * .google.protobuf.Any example = 6; */ com.google.protobuf.Any getExample(); /** * .google.protobuf.Any example = 6; */ com.google.protobuf.AnyOrBuilder getExampleOrBuilder(); } /** *
   * `Schema` is a representation of OpenAPI v2 specification's Schema object.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
   * TODO(ivucica): document fields
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.Schema} */ public static final class Schema extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_swagger.options.Schema) SchemaOrBuilder { private static final long serialVersionUID = 0L; // Use Schema.newBuilder() to construct. private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Schema() { discriminator_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Schema( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.Builder subBuilder = null; if (jsonSchema_ != null) { subBuilder = jsonSchema_.toBuilder(); } jsonSchema_ = input.readMessage(grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(jsonSchema_); jsonSchema_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); discriminator_ = s; break; } case 24: { readOnly_ = input.readBool(); break; } case 42: { grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder subBuilder = null; if (externalDocs_ != null) { subBuilder = externalDocs_.toBuilder(); } externalDocs_ = input.readMessage(grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(externalDocs_); externalDocs_ = subBuilder.buildPartial(); } break; } case 50: { com.google.protobuf.Any.Builder subBuilder = null; if (example_ != null) { subBuilder = example_.toBuilder(); } example_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(example_); example_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Schema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema.Builder.class); } public static final int JSON_SCHEMA_FIELD_NUMBER = 1; private grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema jsonSchema_; /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ public boolean hasJsonSchema() { return jsonSchema_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema getJsonSchema() { return jsonSchema_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.getDefaultInstance() : jsonSchema_; } /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchemaOrBuilder getJsonSchemaOrBuilder() { return getJsonSchema(); } public static final int DISCRIMINATOR_FIELD_NUMBER = 2; private volatile java.lang.Object discriminator_; /** * string discriminator = 2; */ public java.lang.String getDiscriminator() { java.lang.Object ref = discriminator_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discriminator_ = s; return s; } } /** * string discriminator = 2; */ public com.google.protobuf.ByteString getDiscriminatorBytes() { java.lang.Object ref = discriminator_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); discriminator_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READ_ONLY_FIELD_NUMBER = 3; private boolean readOnly_; /** * bool read_only = 3; */ public boolean getReadOnly() { return readOnly_; } public static final int EXTERNAL_DOCS_FIELD_NUMBER = 5; private grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation externalDocs_; /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ public boolean hasExternalDocs() { return externalDocs_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getExternalDocs() { return externalDocs_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { return getExternalDocs(); } public static final int EXAMPLE_FIELD_NUMBER = 6; private com.google.protobuf.Any example_; /** * .google.protobuf.Any example = 6; */ public boolean hasExample() { return example_ != null; } /** * .google.protobuf.Any example = 6; */ public com.google.protobuf.Any getExample() { return example_ == null ? com.google.protobuf.Any.getDefaultInstance() : example_; } /** * .google.protobuf.Any example = 6; */ public com.google.protobuf.AnyOrBuilder getExampleOrBuilder() { return getExample(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (jsonSchema_ != null) { output.writeMessage(1, getJsonSchema()); } if (!getDiscriminatorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, discriminator_); } if (readOnly_ != false) { output.writeBool(3, readOnly_); } if (externalDocs_ != null) { output.writeMessage(5, getExternalDocs()); } if (example_ != null) { output.writeMessage(6, getExample()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (jsonSchema_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getJsonSchema()); } if (!getDiscriminatorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, discriminator_); } if (readOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, readOnly_); } if (externalDocs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getExternalDocs()); } if (example_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getExample()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema)) { return super.equals(obj); } grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema other = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema) obj; if (hasJsonSchema() != other.hasJsonSchema()) return false; if (hasJsonSchema()) { if (!getJsonSchema() .equals(other.getJsonSchema())) return false; } if (!getDiscriminator() .equals(other.getDiscriminator())) return false; if (getReadOnly() != other.getReadOnly()) return false; if (hasExternalDocs() != other.hasExternalDocs()) return false; if (hasExternalDocs()) { if (!getExternalDocs() .equals(other.getExternalDocs())) return false; } if (hasExample() != other.hasExample()) return false; if (hasExample()) { if (!getExample() .equals(other.getExample())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasJsonSchema()) { hash = (37 * hash) + JSON_SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getJsonSchema().hashCode(); } hash = (37 * hash) + DISCRIMINATOR_FIELD_NUMBER; hash = (53 * hash) + getDiscriminator().hashCode(); hash = (37 * hash) + READ_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReadOnly()); if (hasExternalDocs()) { hash = (37 * hash) + EXTERNAL_DOCS_FIELD_NUMBER; hash = (53 * hash) + getExternalDocs().hashCode(); } if (hasExample()) { hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; hash = (53 * hash) + getExample().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * `Schema` is a representation of OpenAPI v2 specification's Schema object.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
     * TODO(ivucica): document fields
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.Schema} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_swagger.options.Schema) grpc.gateway.protoc_gen_swagger.options.Openapiv2.SchemaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Schema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema.Builder.class); } // Construct using grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (jsonSchemaBuilder_ == null) { jsonSchema_ = null; } else { jsonSchema_ = null; jsonSchemaBuilder_ = null; } discriminator_ = ""; readOnly_ = false; if (externalDocsBuilder_ == null) { externalDocs_ = null; } else { externalDocs_ = null; externalDocsBuilder_ = null; } if (exampleBuilder_ == null) { example_ = null; } else { example_ = null; exampleBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Schema_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema getDefaultInstanceForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema build() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema buildPartial() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema result = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema(this); if (jsonSchemaBuilder_ == null) { result.jsonSchema_ = jsonSchema_; } else { result.jsonSchema_ = jsonSchemaBuilder_.build(); } result.discriminator_ = discriminator_; result.readOnly_ = readOnly_; if (externalDocsBuilder_ == null) { result.externalDocs_ = externalDocs_; } else { result.externalDocs_ = externalDocsBuilder_.build(); } if (exampleBuilder_ == null) { result.example_ = example_; } else { result.example_ = exampleBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema) { return mergeFrom((grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema other) { if (other == grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema.getDefaultInstance()) return this; if (other.hasJsonSchema()) { mergeJsonSchema(other.getJsonSchema()); } if (!other.getDiscriminator().isEmpty()) { discriminator_ = other.discriminator_; onChanged(); } if (other.getReadOnly() != false) { setReadOnly(other.getReadOnly()); } if (other.hasExternalDocs()) { mergeExternalDocs(other.getExternalDocs()); } if (other.hasExample()) { mergeExample(other.getExample()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema jsonSchema_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema, grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchemaOrBuilder> jsonSchemaBuilder_; /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ public boolean hasJsonSchema() { return jsonSchemaBuilder_ != null || jsonSchema_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema getJsonSchema() { if (jsonSchemaBuilder_ == null) { return jsonSchema_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.getDefaultInstance() : jsonSchema_; } else { return jsonSchemaBuilder_.getMessage(); } } /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ public Builder setJsonSchema(grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema value) { if (jsonSchemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } jsonSchema_ = value; onChanged(); } else { jsonSchemaBuilder_.setMessage(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ public Builder setJsonSchema( grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.Builder builderForValue) { if (jsonSchemaBuilder_ == null) { jsonSchema_ = builderForValue.build(); onChanged(); } else { jsonSchemaBuilder_.setMessage(builderForValue.build()); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ public Builder mergeJsonSchema(grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema value) { if (jsonSchemaBuilder_ == null) { if (jsonSchema_ != null) { jsonSchema_ = grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.newBuilder(jsonSchema_).mergeFrom(value).buildPartial(); } else { jsonSchema_ = value; } onChanged(); } else { jsonSchemaBuilder_.mergeFrom(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ public Builder clearJsonSchema() { if (jsonSchemaBuilder_ == null) { jsonSchema_ = null; onChanged(); } else { jsonSchema_ = null; jsonSchemaBuilder_ = null; } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.Builder getJsonSchemaBuilder() { onChanged(); return getJsonSchemaFieldBuilder().getBuilder(); } /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchemaOrBuilder getJsonSchemaOrBuilder() { if (jsonSchemaBuilder_ != null) { return jsonSchemaBuilder_.getMessageOrBuilder(); } else { return jsonSchema_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.getDefaultInstance() : jsonSchema_; } } /** * .grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema, grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchemaOrBuilder> getJsonSchemaFieldBuilder() { if (jsonSchemaBuilder_ == null) { jsonSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema, grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchemaOrBuilder>( getJsonSchema(), getParentForChildren(), isClean()); jsonSchema_ = null; } return jsonSchemaBuilder_; } private java.lang.Object discriminator_ = ""; /** * string discriminator = 2; */ public java.lang.String getDiscriminator() { java.lang.Object ref = discriminator_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discriminator_ = s; return s; } else { return (java.lang.String) ref; } } /** * string discriminator = 2; */ public com.google.protobuf.ByteString getDiscriminatorBytes() { java.lang.Object ref = discriminator_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); discriminator_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string discriminator = 2; */ public Builder setDiscriminator( java.lang.String value) { if (value == null) { throw new NullPointerException(); } discriminator_ = value; onChanged(); return this; } /** * string discriminator = 2; */ public Builder clearDiscriminator() { discriminator_ = getDefaultInstance().getDiscriminator(); onChanged(); return this; } /** * string discriminator = 2; */ public Builder setDiscriminatorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); discriminator_ = value; onChanged(); return this; } private boolean readOnly_ ; /** * bool read_only = 3; */ public boolean getReadOnly() { return readOnly_; } /** * bool read_only = 3; */ public Builder setReadOnly(boolean value) { readOnly_ = value; onChanged(); return this; } /** * bool read_only = 3; */ public Builder clearReadOnly() { readOnly_ = false; onChanged(); return this; } private grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation externalDocs_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder> externalDocsBuilder_; /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ public boolean hasExternalDocs() { return externalDocsBuilder_ != null || externalDocs_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getExternalDocs() { if (externalDocsBuilder_ == null) { return externalDocs_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } else { return externalDocsBuilder_.getMessage(); } } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ public Builder setExternalDocs(grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } externalDocs_ = value; onChanged(); } else { externalDocsBuilder_.setMessage(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ public Builder setExternalDocs( grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder builderForValue) { if (externalDocsBuilder_ == null) { externalDocs_ = builderForValue.build(); onChanged(); } else { externalDocsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ public Builder mergeExternalDocs(grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (externalDocs_ != null) { externalDocs_ = grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.newBuilder(externalDocs_).mergeFrom(value).buildPartial(); } else { externalDocs_ = value; } onChanged(); } else { externalDocsBuilder_.mergeFrom(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ public Builder clearExternalDocs() { if (externalDocsBuilder_ == null) { externalDocs_ = null; onChanged(); } else { externalDocs_ = null; externalDocsBuilder_ = null; } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder getExternalDocsBuilder() { onChanged(); return getExternalDocsFieldBuilder().getBuilder(); } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { if (externalDocsBuilder_ != null) { return externalDocsBuilder_.getMessageOrBuilder(); } else { return externalDocs_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder> getExternalDocsFieldBuilder() { if (externalDocsBuilder_ == null) { externalDocsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder>( getExternalDocs(), getParentForChildren(), isClean()); externalDocs_ = null; } return externalDocsBuilder_; } private com.google.protobuf.Any example_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> exampleBuilder_; /** * .google.protobuf.Any example = 6; */ public boolean hasExample() { return exampleBuilder_ != null || example_ != null; } /** * .google.protobuf.Any example = 6; */ public com.google.protobuf.Any getExample() { if (exampleBuilder_ == null) { return example_ == null ? com.google.protobuf.Any.getDefaultInstance() : example_; } else { return exampleBuilder_.getMessage(); } } /** * .google.protobuf.Any example = 6; */ public Builder setExample(com.google.protobuf.Any value) { if (exampleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } example_ = value; onChanged(); } else { exampleBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Any example = 6; */ public Builder setExample( com.google.protobuf.Any.Builder builderForValue) { if (exampleBuilder_ == null) { example_ = builderForValue.build(); onChanged(); } else { exampleBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Any example = 6; */ public Builder mergeExample(com.google.protobuf.Any value) { if (exampleBuilder_ == null) { if (example_ != null) { example_ = com.google.protobuf.Any.newBuilder(example_).mergeFrom(value).buildPartial(); } else { example_ = value; } onChanged(); } else { exampleBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Any example = 6; */ public Builder clearExample() { if (exampleBuilder_ == null) { example_ = null; onChanged(); } else { example_ = null; exampleBuilder_ = null; } return this; } /** * .google.protobuf.Any example = 6; */ public com.google.protobuf.Any.Builder getExampleBuilder() { onChanged(); return getExampleFieldBuilder().getBuilder(); } /** * .google.protobuf.Any example = 6; */ public com.google.protobuf.AnyOrBuilder getExampleOrBuilder() { if (exampleBuilder_ != null) { return exampleBuilder_.getMessageOrBuilder(); } else { return example_ == null ? com.google.protobuf.Any.getDefaultInstance() : example_; } } /** * .google.protobuf.Any example = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getExampleFieldBuilder() { if (exampleBuilder_ == null) { exampleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getExample(), getParentForChildren(), isClean()); example_ = null; } return exampleBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.gateway.protoc_gen_swagger.options.Schema) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Schema) private static final grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema(); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Schema parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Schema(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface JSONSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_swagger.options.JSONSchema) com.google.protobuf.MessageOrBuilder { /** * string title = 5; */ java.lang.String getTitle(); /** * string title = 5; */ com.google.protobuf.ByteString getTitleBytes(); /** * string description = 6; */ java.lang.String getDescription(); /** * string description = 6; */ com.google.protobuf.ByteString getDescriptionBytes(); /** * string default = 7; */ java.lang.String getDefault(); /** * string default = 7; */ com.google.protobuf.ByteString getDefaultBytes(); /** * double multiple_of = 10; */ double getMultipleOf(); /** * double maximum = 11; */ double getMaximum(); /** * bool exclusive_maximum = 12; */ boolean getExclusiveMaximum(); /** * double minimum = 13; */ double getMinimum(); /** * bool exclusive_minimum = 14; */ boolean getExclusiveMinimum(); /** * uint64 max_length = 15; */ long getMaxLength(); /** * uint64 min_length = 16; */ long getMinLength(); /** * string pattern = 17; */ java.lang.String getPattern(); /** * string pattern = 17; */ com.google.protobuf.ByteString getPatternBytes(); /** * uint64 max_items = 20; */ long getMaxItems(); /** * uint64 min_items = 21; */ long getMinItems(); /** * bool unique_items = 22; */ boolean getUniqueItems(); /** * uint64 max_properties = 24; */ long getMaxProperties(); /** * uint64 min_properties = 25; */ long getMinProperties(); /** * repeated string required = 26; */ java.util.List getRequiredList(); /** * repeated string required = 26; */ int getRequiredCount(); /** * repeated string required = 26; */ java.lang.String getRequired(int index); /** * repeated string required = 26; */ com.google.protobuf.ByteString getRequiredBytes(int index); /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; */ java.util.List getArrayList(); /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; */ int getArrayCount(); /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; */ java.lang.String getArray(int index); /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; */ com.google.protobuf.ByteString getArrayBytes(int index); /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ java.util.List getTypeList(); /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ int getTypeCount(); /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes getType(int index); /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ java.util.List getTypeValueList(); /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ int getTypeValue(int index); } /** *
   * `JSONSchema` represents properties from JSON Schema taken, and as used, in
   * the OpenAPI v2 spec.
   * This includes changes made by OpenAPI v2.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
   * See also: https://cswr.github.io/JsonSchema/spec/basic_types/,
   * https://github.com/json-schema-org/json-schema-spec/blob/master/schema.json
   * TODO(ivucica): document fields
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.JSONSchema} */ public static final class JSONSchema extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_swagger.options.JSONSchema) JSONSchemaOrBuilder { private static final long serialVersionUID = 0L; // Use JSONSchema.newBuilder() to construct. private JSONSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private JSONSchema() { title_ = ""; description_ = ""; default_ = ""; pattern_ = ""; required_ = com.google.protobuf.LazyStringArrayList.EMPTY; array_ = com.google.protobuf.LazyStringArrayList.EMPTY; type_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private JSONSchema( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 42: { java.lang.String s = input.readStringRequireUtf8(); title_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); default_ = s; break; } case 81: { multipleOf_ = input.readDouble(); break; } case 89: { maximum_ = input.readDouble(); break; } case 96: { exclusiveMaximum_ = input.readBool(); break; } case 105: { minimum_ = input.readDouble(); break; } case 112: { exclusiveMinimum_ = input.readBool(); break; } case 120: { maxLength_ = input.readUInt64(); break; } case 128: { minLength_ = input.readUInt64(); break; } case 138: { java.lang.String s = input.readStringRequireUtf8(); pattern_ = s; break; } case 160: { maxItems_ = input.readUInt64(); break; } case 168: { minItems_ = input.readUInt64(); break; } case 176: { uniqueItems_ = input.readBool(); break; } case 192: { maxProperties_ = input.readUInt64(); break; } case 200: { minProperties_ = input.readUInt64(); break; } case 210: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00010000) != 0)) { required_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00010000; } required_.add(s); break; } case 274: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00020000) != 0)) { array_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00020000; } array_.add(s); break; } case 280: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00040000) != 0)) { type_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00040000; } type_.add(rawValue); break; } case 282: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00040000) != 0)) { type_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00040000; } type_.add(rawValue); } input.popLimit(oldLimit); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00010000) != 0)) { required_ = required_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00020000) != 0)) { array_ = array_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00040000) != 0)) { type_ = java.util.Collections.unmodifiableList(type_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_JSONSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_JSONSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.Builder.class); } /** * Protobuf enum {@code grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes} */ public enum JSONSchemaSimpleTypes implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * ARRAY = 1; */ ARRAY(1), /** * BOOLEAN = 2; */ BOOLEAN(2), /** * INTEGER = 3; */ INTEGER(3), /** * NULL = 4; */ NULL(4), /** * NUMBER = 5; */ NUMBER(5), /** * OBJECT = 6; */ OBJECT(6), /** * STRING = 7; */ STRING(7), UNRECOGNIZED(-1), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * ARRAY = 1; */ public static final int ARRAY_VALUE = 1; /** * BOOLEAN = 2; */ public static final int BOOLEAN_VALUE = 2; /** * INTEGER = 3; */ public static final int INTEGER_VALUE = 3; /** * NULL = 4; */ public static final int NULL_VALUE = 4; /** * NUMBER = 5; */ public static final int NUMBER_VALUE = 5; /** * OBJECT = 6; */ public static final int OBJECT_VALUE = 6; /** * STRING = 7; */ public static final int STRING_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static JSONSchemaSimpleTypes valueOf(int value) { return forNumber(value); } public static JSONSchemaSimpleTypes forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return ARRAY; case 2: return BOOLEAN; case 3: return INTEGER; case 4: return NULL; case 5: return NUMBER; case 6: return OBJECT; case 7: return STRING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< JSONSchemaSimpleTypes> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public JSONSchemaSimpleTypes findValueByNumber(int number) { return JSONSchemaSimpleTypes.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.getDescriptor().getEnumTypes().get(0); } private static final JSONSchemaSimpleTypes[] VALUES = values(); public static JSONSchemaSimpleTypes valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private JSONSchemaSimpleTypes(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes) } private int bitField0_; public static final int TITLE_FIELD_NUMBER = 5; private volatile java.lang.Object title_; /** * string title = 5; */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** * string title = 5; */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** * string description = 6; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** * string description = 6; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_FIELD_NUMBER = 7; private volatile java.lang.Object default_; /** * string default = 7; */ public java.lang.String getDefault() { java.lang.Object ref = default_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); default_ = s; return s; } } /** * string default = 7; */ public com.google.protobuf.ByteString getDefaultBytes() { java.lang.Object ref = default_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); default_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MULTIPLE_OF_FIELD_NUMBER = 10; private double multipleOf_; /** * double multiple_of = 10; */ public double getMultipleOf() { return multipleOf_; } public static final int MAXIMUM_FIELD_NUMBER = 11; private double maximum_; /** * double maximum = 11; */ public double getMaximum() { return maximum_; } public static final int EXCLUSIVE_MAXIMUM_FIELD_NUMBER = 12; private boolean exclusiveMaximum_; /** * bool exclusive_maximum = 12; */ public boolean getExclusiveMaximum() { return exclusiveMaximum_; } public static final int MINIMUM_FIELD_NUMBER = 13; private double minimum_; /** * double minimum = 13; */ public double getMinimum() { return minimum_; } public static final int EXCLUSIVE_MINIMUM_FIELD_NUMBER = 14; private boolean exclusiveMinimum_; /** * bool exclusive_minimum = 14; */ public boolean getExclusiveMinimum() { return exclusiveMinimum_; } public static final int MAX_LENGTH_FIELD_NUMBER = 15; private long maxLength_; /** * uint64 max_length = 15; */ public long getMaxLength() { return maxLength_; } public static final int MIN_LENGTH_FIELD_NUMBER = 16; private long minLength_; /** * uint64 min_length = 16; */ public long getMinLength() { return minLength_; } public static final int PATTERN_FIELD_NUMBER = 17; private volatile java.lang.Object pattern_; /** * string pattern = 17; */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pattern_ = s; return s; } } /** * string pattern = 17; */ public com.google.protobuf.ByteString getPatternBytes() { java.lang.Object ref = pattern_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAX_ITEMS_FIELD_NUMBER = 20; private long maxItems_; /** * uint64 max_items = 20; */ public long getMaxItems() { return maxItems_; } public static final int MIN_ITEMS_FIELD_NUMBER = 21; private long minItems_; /** * uint64 min_items = 21; */ public long getMinItems() { return minItems_; } public static final int UNIQUE_ITEMS_FIELD_NUMBER = 22; private boolean uniqueItems_; /** * bool unique_items = 22; */ public boolean getUniqueItems() { return uniqueItems_; } public static final int MAX_PROPERTIES_FIELD_NUMBER = 24; private long maxProperties_; /** * uint64 max_properties = 24; */ public long getMaxProperties() { return maxProperties_; } public static final int MIN_PROPERTIES_FIELD_NUMBER = 25; private long minProperties_; /** * uint64 min_properties = 25; */ public long getMinProperties() { return minProperties_; } public static final int REQUIRED_FIELD_NUMBER = 26; private com.google.protobuf.LazyStringList required_; /** * repeated string required = 26; */ public com.google.protobuf.ProtocolStringList getRequiredList() { return required_; } /** * repeated string required = 26; */ public int getRequiredCount() { return required_.size(); } /** * repeated string required = 26; */ public java.lang.String getRequired(int index) { return required_.get(index); } /** * repeated string required = 26; */ public com.google.protobuf.ByteString getRequiredBytes(int index) { return required_.getByteString(index); } public static final int ARRAY_FIELD_NUMBER = 34; private com.google.protobuf.LazyStringList array_; /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; */ public com.google.protobuf.ProtocolStringList getArrayList() { return array_; } /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; */ public int getArrayCount() { return array_.size(); } /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; */ public java.lang.String getArray(int index) { return array_.get(index); } /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; */ public com.google.protobuf.ByteString getArrayBytes(int index) { return array_.getByteString(index); } public static final int TYPE_FIELD_NUMBER = 35; private java.util.List type_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes> type_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes>() { public grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes convert(java.lang.Integer from) { @SuppressWarnings("deprecation") grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes result = grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes.valueOf(from); return result == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes.UNRECOGNIZED : result; } }; /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public java.util.List getTypeList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes>(type_, type_converter_); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public int getTypeCount() { return type_.size(); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes getType(int index) { return type_converter_.convert(type_.get(index)); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public java.util.List getTypeValueList() { return type_; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public int getTypeValue(int index) { return type_.get(index); } private int typeMemoizedSerializedSize; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!getTitleBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, title_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } if (!getDefaultBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, default_); } if (multipleOf_ != 0D) { output.writeDouble(10, multipleOf_); } if (maximum_ != 0D) { output.writeDouble(11, maximum_); } if (exclusiveMaximum_ != false) { output.writeBool(12, exclusiveMaximum_); } if (minimum_ != 0D) { output.writeDouble(13, minimum_); } if (exclusiveMinimum_ != false) { output.writeBool(14, exclusiveMinimum_); } if (maxLength_ != 0L) { output.writeUInt64(15, maxLength_); } if (minLength_ != 0L) { output.writeUInt64(16, minLength_); } if (!getPatternBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, pattern_); } if (maxItems_ != 0L) { output.writeUInt64(20, maxItems_); } if (minItems_ != 0L) { output.writeUInt64(21, minItems_); } if (uniqueItems_ != false) { output.writeBool(22, uniqueItems_); } if (maxProperties_ != 0L) { output.writeUInt64(24, maxProperties_); } if (minProperties_ != 0L) { output.writeUInt64(25, minProperties_); } for (int i = 0; i < required_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, required_.getRaw(i)); } for (int i = 0; i < array_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 34, array_.getRaw(i)); } if (getTypeList().size() > 0) { output.writeUInt32NoTag(282); output.writeUInt32NoTag(typeMemoizedSerializedSize); } for (int i = 0; i < type_.size(); i++) { output.writeEnumNoTag(type_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTitleBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, title_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } if (!getDefaultBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, default_); } if (multipleOf_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(10, multipleOf_); } if (maximum_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(11, maximum_); } if (exclusiveMaximum_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, exclusiveMaximum_); } if (minimum_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(13, minimum_); } if (exclusiveMinimum_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, exclusiveMinimum_); } if (maxLength_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(15, maxLength_); } if (minLength_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(16, minLength_); } if (!getPatternBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, pattern_); } if (maxItems_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(20, maxItems_); } if (minItems_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(21, minItems_); } if (uniqueItems_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(22, uniqueItems_); } if (maxProperties_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(24, maxProperties_); } if (minProperties_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(25, minProperties_); } { int dataSize = 0; for (int i = 0; i < required_.size(); i++) { dataSize += computeStringSizeNoTag(required_.getRaw(i)); } size += dataSize; size += 2 * getRequiredList().size(); } { int dataSize = 0; for (int i = 0; i < array_.size(); i++) { dataSize += computeStringSizeNoTag(array_.getRaw(i)); } size += dataSize; size += 2 * getArrayList().size(); } { int dataSize = 0; for (int i = 0; i < type_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(type_.get(i)); } size += dataSize; if (!getTypeList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }typeMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema)) { return super.equals(obj); } grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema other = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema) obj; if (!getTitle() .equals(other.getTitle())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getDefault() .equals(other.getDefault())) return false; if (java.lang.Double.doubleToLongBits(getMultipleOf()) != java.lang.Double.doubleToLongBits( other.getMultipleOf())) return false; if (java.lang.Double.doubleToLongBits(getMaximum()) != java.lang.Double.doubleToLongBits( other.getMaximum())) return false; if (getExclusiveMaximum() != other.getExclusiveMaximum()) return false; if (java.lang.Double.doubleToLongBits(getMinimum()) != java.lang.Double.doubleToLongBits( other.getMinimum())) return false; if (getExclusiveMinimum() != other.getExclusiveMinimum()) return false; if (getMaxLength() != other.getMaxLength()) return false; if (getMinLength() != other.getMinLength()) return false; if (!getPattern() .equals(other.getPattern())) return false; if (getMaxItems() != other.getMaxItems()) return false; if (getMinItems() != other.getMinItems()) return false; if (getUniqueItems() != other.getUniqueItems()) return false; if (getMaxProperties() != other.getMaxProperties()) return false; if (getMinProperties() != other.getMinProperties()) return false; if (!getRequiredList() .equals(other.getRequiredList())) return false; if (!getArrayList() .equals(other.getArrayList())) return false; if (!type_.equals(other.type_)) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + DEFAULT_FIELD_NUMBER; hash = (53 * hash) + getDefault().hashCode(); hash = (37 * hash) + MULTIPLE_OF_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMultipleOf())); hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMaximum())); hash = (37 * hash) + EXCLUSIVE_MAXIMUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getExclusiveMaximum()); hash = (37 * hash) + MINIMUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMinimum())); hash = (37 * hash) + EXCLUSIVE_MINIMUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getExclusiveMinimum()); hash = (37 * hash) + MAX_LENGTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxLength()); hash = (37 * hash) + MIN_LENGTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinLength()); hash = (37 * hash) + PATTERN_FIELD_NUMBER; hash = (53 * hash) + getPattern().hashCode(); hash = (37 * hash) + MAX_ITEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxItems()); hash = (37 * hash) + MIN_ITEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinItems()); hash = (37 * hash) + UNIQUE_ITEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUniqueItems()); hash = (37 * hash) + MAX_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxProperties()); hash = (37 * hash) + MIN_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinProperties()); if (getRequiredCount() > 0) { hash = (37 * hash) + REQUIRED_FIELD_NUMBER; hash = (53 * hash) + getRequiredList().hashCode(); } if (getArrayCount() > 0) { hash = (37 * hash) + ARRAY_FIELD_NUMBER; hash = (53 * hash) + getArrayList().hashCode(); } if (getTypeCount() > 0) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_.hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * `JSONSchema` represents properties from JSON Schema taken, and as used, in
     * the OpenAPI v2 spec.
     * This includes changes made by OpenAPI v2.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
     * See also: https://cswr.github.io/JsonSchema/spec/basic_types/,
     * https://github.com/json-schema-org/json-schema-spec/blob/master/schema.json
     * TODO(ivucica): document fields
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.JSONSchema} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_swagger.options.JSONSchema) grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchemaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_JSONSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_JSONSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.Builder.class); } // Construct using grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); title_ = ""; description_ = ""; default_ = ""; multipleOf_ = 0D; maximum_ = 0D; exclusiveMaximum_ = false; minimum_ = 0D; exclusiveMinimum_ = false; maxLength_ = 0L; minLength_ = 0L; pattern_ = ""; maxItems_ = 0L; minItems_ = 0L; uniqueItems_ = false; maxProperties_ = 0L; minProperties_ = 0L; required_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00010000); array_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00020000); type_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_JSONSchema_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema getDefaultInstanceForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema build() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema buildPartial() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema result = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.title_ = title_; result.description_ = description_; result.default_ = default_; result.multipleOf_ = multipleOf_; result.maximum_ = maximum_; result.exclusiveMaximum_ = exclusiveMaximum_; result.minimum_ = minimum_; result.exclusiveMinimum_ = exclusiveMinimum_; result.maxLength_ = maxLength_; result.minLength_ = minLength_; result.pattern_ = pattern_; result.maxItems_ = maxItems_; result.minItems_ = minItems_; result.uniqueItems_ = uniqueItems_; result.maxProperties_ = maxProperties_; result.minProperties_ = minProperties_; if (((bitField0_ & 0x00010000) != 0)) { required_ = required_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00010000); } result.required_ = required_; if (((bitField0_ & 0x00020000) != 0)) { array_ = array_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00020000); } result.array_ = array_; if (((bitField0_ & 0x00040000) != 0)) { type_ = java.util.Collections.unmodifiableList(type_); bitField0_ = (bitField0_ & ~0x00040000); } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema) { return mergeFrom((grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema other) { if (other == grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.getDefaultInstance()) return this; if (!other.getTitle().isEmpty()) { title_ = other.title_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getDefault().isEmpty()) { default_ = other.default_; onChanged(); } if (other.getMultipleOf() != 0D) { setMultipleOf(other.getMultipleOf()); } if (other.getMaximum() != 0D) { setMaximum(other.getMaximum()); } if (other.getExclusiveMaximum() != false) { setExclusiveMaximum(other.getExclusiveMaximum()); } if (other.getMinimum() != 0D) { setMinimum(other.getMinimum()); } if (other.getExclusiveMinimum() != false) { setExclusiveMinimum(other.getExclusiveMinimum()); } if (other.getMaxLength() != 0L) { setMaxLength(other.getMaxLength()); } if (other.getMinLength() != 0L) { setMinLength(other.getMinLength()); } if (!other.getPattern().isEmpty()) { pattern_ = other.pattern_; onChanged(); } if (other.getMaxItems() != 0L) { setMaxItems(other.getMaxItems()); } if (other.getMinItems() != 0L) { setMinItems(other.getMinItems()); } if (other.getUniqueItems() != false) { setUniqueItems(other.getUniqueItems()); } if (other.getMaxProperties() != 0L) { setMaxProperties(other.getMaxProperties()); } if (other.getMinProperties() != 0L) { setMinProperties(other.getMinProperties()); } if (!other.required_.isEmpty()) { if (required_.isEmpty()) { required_ = other.required_; bitField0_ = (bitField0_ & ~0x00010000); } else { ensureRequiredIsMutable(); required_.addAll(other.required_); } onChanged(); } if (!other.array_.isEmpty()) { if (array_.isEmpty()) { array_ = other.array_; bitField0_ = (bitField0_ & ~0x00020000); } else { ensureArrayIsMutable(); array_.addAll(other.array_); } onChanged(); } if (!other.type_.isEmpty()) { if (type_.isEmpty()) { type_ = other.type_; bitField0_ = (bitField0_ & ~0x00040000); } else { ensureTypeIsMutable(); type_.addAll(other.type_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object title_ = ""; /** * string title = 5; */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } else { return (java.lang.String) ref; } } /** * string title = 5; */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string title = 5; */ public Builder setTitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } title_ = value; onChanged(); return this; } /** * string title = 5; */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** * string title = 5; */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** * string description = 6; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * string description = 6; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string description = 6; */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** * string description = 6; */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * string description = 6; */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object default_ = ""; /** * string default = 7; */ public java.lang.String getDefault() { java.lang.Object ref = default_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); default_ = s; return s; } else { return (java.lang.String) ref; } } /** * string default = 7; */ public com.google.protobuf.ByteString getDefaultBytes() { java.lang.Object ref = default_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); default_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string default = 7; */ public Builder setDefault( java.lang.String value) { if (value == null) { throw new NullPointerException(); } default_ = value; onChanged(); return this; } /** * string default = 7; */ public Builder clearDefault() { default_ = getDefaultInstance().getDefault(); onChanged(); return this; } /** * string default = 7; */ public Builder setDefaultBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); default_ = value; onChanged(); return this; } private double multipleOf_ ; /** * double multiple_of = 10; */ public double getMultipleOf() { return multipleOf_; } /** * double multiple_of = 10; */ public Builder setMultipleOf(double value) { multipleOf_ = value; onChanged(); return this; } /** * double multiple_of = 10; */ public Builder clearMultipleOf() { multipleOf_ = 0D; onChanged(); return this; } private double maximum_ ; /** * double maximum = 11; */ public double getMaximum() { return maximum_; } /** * double maximum = 11; */ public Builder setMaximum(double value) { maximum_ = value; onChanged(); return this; } /** * double maximum = 11; */ public Builder clearMaximum() { maximum_ = 0D; onChanged(); return this; } private boolean exclusiveMaximum_ ; /** * bool exclusive_maximum = 12; */ public boolean getExclusiveMaximum() { return exclusiveMaximum_; } /** * bool exclusive_maximum = 12; */ public Builder setExclusiveMaximum(boolean value) { exclusiveMaximum_ = value; onChanged(); return this; } /** * bool exclusive_maximum = 12; */ public Builder clearExclusiveMaximum() { exclusiveMaximum_ = false; onChanged(); return this; } private double minimum_ ; /** * double minimum = 13; */ public double getMinimum() { return minimum_; } /** * double minimum = 13; */ public Builder setMinimum(double value) { minimum_ = value; onChanged(); return this; } /** * double minimum = 13; */ public Builder clearMinimum() { minimum_ = 0D; onChanged(); return this; } private boolean exclusiveMinimum_ ; /** * bool exclusive_minimum = 14; */ public boolean getExclusiveMinimum() { return exclusiveMinimum_; } /** * bool exclusive_minimum = 14; */ public Builder setExclusiveMinimum(boolean value) { exclusiveMinimum_ = value; onChanged(); return this; } /** * bool exclusive_minimum = 14; */ public Builder clearExclusiveMinimum() { exclusiveMinimum_ = false; onChanged(); return this; } private long maxLength_ ; /** * uint64 max_length = 15; */ public long getMaxLength() { return maxLength_; } /** * uint64 max_length = 15; */ public Builder setMaxLength(long value) { maxLength_ = value; onChanged(); return this; } /** * uint64 max_length = 15; */ public Builder clearMaxLength() { maxLength_ = 0L; onChanged(); return this; } private long minLength_ ; /** * uint64 min_length = 16; */ public long getMinLength() { return minLength_; } /** * uint64 min_length = 16; */ public Builder setMinLength(long value) { minLength_ = value; onChanged(); return this; } /** * uint64 min_length = 16; */ public Builder clearMinLength() { minLength_ = 0L; onChanged(); return this; } private java.lang.Object pattern_ = ""; /** * string pattern = 17; */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pattern_ = s; return s; } else { return (java.lang.String) ref; } } /** * string pattern = 17; */ public com.google.protobuf.ByteString getPatternBytes() { java.lang.Object ref = pattern_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string pattern = 17; */ public Builder setPattern( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pattern_ = value; onChanged(); return this; } /** * string pattern = 17; */ public Builder clearPattern() { pattern_ = getDefaultInstance().getPattern(); onChanged(); return this; } /** * string pattern = 17; */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pattern_ = value; onChanged(); return this; } private long maxItems_ ; /** * uint64 max_items = 20; */ public long getMaxItems() { return maxItems_; } /** * uint64 max_items = 20; */ public Builder setMaxItems(long value) { maxItems_ = value; onChanged(); return this; } /** * uint64 max_items = 20; */ public Builder clearMaxItems() { maxItems_ = 0L; onChanged(); return this; } private long minItems_ ; /** * uint64 min_items = 21; */ public long getMinItems() { return minItems_; } /** * uint64 min_items = 21; */ public Builder setMinItems(long value) { minItems_ = value; onChanged(); return this; } /** * uint64 min_items = 21; */ public Builder clearMinItems() { minItems_ = 0L; onChanged(); return this; } private boolean uniqueItems_ ; /** * bool unique_items = 22; */ public boolean getUniqueItems() { return uniqueItems_; } /** * bool unique_items = 22; */ public Builder setUniqueItems(boolean value) { uniqueItems_ = value; onChanged(); return this; } /** * bool unique_items = 22; */ public Builder clearUniqueItems() { uniqueItems_ = false; onChanged(); return this; } private long maxProperties_ ; /** * uint64 max_properties = 24; */ public long getMaxProperties() { return maxProperties_; } /** * uint64 max_properties = 24; */ public Builder setMaxProperties(long value) { maxProperties_ = value; onChanged(); return this; } /** * uint64 max_properties = 24; */ public Builder clearMaxProperties() { maxProperties_ = 0L; onChanged(); return this; } private long minProperties_ ; /** * uint64 min_properties = 25; */ public long getMinProperties() { return minProperties_; } /** * uint64 min_properties = 25; */ public Builder setMinProperties(long value) { minProperties_ = value; onChanged(); return this; } /** * uint64 min_properties = 25; */ public Builder clearMinProperties() { minProperties_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringList required_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRequiredIsMutable() { if (!((bitField0_ & 0x00010000) != 0)) { required_ = new com.google.protobuf.LazyStringArrayList(required_); bitField0_ |= 0x00010000; } } /** * repeated string required = 26; */ public com.google.protobuf.ProtocolStringList getRequiredList() { return required_.getUnmodifiableView(); } /** * repeated string required = 26; */ public int getRequiredCount() { return required_.size(); } /** * repeated string required = 26; */ public java.lang.String getRequired(int index) { return required_.get(index); } /** * repeated string required = 26; */ public com.google.protobuf.ByteString getRequiredBytes(int index) { return required_.getByteString(index); } /** * repeated string required = 26; */ public Builder setRequired( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRequiredIsMutable(); required_.set(index, value); onChanged(); return this; } /** * repeated string required = 26; */ public Builder addRequired( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRequiredIsMutable(); required_.add(value); onChanged(); return this; } /** * repeated string required = 26; */ public Builder addAllRequired( java.lang.Iterable values) { ensureRequiredIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, required_); onChanged(); return this; } /** * repeated string required = 26; */ public Builder clearRequired() { required_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } /** * repeated string required = 26; */ public Builder addRequiredBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRequiredIsMutable(); required_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList array_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArrayIsMutable() { if (!((bitField0_ & 0x00020000) != 0)) { array_ = new com.google.protobuf.LazyStringArrayList(array_); bitField0_ |= 0x00020000; } } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; */ public com.google.protobuf.ProtocolStringList getArrayList() { return array_.getUnmodifiableView(); } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; */ public int getArrayCount() { return array_.size(); } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; */ public java.lang.String getArray(int index) { return array_.get(index); } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; */ public com.google.protobuf.ByteString getArrayBytes(int index) { return array_.getByteString(index); } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; */ public Builder setArray( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArrayIsMutable(); array_.set(index, value); onChanged(); return this; } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; */ public Builder addArray( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArrayIsMutable(); array_.add(value); onChanged(); return this; } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; */ public Builder addAllArray( java.lang.Iterable values) { ensureArrayIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, array_); onChanged(); return this; } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; */ public Builder clearArray() { array_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; */ public Builder addArrayBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureArrayIsMutable(); array_.add(value); onChanged(); return this; } private java.util.List type_ = java.util.Collections.emptyList(); private void ensureTypeIsMutable() { if (!((bitField0_ & 0x00040000) != 0)) { type_ = new java.util.ArrayList(type_); bitField0_ |= 0x00040000; } } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public java.util.List getTypeList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes>(type_, type_converter_); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public int getTypeCount() { return type_.size(); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes getType(int index) { return type_converter_.convert(type_.get(index)); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public Builder setType( int index, grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes value) { if (value == null) { throw new NullPointerException(); } ensureTypeIsMutable(); type_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public Builder addType(grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes value) { if (value == null) { throw new NullPointerException(); } ensureTypeIsMutable(); type_.add(value.getNumber()); onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public Builder addAllType( java.lang.Iterable values) { ensureTypeIsMutable(); for (grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes value : values) { type_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public Builder clearType() { type_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public java.util.List getTypeValueList() { return java.util.Collections.unmodifiableList(type_); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public int getTypeValue(int index) { return type_.get(index); } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public Builder setTypeValue( int index, int value) { ensureTypeIsMutable(); type_.set(index, value); onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public Builder addTypeValue(int value) { ensureTypeIsMutable(); type_.add(value); onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35; */ public Builder addAllTypeValue( java.lang.Iterable values) { ensureTypeIsMutable(); for (int value : values) { type_.add(value); } onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.gateway.protoc_gen_swagger.options.JSONSchema) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.JSONSchema) private static final grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema(); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public JSONSchema parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new JSONSchema(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.JSONSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TagOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_swagger.options.Tag) com.google.protobuf.MessageOrBuilder { /** *
     * TODO(ivucica): Description should be extracted from comments on the proto
     * service object.
     * 
* * string description = 2; */ java.lang.String getDescription(); /** *
     * TODO(ivucica): Description should be extracted from comments on the proto
     * service object.
     * 
* * string description = 2; */ com.google.protobuf.ByteString getDescriptionBytes(); /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ boolean hasExternalDocs(); /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getExternalDocs(); /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder(); } /** *
   * `Tag` is a representation of OpenAPI v2 specification's Tag object.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#tagObject
   * TODO(ivucica): document fields
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.Tag} */ public static final class Tag extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_swagger.options.Tag) TagOrBuilder { private static final long serialVersionUID = 0L; // Use Tag.newBuilder() to construct. private Tag(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Tag() { description_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Tag( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 26: { grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder subBuilder = null; if (externalDocs_ != null) { subBuilder = externalDocs_.toBuilder(); } externalDocs_ = input.readMessage(grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(externalDocs_); externalDocs_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Tag_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Tag_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag.Builder.class); } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** *
     * TODO(ivucica): Description should be extracted from comments on the proto
     * service object.
     * 
* * string description = 2; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * TODO(ivucica): Description should be extracted from comments on the proto
     * service object.
     * 
* * string description = 2; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXTERNAL_DOCS_FIELD_NUMBER = 3; private grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation externalDocs_; /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ public boolean hasExternalDocs() { return externalDocs_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getExternalDocs() { return externalDocs_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { return getExternalDocs(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (externalDocs_ != null) { output.writeMessage(3, getExternalDocs()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (externalDocs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExternalDocs()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag)) { return super.equals(obj); } grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag other = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag) obj; if (!getDescription() .equals(other.getDescription())) return false; if (hasExternalDocs() != other.hasExternalDocs()) return false; if (hasExternalDocs()) { if (!getExternalDocs() .equals(other.getExternalDocs())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasExternalDocs()) { hash = (37 * hash) + EXTERNAL_DOCS_FIELD_NUMBER; hash = (53 * hash) + getExternalDocs().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * `Tag` is a representation of OpenAPI v2 specification's Tag object.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#tagObject
     * TODO(ivucica): document fields
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.Tag} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_swagger.options.Tag) grpc.gateway.protoc_gen_swagger.options.Openapiv2.TagOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Tag_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Tag_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag.Builder.class); } // Construct using grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); description_ = ""; if (externalDocsBuilder_ == null) { externalDocs_ = null; } else { externalDocs_ = null; externalDocsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Tag_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag getDefaultInstanceForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag build() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag buildPartial() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag result = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag(this); result.description_ = description_; if (externalDocsBuilder_ == null) { result.externalDocs_ = externalDocs_; } else { result.externalDocs_ = externalDocsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag) { return mergeFrom((grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag other) { if (other == grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.hasExternalDocs()) { mergeExternalDocs(other.getExternalDocs()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object description_ = ""; /** *
       * TODO(ivucica): Description should be extracted from comments on the proto
       * service object.
       * 
* * string description = 2; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * TODO(ivucica): Description should be extracted from comments on the proto
       * service object.
       * 
* * string description = 2; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * TODO(ivucica): Description should be extracted from comments on the proto
       * service object.
       * 
* * string description = 2; */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * TODO(ivucica): Description should be extracted from comments on the proto
       * service object.
       * 
* * string description = 2; */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * TODO(ivucica): Description should be extracted from comments on the proto
       * service object.
       * 
* * string description = 2; */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation externalDocs_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder> externalDocsBuilder_; /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ public boolean hasExternalDocs() { return externalDocsBuilder_ != null || externalDocs_ != null; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation getExternalDocs() { if (externalDocsBuilder_ == null) { return externalDocs_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } else { return externalDocsBuilder_.getMessage(); } } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ public Builder setExternalDocs(grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } externalDocs_ = value; onChanged(); } else { externalDocsBuilder_.setMessage(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ public Builder setExternalDocs( grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder builderForValue) { if (externalDocsBuilder_ == null) { externalDocs_ = builderForValue.build(); onChanged(); } else { externalDocsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ public Builder mergeExternalDocs(grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (externalDocs_ != null) { externalDocs_ = grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.newBuilder(externalDocs_).mergeFrom(value).buildPartial(); } else { externalDocs_ = value; } onChanged(); } else { externalDocsBuilder_.mergeFrom(value); } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ public Builder clearExternalDocs() { if (externalDocsBuilder_ == null) { externalDocs_ = null; onChanged(); } else { externalDocs_ = null; externalDocsBuilder_ = null; } return this; } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder getExternalDocsBuilder() { onChanged(); return getExternalDocsFieldBuilder().getBuilder(); } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { if (externalDocsBuilder_ != null) { return externalDocsBuilder_.getMessageOrBuilder(); } else { return externalDocs_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } } /** * .grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 3; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder> getExternalDocsFieldBuilder() { if (externalDocsBuilder_ == null) { externalDocsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ExternalDocumentationOrBuilder>( getExternalDocs(), getParentForChildren(), isClean()); externalDocs_ = null; } return externalDocsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.gateway.protoc_gen_swagger.options.Tag) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Tag) private static final grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag(); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Tag parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Tag(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Tag getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecurityDefinitionsOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions) com.google.protobuf.MessageOrBuilder { /** *
     * A single security scheme definition, mapping a "name" to the scheme it defines.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ int getSecurityCount(); /** *
     * A single security scheme definition, mapping a "name" to the scheme it defines.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ boolean containsSecurity( java.lang.String key); /** * Use {@link #getSecurityMap()} instead. */ @java.lang.Deprecated java.util.Map getSecurity(); /** *
     * A single security scheme definition, mapping a "name" to the scheme it defines.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ java.util.Map getSecurityMap(); /** *
     * A single security scheme definition, mapping a "name" to the scheme it defines.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme getSecurityOrDefault( java.lang.String key, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme defaultValue); /** *
     * A single security scheme definition, mapping a "name" to the scheme it defines.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme getSecurityOrThrow( java.lang.String key); } /** *
   * `SecurityDefinitions` is a representation of OpenAPI v2 specification's
   * Security Definitions object.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityDefinitionsObject
   * A declaration of the security schemes available to be used in the
   * specification. This does not enforce the security schemes on the operations
   * and only serves to provide the relevant details for each scheme.
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions} */ public static final class SecurityDefinitions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions) SecurityDefinitionsOrBuilder { private static final long serialVersionUID = 0L; // Use SecurityDefinitions.newBuilder() to construct. private SecurityDefinitions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecurityDefinitions() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SecurityDefinitions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { security_ = com.google.protobuf.MapField.newMapField( SecurityDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry security__ = input.readMessage( SecurityDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); security_.getMutableMap().put( security__.getKey(), security__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetSecurity(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.Builder.class); } public static final int SECURITY_FIELD_NUMBER = 1; private static final class SecurityDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_SecurityEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme> security_; private com.google.protobuf.MapField internalGetSecurity() { if (security_ == null) { return com.google.protobuf.MapField.emptyMapField( SecurityDefaultEntryHolder.defaultEntry); } return security_; } public int getSecurityCount() { return internalGetSecurity().getMap().size(); } /** *
     * A single security scheme definition, mapping a "name" to the scheme it defines.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ public boolean containsSecurity( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSecurity().getMap().containsKey(key); } /** * Use {@link #getSecurityMap()} instead. */ @java.lang.Deprecated public java.util.Map getSecurity() { return getSecurityMap(); } /** *
     * A single security scheme definition, mapping a "name" to the scheme it defines.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ public java.util.Map getSecurityMap() { return internalGetSecurity().getMap(); } /** *
     * A single security scheme definition, mapping a "name" to the scheme it defines.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme getSecurityOrDefault( java.lang.String key, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSecurity().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * A single security scheme definition, mapping a "name" to the scheme it defines.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme getSecurityOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSecurity().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetSecurity(), SecurityDefaultEntryHolder.defaultEntry, 1); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetSecurity().getMap().entrySet()) { com.google.protobuf.MapEntry security__ = SecurityDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, security__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions)) { return super.equals(obj); } grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions other = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions) obj; if (!internalGetSecurity().equals( other.internalGetSecurity())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetSecurity().getMap().isEmpty()) { hash = (37 * hash) + SECURITY_FIELD_NUMBER; hash = (53 * hash) + internalGetSecurity().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * `SecurityDefinitions` is a representation of OpenAPI v2 specification's
     * Security Definitions object.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityDefinitionsObject
     * A declaration of the security schemes available to be used in the
     * specification. This does not enforce the security schemes on the operations
     * and only serves to provide the relevant details for each scheme.
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions) grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetSecurity(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableSecurity(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.Builder.class); } // Construct using grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableSecurity().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions getDefaultInstanceForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions build() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions buildPartial() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions result = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions(this); int from_bitField0_ = bitField0_; result.security_ = internalGetSecurity(); result.security_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions) { return mergeFrom((grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions other) { if (other == grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions.getDefaultInstance()) return this; internalGetMutableSecurity().mergeFrom( other.internalGetSecurity()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme> security_; private com.google.protobuf.MapField internalGetSecurity() { if (security_ == null) { return com.google.protobuf.MapField.emptyMapField( SecurityDefaultEntryHolder.defaultEntry); } return security_; } private com.google.protobuf.MapField internalGetMutableSecurity() { onChanged();; if (security_ == null) { security_ = com.google.protobuf.MapField.newMapField( SecurityDefaultEntryHolder.defaultEntry); } if (!security_.isMutable()) { security_ = security_.copy(); } return security_; } public int getSecurityCount() { return internalGetSecurity().getMap().size(); } /** *
       * A single security scheme definition, mapping a "name" to the scheme it defines.
       * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ public boolean containsSecurity( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSecurity().getMap().containsKey(key); } /** * Use {@link #getSecurityMap()} instead. */ @java.lang.Deprecated public java.util.Map getSecurity() { return getSecurityMap(); } /** *
       * A single security scheme definition, mapping a "name" to the scheme it defines.
       * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ public java.util.Map getSecurityMap() { return internalGetSecurity().getMap(); } /** *
       * A single security scheme definition, mapping a "name" to the scheme it defines.
       * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme getSecurityOrDefault( java.lang.String key, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSecurity().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * A single security scheme definition, mapping a "name" to the scheme it defines.
       * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme getSecurityOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSecurity().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearSecurity() { internalGetMutableSecurity().getMutableMap() .clear(); return this; } /** *
       * A single security scheme definition, mapping a "name" to the scheme it defines.
       * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ public Builder removeSecurity( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableSecurity().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSecurity() { return internalGetMutableSecurity().getMutableMap(); } /** *
       * A single security scheme definition, mapping a "name" to the scheme it defines.
       * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ public Builder putSecurity( java.lang.String key, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableSecurity().getMutableMap() .put(key, value); return this; } /** *
       * A single security scheme definition, mapping a "name" to the scheme it defines.
       * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityScheme> security = 1; */ public Builder putAllSecurity( java.util.Map values) { internalGetMutableSecurity().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions) private static final grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions(); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SecurityDefinitions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SecurityDefinitions(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityDefinitions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecuritySchemeOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_swagger.options.SecurityScheme) com.google.protobuf.MessageOrBuilder { /** *
     * Required. The type of the security scheme. Valid values are "basic",
     * "apiKey" or "oauth2".
     * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type type = 1; */ int getTypeValue(); /** *
     * Required. The type of the security scheme. Valid values are "basic",
     * "apiKey" or "oauth2".
     * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type type = 1; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Type getType(); /** *
     * A short description for security scheme.
     * 
* * string description = 2; */ java.lang.String getDescription(); /** *
     * A short description for security scheme.
     * 
* * string description = 2; */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Required. The name of the header or query parameter to be used.
     * Valid for apiKey.
     * 
* * string name = 3; */ java.lang.String getName(); /** *
     * Required. The name of the header or query parameter to be used.
     * Valid for apiKey.
     * 
* * string name = 3; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Required. The location of the API key. Valid values are "query" or "header".
     * Valid for apiKey.
     * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In in = 4; */ int getInValue(); /** *
     * Required. The location of the API key. Valid values are "query" or "header".
     * Valid for apiKey.
     * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In in = 4; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.In getIn(); /** *
     * Required. The flow used by the OAuth2 security scheme. Valid values are
     * "implicit", "password", "application" or "accessCode".
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow flow = 5; */ int getFlowValue(); /** *
     * Required. The flow used by the OAuth2 security scheme. Valid values are
     * "implicit", "password", "application" or "accessCode".
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow flow = 5; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Flow getFlow(); /** *
     * Required. The authorization URL to be used for this flow. This SHOULD be in
     * the form of a URL.
     * Valid for oauth2/implicit and oauth2/accessCode.
     * 
* * string authorization_url = 6; */ java.lang.String getAuthorizationUrl(); /** *
     * Required. The authorization URL to be used for this flow. This SHOULD be in
     * the form of a URL.
     * Valid for oauth2/implicit and oauth2/accessCode.
     * 
* * string authorization_url = 6; */ com.google.protobuf.ByteString getAuthorizationUrlBytes(); /** *
     * Required. The token URL to be used for this flow. This SHOULD be in the
     * form of a URL.
     * Valid for oauth2/password, oauth2/application and oauth2/accessCode.
     * 
* * string token_url = 7; */ java.lang.String getTokenUrl(); /** *
     * Required. The token URL to be used for this flow. This SHOULD be in the
     * form of a URL.
     * Valid for oauth2/password, oauth2/application and oauth2/accessCode.
     * 
* * string token_url = 7; */ com.google.protobuf.ByteString getTokenUrlBytes(); /** *
     * Required. The available scopes for the OAuth2 security scheme.
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ boolean hasScopes(); /** *
     * Required. The available scopes for the OAuth2 security scheme.
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes getScopes(); /** *
     * Required. The available scopes for the OAuth2 security scheme.
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.ScopesOrBuilder getScopesOrBuilder(); } /** *
   * `SecurityScheme` is a representation of OpenAPI v2 specification's
   * Security Scheme object.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securitySchemeObject
   * Allows the definition of a security scheme that can be used by the
   * operations. Supported schemes are basic authentication, an API key (either as
   * a header or as a query parameter) and OAuth2's common flows (implicit,
   * password, application and access code).
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.SecurityScheme} */ public static final class SecurityScheme extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_swagger.options.SecurityScheme) SecuritySchemeOrBuilder { private static final long serialVersionUID = 0L; // Use SecurityScheme.newBuilder() to construct. private SecurityScheme(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecurityScheme() { type_ = 0; description_ = ""; name_ = ""; in_ = 0; flow_ = 0; authorizationUrl_ = ""; tokenUrl_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SecurityScheme( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 32: { int rawValue = input.readEnum(); in_ = rawValue; break; } case 40: { int rawValue = input.readEnum(); flow_ = rawValue; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); authorizationUrl_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); tokenUrl_ = s; break; } case 66: { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.Builder subBuilder = null; if (scopes_ != null) { subBuilder = scopes_.toBuilder(); } scopes_ = input.readMessage(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scopes_); scopes_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityScheme_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityScheme_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Builder.class); } /** *
     * Required. The type of the security scheme. Valid values are "basic",
     * "apiKey" or "oauth2".
     * 
* * Protobuf enum {@code grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * TYPE_INVALID = 0; */ TYPE_INVALID(0), /** * TYPE_BASIC = 1; */ TYPE_BASIC(1), /** * TYPE_API_KEY = 2; */ TYPE_API_KEY(2), /** * TYPE_OAUTH2 = 3; */ TYPE_OAUTH2(3), UNRECOGNIZED(-1), ; /** * TYPE_INVALID = 0; */ public static final int TYPE_INVALID_VALUE = 0; /** * TYPE_BASIC = 1; */ public static final int TYPE_BASIC_VALUE = 1; /** * TYPE_API_KEY = 2; */ public static final int TYPE_API_KEY_VALUE = 2; /** * TYPE_OAUTH2 = 3; */ public static final int TYPE_OAUTH2_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return TYPE_INVALID; case 1: return TYPE_BASIC; case 2: return TYPE_API_KEY; case 3: return TYPE_OAUTH2; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type) } /** *
     * Required. The location of the API key. Valid values are "query" or "header".
     * 
* * Protobuf enum {@code grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In} */ public enum In implements com.google.protobuf.ProtocolMessageEnum { /** * IN_INVALID = 0; */ IN_INVALID(0), /** * IN_QUERY = 1; */ IN_QUERY(1), /** * IN_HEADER = 2; */ IN_HEADER(2), UNRECOGNIZED(-1), ; /** * IN_INVALID = 0; */ public static final int IN_INVALID_VALUE = 0; /** * IN_QUERY = 1; */ public static final int IN_QUERY_VALUE = 1; /** * IN_HEADER = 2; */ public static final int IN_HEADER_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static In valueOf(int value) { return forNumber(value); } public static In forNumber(int value) { switch (value) { case 0: return IN_INVALID; case 1: return IN_QUERY; case 2: return IN_HEADER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< In> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public In findValueByNumber(int number) { return In.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.getDescriptor().getEnumTypes().get(1); } private static final In[] VALUES = values(); public static In valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private In(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In) } /** *
     * Required. The flow used by the OAuth2 security scheme. Valid values are
     * "implicit", "password", "application" or "accessCode".
     * 
* * Protobuf enum {@code grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow} */ public enum Flow implements com.google.protobuf.ProtocolMessageEnum { /** * FLOW_INVALID = 0; */ FLOW_INVALID(0), /** * FLOW_IMPLICIT = 1; */ FLOW_IMPLICIT(1), /** * FLOW_PASSWORD = 2; */ FLOW_PASSWORD(2), /** * FLOW_APPLICATION = 3; */ FLOW_APPLICATION(3), /** * FLOW_ACCESS_CODE = 4; */ FLOW_ACCESS_CODE(4), UNRECOGNIZED(-1), ; /** * FLOW_INVALID = 0; */ public static final int FLOW_INVALID_VALUE = 0; /** * FLOW_IMPLICIT = 1; */ public static final int FLOW_IMPLICIT_VALUE = 1; /** * FLOW_PASSWORD = 2; */ public static final int FLOW_PASSWORD_VALUE = 2; /** * FLOW_APPLICATION = 3; */ public static final int FLOW_APPLICATION_VALUE = 3; /** * FLOW_ACCESS_CODE = 4; */ public static final int FLOW_ACCESS_CODE_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Flow valueOf(int value) { return forNumber(value); } public static Flow forNumber(int value) { switch (value) { case 0: return FLOW_INVALID; case 1: return FLOW_IMPLICIT; case 2: return FLOW_PASSWORD; case 3: return FLOW_APPLICATION; case 4: return FLOW_ACCESS_CODE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Flow> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Flow findValueByNumber(int number) { return Flow.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.getDescriptor().getEnumTypes().get(2); } private static final Flow[] VALUES = values(); public static Flow valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Flow(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow) } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** *
     * Required. The type of the security scheme. Valid values are "basic",
     * "apiKey" or "oauth2".
     * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type type = 1; */ public int getTypeValue() { return type_; } /** *
     * Required. The type of the security scheme. Valid values are "basic",
     * "apiKey" or "oauth2".
     * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type type = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Type getType() { @SuppressWarnings("deprecation") grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Type result = grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Type.valueOf(type_); return result == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Type.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** *
     * A short description for security scheme.
     * 
* * string description = 2; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * A short description for security scheme.
     * 
* * string description = 2; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
     * Required. The name of the header or query parameter to be used.
     * Valid for apiKey.
     * 
* * string name = 3; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Required. The name of the header or query parameter to be used.
     * Valid for apiKey.
     * 
* * string name = 3; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IN_FIELD_NUMBER = 4; private int in_; /** *
     * Required. The location of the API key. Valid values are "query" or "header".
     * Valid for apiKey.
     * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In in = 4; */ public int getInValue() { return in_; } /** *
     * Required. The location of the API key. Valid values are "query" or "header".
     * Valid for apiKey.
     * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In in = 4; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.In getIn() { @SuppressWarnings("deprecation") grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.In result = grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.In.valueOf(in_); return result == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.In.UNRECOGNIZED : result; } public static final int FLOW_FIELD_NUMBER = 5; private int flow_; /** *
     * Required. The flow used by the OAuth2 security scheme. Valid values are
     * "implicit", "password", "application" or "accessCode".
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow flow = 5; */ public int getFlowValue() { return flow_; } /** *
     * Required. The flow used by the OAuth2 security scheme. Valid values are
     * "implicit", "password", "application" or "accessCode".
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow flow = 5; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Flow getFlow() { @SuppressWarnings("deprecation") grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Flow result = grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Flow.valueOf(flow_); return result == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Flow.UNRECOGNIZED : result; } public static final int AUTHORIZATION_URL_FIELD_NUMBER = 6; private volatile java.lang.Object authorizationUrl_; /** *
     * Required. The authorization URL to be used for this flow. This SHOULD be in
     * the form of a URL.
     * Valid for oauth2/implicit and oauth2/accessCode.
     * 
* * string authorization_url = 6; */ public java.lang.String getAuthorizationUrl() { java.lang.Object ref = authorizationUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizationUrl_ = s; return s; } } /** *
     * Required. The authorization URL to be used for this flow. This SHOULD be in
     * the form of a URL.
     * Valid for oauth2/implicit and oauth2/accessCode.
     * 
* * string authorization_url = 6; */ public com.google.protobuf.ByteString getAuthorizationUrlBytes() { java.lang.Object ref = authorizationUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); authorizationUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOKEN_URL_FIELD_NUMBER = 7; private volatile java.lang.Object tokenUrl_; /** *
     * Required. The token URL to be used for this flow. This SHOULD be in the
     * form of a URL.
     * Valid for oauth2/password, oauth2/application and oauth2/accessCode.
     * 
* * string token_url = 7; */ public java.lang.String getTokenUrl() { java.lang.Object ref = tokenUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tokenUrl_ = s; return s; } } /** *
     * Required. The token URL to be used for this flow. This SHOULD be in the
     * form of a URL.
     * Valid for oauth2/password, oauth2/application and oauth2/accessCode.
     * 
* * string token_url = 7; */ public com.google.protobuf.ByteString getTokenUrlBytes() { java.lang.Object ref = tokenUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tokenUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCOPES_FIELD_NUMBER = 8; private grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes scopes_; /** *
     * Required. The available scopes for the OAuth2 security scheme.
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ public boolean hasScopes() { return scopes_ != null; } /** *
     * Required. The available scopes for the OAuth2 security scheme.
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes getScopes() { return scopes_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.getDefaultInstance() : scopes_; } /** *
     * Required. The available scopes for the OAuth2 security scheme.
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ScopesOrBuilder getScopesOrBuilder() { return getScopes(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Type.TYPE_INVALID.getNumber()) { output.writeEnum(1, type_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (in_ != grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.In.IN_INVALID.getNumber()) { output.writeEnum(4, in_); } if (flow_ != grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Flow.FLOW_INVALID.getNumber()) { output.writeEnum(5, flow_); } if (!getAuthorizationUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, authorizationUrl_); } if (!getTokenUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tokenUrl_); } if (scopes_ != null) { output.writeMessage(8, getScopes()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Type.TYPE_INVALID.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (in_ != grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.In.IN_INVALID.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, in_); } if (flow_ != grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Flow.FLOW_INVALID.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, flow_); } if (!getAuthorizationUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, authorizationUrl_); } if (!getTokenUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tokenUrl_); } if (scopes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getScopes()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme)) { return super.equals(obj); } grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme other = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme) obj; if (type_ != other.type_) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getName() .equals(other.getName())) return false; if (in_ != other.in_) return false; if (flow_ != other.flow_) return false; if (!getAuthorizationUrl() .equals(other.getAuthorizationUrl())) return false; if (!getTokenUrl() .equals(other.getTokenUrl())) return false; if (hasScopes() != other.hasScopes()) return false; if (hasScopes()) { if (!getScopes() .equals(other.getScopes())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + IN_FIELD_NUMBER; hash = (53 * hash) + in_; hash = (37 * hash) + FLOW_FIELD_NUMBER; hash = (53 * hash) + flow_; hash = (37 * hash) + AUTHORIZATION_URL_FIELD_NUMBER; hash = (53 * hash) + getAuthorizationUrl().hashCode(); hash = (37 * hash) + TOKEN_URL_FIELD_NUMBER; hash = (53 * hash) + getTokenUrl().hashCode(); if (hasScopes()) { hash = (37 * hash) + SCOPES_FIELD_NUMBER; hash = (53 * hash) + getScopes().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * `SecurityScheme` is a representation of OpenAPI v2 specification's
     * Security Scheme object.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securitySchemeObject
     * Allows the definition of a security scheme that can be used by the
     * operations. Supported schemes are basic authentication, an API key (either as
     * a header or as a query parameter) and OAuth2's common flows (implicit,
     * password, application and access code).
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.SecurityScheme} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_swagger.options.SecurityScheme) grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecuritySchemeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityScheme_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityScheme_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Builder.class); } // Construct using grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); type_ = 0; description_ = ""; name_ = ""; in_ = 0; flow_ = 0; authorizationUrl_ = ""; tokenUrl_ = ""; if (scopesBuilder_ == null) { scopes_ = null; } else { scopes_ = null; scopesBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityScheme_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme getDefaultInstanceForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme build() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme buildPartial() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme result = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme(this); result.type_ = type_; result.description_ = description_; result.name_ = name_; result.in_ = in_; result.flow_ = flow_; result.authorizationUrl_ = authorizationUrl_; result.tokenUrl_ = tokenUrl_; if (scopesBuilder_ == null) { result.scopes_ = scopes_; } else { result.scopes_ = scopesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme) { return mergeFrom((grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme other) { if (other == grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.in_ != 0) { setInValue(other.getInValue()); } if (other.flow_ != 0) { setFlowValue(other.getFlowValue()); } if (!other.getAuthorizationUrl().isEmpty()) { authorizationUrl_ = other.authorizationUrl_; onChanged(); } if (!other.getTokenUrl().isEmpty()) { tokenUrl_ = other.tokenUrl_; onChanged(); } if (other.hasScopes()) { mergeScopes(other.getScopes()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ = 0; /** *
       * Required. The type of the security scheme. Valid values are "basic",
       * "apiKey" or "oauth2".
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type type = 1; */ public int getTypeValue() { return type_; } /** *
       * Required. The type of the security scheme. Valid values are "basic",
       * "apiKey" or "oauth2".
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type type = 1; */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** *
       * Required. The type of the security scheme. Valid values are "basic",
       * "apiKey" or "oauth2".
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type type = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Type getType() { @SuppressWarnings("deprecation") grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Type result = grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Type.valueOf(type_); return result == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Type.UNRECOGNIZED : result; } /** *
       * Required. The type of the security scheme. Valid values are "basic",
       * "apiKey" or "oauth2".
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type type = 1; */ public Builder setType(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
       * Required. The type of the security scheme. Valid values are "basic",
       * "apiKey" or "oauth2".
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type type = 1; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * A short description for security scheme.
       * 
* * string description = 2; */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A short description for security scheme.
       * 
* * string description = 2; */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A short description for security scheme.
       * 
* * string description = 2; */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * A short description for security scheme.
       * 
* * string description = 2; */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * A short description for security scheme.
       * 
* * string description = 2; */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Required. The name of the header or query parameter to be used.
       * Valid for apiKey.
       * 
* * string name = 3; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. The name of the header or query parameter to be used.
       * Valid for apiKey.
       * 
* * string name = 3; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. The name of the header or query parameter to be used.
       * Valid for apiKey.
       * 
* * string name = 3; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Required. The name of the header or query parameter to be used.
       * Valid for apiKey.
       * 
* * string name = 3; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Required. The name of the header or query parameter to be used.
       * Valid for apiKey.
       * 
* * string name = 3; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private int in_ = 0; /** *
       * Required. The location of the API key. Valid values are "query" or "header".
       * Valid for apiKey.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In in = 4; */ public int getInValue() { return in_; } /** *
       * Required. The location of the API key. Valid values are "query" or "header".
       * Valid for apiKey.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In in = 4; */ public Builder setInValue(int value) { in_ = value; onChanged(); return this; } /** *
       * Required. The location of the API key. Valid values are "query" or "header".
       * Valid for apiKey.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In in = 4; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.In getIn() { @SuppressWarnings("deprecation") grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.In result = grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.In.valueOf(in_); return result == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.In.UNRECOGNIZED : result; } /** *
       * Required. The location of the API key. Valid values are "query" or "header".
       * Valid for apiKey.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In in = 4; */ public Builder setIn(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.In value) { if (value == null) { throw new NullPointerException(); } in_ = value.getNumber(); onChanged(); return this; } /** *
       * Required. The location of the API key. Valid values are "query" or "header".
       * Valid for apiKey.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In in = 4; */ public Builder clearIn() { in_ = 0; onChanged(); return this; } private int flow_ = 0; /** *
       * Required. The flow used by the OAuth2 security scheme. Valid values are
       * "implicit", "password", "application" or "accessCode".
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow flow = 5; */ public int getFlowValue() { return flow_; } /** *
       * Required. The flow used by the OAuth2 security scheme. Valid values are
       * "implicit", "password", "application" or "accessCode".
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow flow = 5; */ public Builder setFlowValue(int value) { flow_ = value; onChanged(); return this; } /** *
       * Required. The flow used by the OAuth2 security scheme. Valid values are
       * "implicit", "password", "application" or "accessCode".
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow flow = 5; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Flow getFlow() { @SuppressWarnings("deprecation") grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Flow result = grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Flow.valueOf(flow_); return result == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Flow.UNRECOGNIZED : result; } /** *
       * Required. The flow used by the OAuth2 security scheme. Valid values are
       * "implicit", "password", "application" or "accessCode".
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow flow = 5; */ public Builder setFlow(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme.Flow value) { if (value == null) { throw new NullPointerException(); } flow_ = value.getNumber(); onChanged(); return this; } /** *
       * Required. The flow used by the OAuth2 security scheme. Valid values are
       * "implicit", "password", "application" or "accessCode".
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow flow = 5; */ public Builder clearFlow() { flow_ = 0; onChanged(); return this; } private java.lang.Object authorizationUrl_ = ""; /** *
       * Required. The authorization URL to be used for this flow. This SHOULD be in
       * the form of a URL.
       * Valid for oauth2/implicit and oauth2/accessCode.
       * 
* * string authorization_url = 6; */ public java.lang.String getAuthorizationUrl() { java.lang.Object ref = authorizationUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authorizationUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. The authorization URL to be used for this flow. This SHOULD be in
       * the form of a URL.
       * Valid for oauth2/implicit and oauth2/accessCode.
       * 
* * string authorization_url = 6; */ public com.google.protobuf.ByteString getAuthorizationUrlBytes() { java.lang.Object ref = authorizationUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); authorizationUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. The authorization URL to be used for this flow. This SHOULD be in
       * the form of a URL.
       * Valid for oauth2/implicit and oauth2/accessCode.
       * 
* * string authorization_url = 6; */ public Builder setAuthorizationUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } authorizationUrl_ = value; onChanged(); return this; } /** *
       * Required. The authorization URL to be used for this flow. This SHOULD be in
       * the form of a URL.
       * Valid for oauth2/implicit and oauth2/accessCode.
       * 
* * string authorization_url = 6; */ public Builder clearAuthorizationUrl() { authorizationUrl_ = getDefaultInstance().getAuthorizationUrl(); onChanged(); return this; } /** *
       * Required. The authorization URL to be used for this flow. This SHOULD be in
       * the form of a URL.
       * Valid for oauth2/implicit and oauth2/accessCode.
       * 
* * string authorization_url = 6; */ public Builder setAuthorizationUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); authorizationUrl_ = value; onChanged(); return this; } private java.lang.Object tokenUrl_ = ""; /** *
       * Required. The token URL to be used for this flow. This SHOULD be in the
       * form of a URL.
       * Valid for oauth2/password, oauth2/application and oauth2/accessCode.
       * 
* * string token_url = 7; */ public java.lang.String getTokenUrl() { java.lang.Object ref = tokenUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tokenUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. The token URL to be used for this flow. This SHOULD be in the
       * form of a URL.
       * Valid for oauth2/password, oauth2/application and oauth2/accessCode.
       * 
* * string token_url = 7; */ public com.google.protobuf.ByteString getTokenUrlBytes() { java.lang.Object ref = tokenUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tokenUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. The token URL to be used for this flow. This SHOULD be in the
       * form of a URL.
       * Valid for oauth2/password, oauth2/application and oauth2/accessCode.
       * 
* * string token_url = 7; */ public Builder setTokenUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tokenUrl_ = value; onChanged(); return this; } /** *
       * Required. The token URL to be used for this flow. This SHOULD be in the
       * form of a URL.
       * Valid for oauth2/password, oauth2/application and oauth2/accessCode.
       * 
* * string token_url = 7; */ public Builder clearTokenUrl() { tokenUrl_ = getDefaultInstance().getTokenUrl(); onChanged(); return this; } /** *
       * Required. The token URL to be used for this flow. This SHOULD be in the
       * form of a URL.
       * Valid for oauth2/password, oauth2/application and oauth2/accessCode.
       * 
* * string token_url = 7; */ public Builder setTokenUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tokenUrl_ = value; onChanged(); return this; } private grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes scopes_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ScopesOrBuilder> scopesBuilder_; /** *
       * Required. The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ public boolean hasScopes() { return scopesBuilder_ != null || scopes_ != null; } /** *
       * Required. The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes getScopes() { if (scopesBuilder_ == null) { return scopes_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.getDefaultInstance() : scopes_; } else { return scopesBuilder_.getMessage(); } } /** *
       * Required. The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ public Builder setScopes(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes value) { if (scopesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scopes_ = value; onChanged(); } else { scopesBuilder_.setMessage(value); } return this; } /** *
       * Required. The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ public Builder setScopes( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.Builder builderForValue) { if (scopesBuilder_ == null) { scopes_ = builderForValue.build(); onChanged(); } else { scopesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Required. The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ public Builder mergeScopes(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes value) { if (scopesBuilder_ == null) { if (scopes_ != null) { scopes_ = grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.newBuilder(scopes_).mergeFrom(value).buildPartial(); } else { scopes_ = value; } onChanged(); } else { scopesBuilder_.mergeFrom(value); } return this; } /** *
       * Required. The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ public Builder clearScopes() { if (scopesBuilder_ == null) { scopes_ = null; onChanged(); } else { scopes_ = null; scopesBuilder_ = null; } return this; } /** *
       * Required. The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.Builder getScopesBuilder() { onChanged(); return getScopesFieldBuilder().getBuilder(); } /** *
       * Required. The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.ScopesOrBuilder getScopesOrBuilder() { if (scopesBuilder_ != null) { return scopesBuilder_.getMessageOrBuilder(); } else { return scopes_ == null ? grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.getDefaultInstance() : scopes_; } } /** *
       * Required. The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_swagger.options.Scopes scopes = 8; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ScopesOrBuilder> getScopesFieldBuilder() { if (scopesBuilder_ == null) { scopesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.Builder, grpc.gateway.protoc_gen_swagger.options.Openapiv2.ScopesOrBuilder>( getScopes(), getParentForChildren(), isClean()); scopes_ = null; } return scopesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.gateway.protoc_gen_swagger.options.SecurityScheme) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.SecurityScheme) private static final grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme(); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SecurityScheme parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SecurityScheme(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityScheme getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecurityRequirementOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_swagger.options.SecurityRequirement) com.google.protobuf.MessageOrBuilder { /** *
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ int getSecurityRequirementCount(); /** *
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ boolean containsSecurityRequirement( java.lang.String key); /** * Use {@link #getSecurityRequirementMap()} instead. */ @java.lang.Deprecated java.util.Map getSecurityRequirement(); /** *
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ java.util.Map getSecurityRequirementMap(); /** *
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getSecurityRequirementOrDefault( java.lang.String key, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue defaultValue); /** *
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getSecurityRequirementOrThrow( java.lang.String key); } /** *
   * `SecurityRequirement` is a representation of OpenAPI v2 specification's
   * Security Requirement object.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityRequirementObject
   * Lists the required security schemes to execute this operation. The object can
   * have multiple security schemes declared in it which are all required (that
   * is, there is a logical AND between the schemes).
   * The name used for each property MUST correspond to a security scheme
   * declared in the Security Definitions.
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.SecurityRequirement} */ public static final class SecurityRequirement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_swagger.options.SecurityRequirement) SecurityRequirementOrBuilder { private static final long serialVersionUID = 0L; // Use SecurityRequirement.newBuilder() to construct. private SecurityRequirement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecurityRequirement() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SecurityRequirement( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { securityRequirement_ = com.google.protobuf.MapField.newMapField( SecurityRequirementDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry securityRequirement__ = input.readMessage( SecurityRequirementDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); securityRequirement_.getMutableMap().put( securityRequirement__.getKey(), securityRequirement__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetSecurityRequirement(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder.class); } public interface SecurityRequirementValueOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue) com.google.protobuf.MessageOrBuilder { /** * repeated string scope = 1; */ java.util.List getScopeList(); /** * repeated string scope = 1; */ int getScopeCount(); /** * repeated string scope = 1; */ java.lang.String getScope(int index); /** * repeated string scope = 1; */ com.google.protobuf.ByteString getScopeBytes(int index); } /** *
     * If the security scheme is of type "oauth2", then the value is a list of
     * scope names required for the execution. For other security scheme types,
     * the array MUST be empty.
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue} */ public static final class SecurityRequirementValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue) SecurityRequirementValueOrBuilder { private static final long serialVersionUID = 0L; // Use SecurityRequirementValue.newBuilder() to construct. private SecurityRequirementValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecurityRequirementValue() { scope_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SecurityRequirementValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { scope_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } scope_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scope_ = scope_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementValue_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList scope_; /** * repeated string scope = 1; */ public com.google.protobuf.ProtocolStringList getScopeList() { return scope_; } /** * repeated string scope = 1; */ public int getScopeCount() { return scope_.size(); } /** * repeated string scope = 1; */ public java.lang.String getScope(int index) { return scope_.get(index); } /** * repeated string scope = 1; */ public com.google.protobuf.ByteString getScopeBytes(int index) { return scope_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < scope_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < scope_.size(); i++) { dataSize += computeStringSizeNoTag(scope_.getRaw(i)); } size += dataSize; size += 1 * getScopeList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue)) { return super.equals(obj); } grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue other = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue) obj; if (!getScopeList() .equals(other.getScopeList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getScopeCount() > 0) { hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + getScopeList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * If the security scheme is of type "oauth2", then the value is a list of
       * scope names required for the execution. For other security scheme types,
       * the array MUST be empty.
       * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue) grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementValue_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.Builder.class); } // Construct using grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); scope_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementValue_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getDefaultInstanceForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue build() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue buildPartial() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue result = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { scope_ = scope_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.scope_ = scope_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue) { return mergeFrom((grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue other) { if (other == grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.getDefaultInstance()) return this; if (!other.scope_.isEmpty()) { if (scope_.isEmpty()) { scope_ = other.scope_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureScopeIsMutable(); scope_.addAll(other.scope_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList scope_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureScopeIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { scope_ = new com.google.protobuf.LazyStringArrayList(scope_); bitField0_ |= 0x00000001; } } /** * repeated string scope = 1; */ public com.google.protobuf.ProtocolStringList getScopeList() { return scope_.getUnmodifiableView(); } /** * repeated string scope = 1; */ public int getScopeCount() { return scope_.size(); } /** * repeated string scope = 1; */ public java.lang.String getScope(int index) { return scope_.get(index); } /** * repeated string scope = 1; */ public com.google.protobuf.ByteString getScopeBytes(int index) { return scope_.getByteString(index); } /** * repeated string scope = 1; */ public Builder setScope( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureScopeIsMutable(); scope_.set(index, value); onChanged(); return this; } /** * repeated string scope = 1; */ public Builder addScope( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureScopeIsMutable(); scope_.add(value); onChanged(); return this; } /** * repeated string scope = 1; */ public Builder addAllScope( java.lang.Iterable values) { ensureScopeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, scope_); onChanged(); return this; } /** * repeated string scope = 1; */ public Builder clearScope() { scope_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string scope = 1; */ public Builder addScopeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureScopeIsMutable(); scope_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue) private static final grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue(); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SecurityRequirementValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SecurityRequirementValue(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int SECURITY_REQUIREMENT_FIELD_NUMBER = 1; private static final class SecurityRequirementDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue> securityRequirement_; private com.google.protobuf.MapField internalGetSecurityRequirement() { if (securityRequirement_ == null) { return com.google.protobuf.MapField.emptyMapField( SecurityRequirementDefaultEntryHolder.defaultEntry); } return securityRequirement_; } public int getSecurityRequirementCount() { return internalGetSecurityRequirement().getMap().size(); } /** *
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public boolean containsSecurityRequirement( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSecurityRequirement().getMap().containsKey(key); } /** * Use {@link #getSecurityRequirementMap()} instead. */ @java.lang.Deprecated public java.util.Map getSecurityRequirement() { return getSecurityRequirementMap(); } /** *
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public java.util.Map getSecurityRequirementMap() { return internalGetSecurityRequirement().getMap(); } /** *
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getSecurityRequirementOrDefault( java.lang.String key, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSecurityRequirement().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Each name must correspond to a security scheme which is declared in
     * the Security Definitions. If the security scheme is of type "oauth2",
     * then the value is a list of scope names required for the execution.
     * For other security scheme types, the array MUST be empty.
     * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getSecurityRequirementOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSecurityRequirement().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetSecurityRequirement(), SecurityRequirementDefaultEntryHolder.defaultEntry, 1); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetSecurityRequirement().getMap().entrySet()) { com.google.protobuf.MapEntry securityRequirement__ = SecurityRequirementDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, securityRequirement__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement)) { return super.equals(obj); } grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement other = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement) obj; if (!internalGetSecurityRequirement().equals( other.internalGetSecurityRequirement())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetSecurityRequirement().getMap().isEmpty()) { hash = (37 * hash) + SECURITY_REQUIREMENT_FIELD_NUMBER; hash = (53 * hash) + internalGetSecurityRequirement().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * `SecurityRequirement` is a representation of OpenAPI v2 specification's
     * Security Requirement object.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityRequirementObject
     * Lists the required security schemes to execute this operation. The object can
     * have multiple security schemes declared in it which are all required (that
     * is, there is a logical AND between the schemes).
     * The name used for each property MUST correspond to a security scheme
     * declared in the Security Definitions.
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.SecurityRequirement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_swagger.options.SecurityRequirement) grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetSecurityRequirement(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableSecurityRequirement(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.Builder.class); } // Construct using grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableSecurityRequirement().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement getDefaultInstanceForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement build() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement buildPartial() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement result = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement(this); int from_bitField0_ = bitField0_; result.securityRequirement_ = internalGetSecurityRequirement(); result.securityRequirement_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement) { return mergeFrom((grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement other) { if (other == grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.getDefaultInstance()) return this; internalGetMutableSecurityRequirement().mergeFrom( other.internalGetSecurityRequirement()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue> securityRequirement_; private com.google.protobuf.MapField internalGetSecurityRequirement() { if (securityRequirement_ == null) { return com.google.protobuf.MapField.emptyMapField( SecurityRequirementDefaultEntryHolder.defaultEntry); } return securityRequirement_; } private com.google.protobuf.MapField internalGetMutableSecurityRequirement() { onChanged();; if (securityRequirement_ == null) { securityRequirement_ = com.google.protobuf.MapField.newMapField( SecurityRequirementDefaultEntryHolder.defaultEntry); } if (!securityRequirement_.isMutable()) { securityRequirement_ = securityRequirement_.copy(); } return securityRequirement_; } public int getSecurityRequirementCount() { return internalGetSecurityRequirement().getMap().size(); } /** *
       * Each name must correspond to a security scheme which is declared in
       * the Security Definitions. If the security scheme is of type "oauth2",
       * then the value is a list of scope names required for the execution.
       * For other security scheme types, the array MUST be empty.
       * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public boolean containsSecurityRequirement( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSecurityRequirement().getMap().containsKey(key); } /** * Use {@link #getSecurityRequirementMap()} instead. */ @java.lang.Deprecated public java.util.Map getSecurityRequirement() { return getSecurityRequirementMap(); } /** *
       * Each name must correspond to a security scheme which is declared in
       * the Security Definitions. If the security scheme is of type "oauth2",
       * then the value is a list of scope names required for the execution.
       * For other security scheme types, the array MUST be empty.
       * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public java.util.Map getSecurityRequirementMap() { return internalGetSecurityRequirement().getMap(); } /** *
       * Each name must correspond to a security scheme which is declared in
       * the Security Definitions. If the security scheme is of type "oauth2",
       * then the value is a list of scope names required for the execution.
       * For other security scheme types, the array MUST be empty.
       * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getSecurityRequirementOrDefault( java.lang.String key, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSecurityRequirement().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Each name must correspond to a security scheme which is declared in
       * the Security Definitions. If the security scheme is of type "oauth2",
       * then the value is a list of scope names required for the execution.
       * For other security scheme types, the array MUST be empty.
       * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getSecurityRequirementOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSecurityRequirement().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearSecurityRequirement() { internalGetMutableSecurityRequirement().getMutableMap() .clear(); return this; } /** *
       * Each name must correspond to a security scheme which is declared in
       * the Security Definitions. If the security scheme is of type "oauth2",
       * then the value is a list of scope names required for the execution.
       * For other security scheme types, the array MUST be empty.
       * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public Builder removeSecurityRequirement( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableSecurityRequirement().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSecurityRequirement() { return internalGetMutableSecurityRequirement().getMutableMap(); } /** *
       * Each name must correspond to a security scheme which is declared in
       * the Security Definitions. If the security scheme is of type "oauth2",
       * then the value is a list of scope names required for the execution.
       * For other security scheme types, the array MUST be empty.
       * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public Builder putSecurityRequirement( java.lang.String key, grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement.SecurityRequirementValue value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableSecurityRequirement().getMutableMap() .put(key, value); return this; } /** *
       * Each name must correspond to a security scheme which is declared in
       * the Security Definitions. If the security scheme is of type "oauth2",
       * then the value is a list of scope names required for the execution.
       * For other security scheme types, the array MUST be empty.
       * 
* * map<string, .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public Builder putAllSecurityRequirement( java.util.Map values) { internalGetMutableSecurityRequirement().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.gateway.protoc_gen_swagger.options.SecurityRequirement) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.SecurityRequirement) private static final grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement(); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SecurityRequirement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SecurityRequirement(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.SecurityRequirement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScopesOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_swagger.options.Scopes) com.google.protobuf.MessageOrBuilder { /** *
     * Maps between a name of a scope to a short description of it (as the value
     * of the property).
     * 
* * map<string, string> scope = 1; */ int getScopeCount(); /** *
     * Maps between a name of a scope to a short description of it (as the value
     * of the property).
     * 
* * map<string, string> scope = 1; */ boolean containsScope( java.lang.String key); /** * Use {@link #getScopeMap()} instead. */ @java.lang.Deprecated java.util.Map getScope(); /** *
     * Maps between a name of a scope to a short description of it (as the value
     * of the property).
     * 
* * map<string, string> scope = 1; */ java.util.Map getScopeMap(); /** *
     * Maps between a name of a scope to a short description of it (as the value
     * of the property).
     * 
* * map<string, string> scope = 1; */ java.lang.String getScopeOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Maps between a name of a scope to a short description of it (as the value
     * of the property).
     * 
* * map<string, string> scope = 1; */ java.lang.String getScopeOrThrow( java.lang.String key); } /** *
   * `Scopes` is a representation of OpenAPI v2 specification's Scopes object.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#scopesObject
   * Lists the available scopes for an OAuth2 security scheme.
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.Scopes} */ public static final class Scopes extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_swagger.options.Scopes) ScopesOrBuilder { private static final long serialVersionUID = 0L; // Use Scopes.newBuilder() to construct. private Scopes(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Scopes() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Scopes( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { scope_ = com.google.protobuf.MapField.newMapField( ScopeDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry scope__ = input.readMessage( ScopeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); scope_.getMutableMap().put( scope__.getKey(), scope__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetScope(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 1; private static final class ScopeDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_ScopeEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> scope_; private com.google.protobuf.MapField internalGetScope() { if (scope_ == null) { return com.google.protobuf.MapField.emptyMapField( ScopeDefaultEntryHolder.defaultEntry); } return scope_; } public int getScopeCount() { return internalGetScope().getMap().size(); } /** *
     * Maps between a name of a scope to a short description of it (as the value
     * of the property).
     * 
* * map<string, string> scope = 1; */ public boolean containsScope( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetScope().getMap().containsKey(key); } /** * Use {@link #getScopeMap()} instead. */ @java.lang.Deprecated public java.util.Map getScope() { return getScopeMap(); } /** *
     * Maps between a name of a scope to a short description of it (as the value
     * of the property).
     * 
* * map<string, string> scope = 1; */ public java.util.Map getScopeMap() { return internalGetScope().getMap(); } /** *
     * Maps between a name of a scope to a short description of it (as the value
     * of the property).
     * 
* * map<string, string> scope = 1; */ public java.lang.String getScopeOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetScope().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Maps between a name of a scope to a short description of it (as the value
     * of the property).
     * 
* * map<string, string> scope = 1; */ public java.lang.String getScopeOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetScope().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetScope(), ScopeDefaultEntryHolder.defaultEntry, 1); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetScope().getMap().entrySet()) { com.google.protobuf.MapEntry scope__ = ScopeDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, scope__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes)) { return super.equals(obj); } grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes other = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes) obj; if (!internalGetScope().equals( other.internalGetScope())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetScope().getMap().isEmpty()) { hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + internalGetScope().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * `Scopes` is a representation of OpenAPI v2 specification's Scopes object.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#scopesObject
     * Lists the available scopes for an OAuth2 security scheme.
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_swagger.options.Scopes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_swagger.options.Scopes) grpc.gateway.protoc_gen_swagger.options.Openapiv2.ScopesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetScope(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableScope(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.class, grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.Builder.class); } // Construct using grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableScope().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes getDefaultInstanceForType() { return grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes build() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes buildPartial() { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes result = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes(this); int from_bitField0_ = bitField0_; result.scope_ = internalGetScope(); result.scope_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes) { return mergeFrom((grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes other) { if (other == grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes.getDefaultInstance()) return this; internalGetMutableScope().mergeFrom( other.internalGetScope()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, java.lang.String> scope_; private com.google.protobuf.MapField internalGetScope() { if (scope_ == null) { return com.google.protobuf.MapField.emptyMapField( ScopeDefaultEntryHolder.defaultEntry); } return scope_; } private com.google.protobuf.MapField internalGetMutableScope() { onChanged();; if (scope_ == null) { scope_ = com.google.protobuf.MapField.newMapField( ScopeDefaultEntryHolder.defaultEntry); } if (!scope_.isMutable()) { scope_ = scope_.copy(); } return scope_; } public int getScopeCount() { return internalGetScope().getMap().size(); } /** *
       * Maps between a name of a scope to a short description of it (as the value
       * of the property).
       * 
* * map<string, string> scope = 1; */ public boolean containsScope( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetScope().getMap().containsKey(key); } /** * Use {@link #getScopeMap()} instead. */ @java.lang.Deprecated public java.util.Map getScope() { return getScopeMap(); } /** *
       * Maps between a name of a scope to a short description of it (as the value
       * of the property).
       * 
* * map<string, string> scope = 1; */ public java.util.Map getScopeMap() { return internalGetScope().getMap(); } /** *
       * Maps between a name of a scope to a short description of it (as the value
       * of the property).
       * 
* * map<string, string> scope = 1; */ public java.lang.String getScopeOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetScope().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Maps between a name of a scope to a short description of it (as the value
       * of the property).
       * 
* * map<string, string> scope = 1; */ public java.lang.String getScopeOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetScope().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearScope() { internalGetMutableScope().getMutableMap() .clear(); return this; } /** *
       * Maps between a name of a scope to a short description of it (as the value
       * of the property).
       * 
* * map<string, string> scope = 1; */ public Builder removeScope( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableScope().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableScope() { return internalGetMutableScope().getMutableMap(); } /** *
       * Maps between a name of a scope to a short description of it (as the value
       * of the property).
       * 
* * map<string, string> scope = 1; */ public Builder putScope( java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableScope().getMutableMap() .put(key, value); return this; } /** *
       * Maps between a name of a scope to a short description of it (as the value
       * of the property).
       * 
* * map<string, string> scope = 1; */ public Builder putAllScope( java.util.Map values) { internalGetMutableScope().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.gateway.protoc_gen_swagger.options.Scopes) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_swagger.options.Scopes) private static final grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes(); } public static grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Scopes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Scopes(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public grpc.gateway.protoc_gen_swagger.options.Openapiv2.Scopes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_Swagger_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_Swagger_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_Operation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_Operation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_Info_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_Info_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_Contact_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_Contact_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_ExternalDocumentation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_ExternalDocumentation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_Schema_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_Schema_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_JSONSchema_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_JSONSchema_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_Tag_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_Tag_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_SecurityEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_SecurityEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityScheme_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityScheme_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_ScopeEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_ScopeEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n*protoc-gen-swagger/options/openapiv2.p" + "roto\022\'grpc.gateway.protoc_gen_swagger.op" + "tions\032\031google/protobuf/any.proto\"\314\004\n\007Swa" + "gger\022\017\n\007swagger\030\001 \001(\t\022;\n\004info\030\002 \001(\0132-.gr" + "pc.gateway.protoc_gen_swagger.options.In" + "fo\022\014\n\004host\030\003 \001(\t\022\021\n\tbase_path\030\004 \001(\t\022O\n\007s" + "chemes\030\005 \003(\0162>.grpc.gateway.protoc_gen_s" + "wagger.options.Swagger.SwaggerScheme\022\020\n\010" + "consumes\030\006 \003(\t\022\020\n\010produces\030\007 \003(\t\022Z\n\024secu" + "rity_definitions\030\013 \001(\0132<.grpc.gateway.pr" + "otoc_gen_swagger.options.SecurityDefinit" + "ions\022N\n\010security\030\014 \003(\0132<.grpc.gateway.pr" + "otoc_gen_swagger.options.SecurityRequire" + "ment\022U\n\rexternal_docs\030\016 \001(\0132>.grpc.gatew" + "ay.protoc_gen_swagger.options.ExternalDo" + "cumentation\"B\n\rSwaggerScheme\022\013\n\007UNKNOWN\020" + "\000\022\010\n\004HTTP\020\001\022\t\n\005HTTPS\020\002\022\006\n\002WS\020\003\022\007\n\003WSS\020\004J" + "\004\010\010\020\tJ\004\010\t\020\nJ\004\010\n\020\013J\004\010\r\020\016\"\321\002\n\tOperation\022\014\n" + "\004tags\030\001 \003(\t\022\017\n\007summary\030\002 \001(\t\022\023\n\013descript" + "ion\030\003 \001(\t\022U\n\rexternal_docs\030\004 \001(\0132>.grpc." + "gateway.protoc_gen_swagger.options.Exter" + "nalDocumentation\022\024\n\014operation_id\030\005 \001(\t\022\020" + "\n\010consumes\030\006 \003(\t\022\020\n\010produces\030\007 \003(\t\022\017\n\007sc" + "hemes\030\n \003(\t\022\022\n\ndeprecated\030\013 \001(\010\022N\n\010secur" + "ity\030\014 \003(\0132<.grpc.gateway.protoc_gen_swag" + "ger.options.SecurityRequirementJ\004\010\010\020\tJ\004\010" + "\t\020\n\"\236\001\n\004Info\022\r\n\005title\030\001 \001(\t\022\023\n\013descripti" + "on\030\002 \001(\t\022\030\n\020terms_of_service\030\003 \001(\t\022A\n\007co" + "ntact\030\004 \001(\01320.grpc.gateway.protoc_gen_sw" + "agger.options.Contact\022\017\n\007version\030\006 \001(\tJ\004" + "\010\005\020\006\"3\n\007Contact\022\014\n\004name\030\001 \001(\t\022\013\n\003url\030\002 \001" + "(\t\022\r\n\005email\030\003 \001(\t\"9\n\025ExternalDocumentati" + "on\022\023\n\013description\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\"\200\002\n" + "\006Schema\022H\n\013json_schema\030\001 \001(\01323.grpc.gate" + "way.protoc_gen_swagger.options.JSONSchem" + "a\022\025\n\rdiscriminator\030\002 \001(\t\022\021\n\tread_only\030\003 " + "\001(\010\022U\n\rexternal_docs\030\005 \001(\0132>.grpc.gatewa" + "y.protoc_gen_swagger.options.ExternalDoc" + "umentation\022%\n\007example\030\006 \001(\0132\024.google.pro" + "tobuf.AnyJ\004\010\004\020\005\"\246\005\n\nJSONSchema\022\r\n\005title\030" + "\005 \001(\t\022\023\n\013description\030\006 \001(\t\022\017\n\007default\030\007 " + "\001(\t\022\023\n\013multiple_of\030\n \001(\001\022\017\n\007maximum\030\013 \001(" + "\001\022\031\n\021exclusive_maximum\030\014 \001(\010\022\017\n\007minimum\030" + "\r \001(\001\022\031\n\021exclusive_minimum\030\016 \001(\010\022\022\n\nmax_" + "length\030\017 \001(\004\022\022\n\nmin_length\030\020 \001(\004\022\017\n\007patt" + "ern\030\021 \001(\t\022\021\n\tmax_items\030\024 \001(\004\022\021\n\tmin_item" + "s\030\025 \001(\004\022\024\n\014unique_items\030\026 \001(\010\022\026\n\016max_pro" + "perties\030\030 \001(\004\022\026\n\016min_properties\030\031 \001(\004\022\020\n" + "\010required\030\032 \003(\t\022\r\n\005array\030\" \003(\t\022W\n\004type\030#" + " \003(\0162I.grpc.gateway.protoc_gen_swagger.o" + "ptions.JSONSchema.JSONSchemaSimpleTypes\"" + "w\n\025JSONSchemaSimpleTypes\022\013\n\007UNKNOWN\020\000\022\t\n" + "\005ARRAY\020\001\022\013\n\007BOOLEAN\020\002\022\013\n\007INTEGER\020\003\022\010\n\004NU" + "LL\020\004\022\n\n\006NUMBER\020\005\022\n\n\006OBJECT\020\006\022\n\n\006STRING\020\007" + "J\004\010\001\020\002J\004\010\002\020\003J\004\010\003\020\004J\004\010\004\020\005J\004\010\010\020\tJ\004\010\t\020\nJ\004\010\022" + "\020\023J\004\010\023\020\024J\004\010\027\020\030J\004\010\033\020\034J\004\010\034\020\035J\004\010\035\020\036J\004\010\036\020\"J\004" + "\010$\020*J\004\010*\020+J\004\010+\020.\"w\n\003Tag\022\023\n\013description\030\002" + " \001(\t\022U\n\rexternal_docs\030\003 \001(\0132>.grpc.gatew" + "ay.protoc_gen_swagger.options.ExternalDo" + "cumentationJ\004\010\001\020\002\"\335\001\n\023SecurityDefinition" + "s\022\\\n\010security\030\001 \003(\0132J.grpc.gateway.proto" + "c_gen_swagger.options.SecurityDefinition" + "s.SecurityEntry\032h\n\rSecurityEntry\022\013\n\003key\030" + "\001 \001(\t\022F\n\005value\030\002 \001(\01327.grpc.gateway.prot" + "oc_gen_swagger.options.SecurityScheme:\0028" + "\001\"\356\004\n\016SecurityScheme\022J\n\004type\030\001 \001(\0162<.grp" + "c.gateway.protoc_gen_swagger.options.Sec" + "urityScheme.Type\022\023\n\013description\030\002 \001(\t\022\014\n" + "\004name\030\003 \001(\t\022F\n\002in\030\004 \001(\0162:.grpc.gateway.p" + "rotoc_gen_swagger.options.SecurityScheme" + ".In\022J\n\004flow\030\005 \001(\0162<.grpc.gateway.protoc_" + "gen_swagger.options.SecurityScheme.Flow\022" + "\031\n\021authorization_url\030\006 \001(\t\022\021\n\ttoken_url\030" + "\007 \001(\t\022?\n\006scopes\030\010 \001(\0132/.grpc.gateway.pro" + "toc_gen_swagger.options.Scopes\"K\n\004Type\022\020" + "\n\014TYPE_INVALID\020\000\022\016\n\nTYPE_BASIC\020\001\022\020\n\014TYPE" + "_API_KEY\020\002\022\017\n\013TYPE_OAUTH2\020\003\"1\n\002In\022\016\n\nIN_" + "INVALID\020\000\022\014\n\010IN_QUERY\020\001\022\r\n\tIN_HEADER\020\002\"j" + "\n\004Flow\022\020\n\014FLOW_INVALID\020\000\022\021\n\rFLOW_IMPLICI" + "T\020\001\022\021\n\rFLOW_PASSWORD\020\002\022\024\n\020FLOW_APPLICATI" + "ON\020\003\022\024\n\020FLOW_ACCESS_CODE\020\004\"\311\002\n\023SecurityR" + "equirement\022s\n\024security_requirement\030\001 \003(\013" + "2U.grpc.gateway.protoc_gen_swagger.optio" + "ns.SecurityRequirement.SecurityRequireme" + "ntEntry\032)\n\030SecurityRequirementValue\022\r\n\005s" + "cope\030\001 \003(\t\032\221\001\n\030SecurityRequirementEntry\022" + "\013\n\003key\030\001 \001(\t\022d\n\005value\030\002 \001(\0132U.grpc.gatew" + "ay.protoc_gen_swagger.options.SecurityRe" + "quirement.SecurityRequirementValue:\0028\001\"\201" + "\001\n\006Scopes\022I\n\005scope\030\001 \003(\0132:.grpc.gateway." + "protoc_gen_swagger.options.Scopes.ScopeE" + "ntry\032,\n\nScopeEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + "\030\002 \001(\t:\0028\001BCZAgithub.com/grpc-ecosystem/" + "grpc-gateway/protoc-gen-swagger/optionsb" + "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), }, assigner); internal_static_grpc_gateway_protoc_gen_swagger_options_Swagger_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_grpc_gateway_protoc_gen_swagger_options_Swagger_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_Swagger_descriptor, new java.lang.String[] { "Swagger", "Info", "Host", "BasePath", "Schemes", "Consumes", "Produces", "SecurityDefinitions", "Security", "ExternalDocs", }); internal_static_grpc_gateway_protoc_gen_swagger_options_Operation_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_grpc_gateway_protoc_gen_swagger_options_Operation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_Operation_descriptor, new java.lang.String[] { "Tags", "Summary", "Description", "ExternalDocs", "OperationId", "Consumes", "Produces", "Schemes", "Deprecated", "Security", }); internal_static_grpc_gateway_protoc_gen_swagger_options_Info_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_grpc_gateway_protoc_gen_swagger_options_Info_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_Info_descriptor, new java.lang.String[] { "Title", "Description", "TermsOfService", "Contact", "Version", }); internal_static_grpc_gateway_protoc_gen_swagger_options_Contact_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_grpc_gateway_protoc_gen_swagger_options_Contact_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_Contact_descriptor, new java.lang.String[] { "Name", "Url", "Email", }); internal_static_grpc_gateway_protoc_gen_swagger_options_ExternalDocumentation_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_grpc_gateway_protoc_gen_swagger_options_ExternalDocumentation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_ExternalDocumentation_descriptor, new java.lang.String[] { "Description", "Url", }); internal_static_grpc_gateway_protoc_gen_swagger_options_Schema_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_grpc_gateway_protoc_gen_swagger_options_Schema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_Schema_descriptor, new java.lang.String[] { "JsonSchema", "Discriminator", "ReadOnly", "ExternalDocs", "Example", }); internal_static_grpc_gateway_protoc_gen_swagger_options_JSONSchema_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_grpc_gateway_protoc_gen_swagger_options_JSONSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_JSONSchema_descriptor, new java.lang.String[] { "Title", "Description", "Default", "MultipleOf", "Maximum", "ExclusiveMaximum", "Minimum", "ExclusiveMinimum", "MaxLength", "MinLength", "Pattern", "MaxItems", "MinItems", "UniqueItems", "MaxProperties", "MinProperties", "Required", "Array", "Type", }); internal_static_grpc_gateway_protoc_gen_swagger_options_Tag_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_grpc_gateway_protoc_gen_swagger_options_Tag_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_Tag_descriptor, new java.lang.String[] { "Description", "ExternalDocs", }); internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_descriptor, new java.lang.String[] { "Security", }); internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_SecurityEntry_descriptor = internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_descriptor.getNestedTypes().get(0); internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_SecurityEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityDefinitions_SecurityEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityScheme_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityScheme_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityScheme_descriptor, new java.lang.String[] { "Type", "Description", "Name", "In", "Flow", "AuthorizationUrl", "TokenUrl", "Scopes", }); internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_descriptor, new java.lang.String[] { "SecurityRequirement", }); internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementValue_descriptor = internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_descriptor.getNestedTypes().get(0); internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementValue_descriptor, new java.lang.String[] { "Scope", }); internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementEntry_descriptor = internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_descriptor.getNestedTypes().get(1); internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_SecurityRequirement_SecurityRequirementEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_descriptor, new java.lang.String[] { "Scope", }); internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_ScopeEntry_descriptor = internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_descriptor.getNestedTypes().get(0); internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_ScopeEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_swagger_options_Scopes_ScopeEntry_descriptor, new java.lang.String[] { "Key", "Value", }); com.google.protobuf.AnyProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy