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

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

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

package grpc.gateway.protoc_gen_openapiv2.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);
  }
  /**
   * 
   * Scheme describes the schemes supported by the OpenAPI Swagger
   * and Operation objects.
   * 
* * Protobuf enum {@code grpc.gateway.protoc_gen_openapiv2.options.Scheme} */ public enum Scheme 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; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Scheme valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Scheme 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< Scheme> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Scheme findValueByNumber(int number) { return Scheme.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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_openapiv2.options.Openapiv2.getDescriptor().getEnumTypes().get(0); } private static final Scheme[] VALUES = values(); public static Scheme 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 Scheme(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:grpc.gateway.protoc_gen_openapiv2.options.Scheme) } public interface SwaggerOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.Swagger) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies the OpenAPI Specification version being used. It can be
     * used by the OpenAPI UI and other clients to interpret the API listing. The
     * value MUST be "2.0".
     * 
* * string swagger = 1; * @return The swagger. */ java.lang.String getSwagger(); /** *
     * Specifies the OpenAPI Specification version being used. It can be
     * used by the OpenAPI UI and other clients to interpret the API listing. The
     * value MUST be "2.0".
     * 
* * string swagger = 1; * @return The bytes for swagger. */ com.google.protobuf.ByteString getSwaggerBytes(); /** *
     * Provides metadata about the API. The metadata can be used by the
     * clients if needed.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; * @return Whether the info field is set. */ boolean hasInfo(); /** *
     * Provides metadata about the API. The metadata can be used by the
     * clients if needed.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; * @return The info. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info getInfo(); /** *
     * Provides metadata about the API. The metadata can be used by the
     * clients if needed.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.InfoOrBuilder getInfoOrBuilder(); /** *
     * The host (name or ip) serving the API. This MUST be the host only and does
     * not include the scheme nor sub-paths. It MAY include a port. If the host is
     * not included, the host serving the documentation is to be used (including
     * the port). The host does not support path templating.
     * 
* * string host = 3; * @return The host. */ java.lang.String getHost(); /** *
     * The host (name or ip) serving the API. This MUST be the host only and does
     * not include the scheme nor sub-paths. It MAY include a port. If the host is
     * not included, the host serving the documentation is to be used (including
     * the port). The host does not support path templating.
     * 
* * string host = 3; * @return The bytes for host. */ com.google.protobuf.ByteString getHostBytes(); /** *
     * The base path on which the API is served, which is relative to the host. If
     * it is not included, the API is served directly under the host. The value
     * MUST start with a leading slash (/). The basePath does not support path
     * templating.
     * Note that using `base_path` does not change the endpoint paths that are
     * generated in the resulting OpenAPI file. If you wish to use `base_path`
     * with relatively generated OpenAPI paths, the `base_path` prefix must be
     * manually removed from your `google.api.http` paths and your code changed to
     * serve the API from the `base_path`.
     * 
* * string base_path = 4; * @return The basePath. */ java.lang.String getBasePath(); /** *
     * The base path on which the API is served, which is relative to the host. If
     * it is not included, the API is served directly under the host. The value
     * MUST start with a leading slash (/). The basePath does not support path
     * templating.
     * Note that using `base_path` does not change the endpoint paths that are
     * generated in the resulting OpenAPI file. If you wish to use `base_path`
     * with relatively generated OpenAPI paths, the `base_path` prefix must be
     * manually removed from your `google.api.http` paths and your code changed to
     * serve the API from the `base_path`.
     * 
* * string base_path = 4; * @return The bytes for basePath. */ com.google.protobuf.ByteString getBasePathBytes(); /** *
     * The transfer protocol of the API. Values MUST be from the list: "http",
     * "https", "ws", "wss". If the schemes is not included, the default scheme to
     * be used is the one used to access the OpenAPI definition itself.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @return A list containing the schemes. */ java.util.List getSchemesList(); /** *
     * The transfer protocol of the API. Values MUST be from the list: "http",
     * "https", "ws", "wss". If the schemes is not included, the default scheme to
     * be used is the one used to access the OpenAPI definition itself.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @return The count of schemes. */ int getSchemesCount(); /** *
     * The transfer protocol of the API. Values MUST be from the list: "http",
     * "https", "ws", "wss". If the schemes is not included, the default scheme to
     * be used is the one used to access the OpenAPI definition itself.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @param index The index of the element to return. * @return The schemes at the given index. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme getSchemes(int index); /** *
     * The transfer protocol of the API. Values MUST be from the list: "http",
     * "https", "ws", "wss". If the schemes is not included, the default scheme to
     * be used is the one used to access the OpenAPI definition itself.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @return A list containing the enum numeric values on the wire for schemes. */ java.util.List getSchemesValueList(); /** *
     * The transfer protocol of the API. Values MUST be from the list: "http",
     * "https", "ws", "wss". If the schemes is not included, the default scheme to
     * be used is the one used to access the OpenAPI definition itself.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @param index The index of the value to return. * @return The enum numeric value on the wire of schemes at the given index. */ int getSchemesValue(int index); /** *
     * A list of MIME types the APIs can consume. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string consumes = 6; * @return A list containing the consumes. */ java.util.List getConsumesList(); /** *
     * A list of MIME types the APIs can consume. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string consumes = 6; * @return The count of consumes. */ int getConsumesCount(); /** *
     * A list of MIME types the APIs can consume. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string consumes = 6; * @param index The index of the element to return. * @return The consumes at the given index. */ java.lang.String getConsumes(int index); /** *
     * A list of MIME types the APIs can consume. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string consumes = 6; * @param index The index of the value to return. * @return The bytes of the consumes at the given index. */ com.google.protobuf.ByteString getConsumesBytes(int index); /** *
     * A list of MIME types the APIs can produce. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string produces = 7; * @return A list containing the produces. */ java.util.List getProducesList(); /** *
     * A list of MIME types the APIs can produce. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string produces = 7; * @return The count of produces. */ int getProducesCount(); /** *
     * A list of MIME types the APIs can produce. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string produces = 7; * @param index The index of the element to return. * @return The produces at the given index. */ java.lang.String getProduces(int index); /** *
     * A list of MIME types the APIs can produce. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string produces = 7; * @param index The index of the value to return. * @return The bytes of the produces at the given index. */ com.google.protobuf.ByteString getProducesBytes(int index); /** *
     * An object to hold responses that can be used across operations. This
     * property does not define global responses for all operations.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ int getResponsesCount(); /** *
     * An object to hold responses that can be used across operations. This
     * property does not define global responses for all operations.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ boolean containsResponses( java.lang.String key); /** * Use {@link #getResponsesMap()} instead. */ @java.lang.Deprecated java.util.Map getResponses(); /** *
     * An object to hold responses that can be used across operations. This
     * property does not define global responses for all operations.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ java.util.Map getResponsesMap(); /** *
     * An object to hold responses that can be used across operations. This
     * property does not define global responses for all operations.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response getResponsesOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response defaultValue); /** *
     * An object to hold responses that can be used across operations. This
     * property does not define global responses for all operations.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response getResponsesOrThrow( java.lang.String key); /** *
     * Security scheme definitions that can be used across the specification.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; * @return Whether the securityDefinitions field is set. */ boolean hasSecurityDefinitions(); /** *
     * Security scheme definitions that can be used across the specification.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; * @return The securityDefinitions. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions getSecurityDefinitions(); /** *
     * Security scheme definitions that can be used across the specification.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitionsOrBuilder getSecurityDefinitionsOrBuilder(); /** *
     * A declaration of which security schemes are applied for the API as a whole.
     * The list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements).
     * Individual operations can override this definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ java.util.List getSecurityList(); /** *
     * A declaration of which security schemes are applied for the API as a whole.
     * The list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements).
     * Individual operations can override this definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement getSecurity(int index); /** *
     * A declaration of which security schemes are applied for the API as a whole.
     * The list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements).
     * Individual operations can override this definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ int getSecurityCount(); /** *
     * A declaration of which security schemes are applied for the API as a whole.
     * The list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements).
     * Individual operations can override this definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ java.util.List getSecurityOrBuilderList(); /** *
     * A declaration of which security schemes are applied for the API as a whole.
     * The list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements).
     * Individual operations can override this definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirementOrBuilder getSecurityOrBuilder( int index); /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ java.util.List getTagsList(); /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag getTags(int index); /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ int getTagsCount(); /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ java.util.List getTagsOrBuilderList(); /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.TagOrBuilder getTagsOrBuilder( int index); /** *
     * Additional external documentation.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; * @return Whether the externalDocs field is set. */ boolean hasExternalDocs(); /** *
     * Additional external documentation.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; * @return The externalDocs. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation getExternalDocs(); /** *
     * Additional external documentation.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 15; */ int getExtensionsCount(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 15; */ boolean containsExtensions( java.lang.String key); /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Deprecated java.util.Map getExtensions(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 15; */ java.util.Map getExtensionsMap(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 15; */ /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 15; */ com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key); } /** *
   * `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
   * Example:
   *  option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
   *    info: {
   *      title: "Echo API";
   *      version: "1.0";
   *      description: "";
   *      contact: {
   *        name: "gRPC-Gateway project";
   *        url: "https://github.com/grpc-ecosystem/grpc-gateway";
   *        email: "none@example.com";
   *      };
   *      license: {
   *        name: "BSD 3-Clause License";
   *        url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE.txt";
   *      };
   *    };
   *    schemes: HTTPS;
   *    consumes: "application/json";
   *    produces: "application/json";
   *  };
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Swagger} */ public static final class Swagger extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.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(); tags_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Swagger(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 10: return internalGetResponses(); case 15: return internalGetExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger.Builder.class); } public static final int SWAGGER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object swagger_ = ""; /** *
     * Specifies the OpenAPI Specification version being used. It can be
     * used by the OpenAPI UI and other clients to interpret the API listing. The
     * value MUST be "2.0".
     * 
* * string swagger = 1; * @return The swagger. */ @java.lang.Override 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; } } /** *
     * Specifies the OpenAPI Specification version being used. It can be
     * used by the OpenAPI UI and other clients to interpret the API listing. The
     * value MUST be "2.0".
     * 
* * string swagger = 1; * @return The bytes for swagger. */ @java.lang.Override 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_openapiv2.options.Openapiv2.Info info_; /** *
     * Provides metadata about the API. The metadata can be used by the
     * clients if needed.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; * @return Whether the info field is set. */ @java.lang.Override public boolean hasInfo() { return info_ != null; } /** *
     * Provides metadata about the API. The metadata can be used by the
     * clients if needed.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; * @return The info. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info getInfo() { return info_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.getDefaultInstance() : info_; } /** *
     * Provides metadata about the API. The metadata can be used by the
     * clients if needed.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.InfoOrBuilder getInfoOrBuilder() { return info_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.getDefaultInstance() : info_; } public static final int HOST_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object host_ = ""; /** *
     * The host (name or ip) serving the API. This MUST be the host only and does
     * not include the scheme nor sub-paths. It MAY include a port. If the host is
     * not included, the host serving the documentation is to be used (including
     * the port). The host does not support path templating.
     * 
* * string host = 3; * @return The host. */ @java.lang.Override 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; } } /** *
     * The host (name or ip) serving the API. This MUST be the host only and does
     * not include the scheme nor sub-paths. It MAY include a port. If the host is
     * not included, the host serving the documentation is to be used (including
     * the port). The host does not support path templating.
     * 
* * string host = 3; * @return The bytes for host. */ @java.lang.Override 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; @SuppressWarnings("serial") private volatile java.lang.Object basePath_ = ""; /** *
     * The base path on which the API is served, which is relative to the host. If
     * it is not included, the API is served directly under the host. The value
     * MUST start with a leading slash (/). The basePath does not support path
     * templating.
     * Note that using `base_path` does not change the endpoint paths that are
     * generated in the resulting OpenAPI file. If you wish to use `base_path`
     * with relatively generated OpenAPI paths, the `base_path` prefix must be
     * manually removed from your `google.api.http` paths and your code changed to
     * serve the API from the `base_path`.
     * 
* * string base_path = 4; * @return The basePath. */ @java.lang.Override 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; } } /** *
     * The base path on which the API is served, which is relative to the host. If
     * it is not included, the API is served directly under the host. The value
     * MUST start with a leading slash (/). The basePath does not support path
     * templating.
     * Note that using `base_path` does not change the endpoint paths that are
     * generated in the resulting OpenAPI file. If you wish to use `base_path`
     * with relatively generated OpenAPI paths, the `base_path` prefix must be
     * manually removed from your `google.api.http` paths and your code changed to
     * serve the API from the `base_path`.
     * 
* * string base_path = 4; * @return The bytes for basePath. */ @java.lang.Override 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; @SuppressWarnings("serial") private java.util.List schemes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme> schemes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme>() { public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme convert(java.lang.Integer from) { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme result = grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme.forNumber(from); return result == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme.UNRECOGNIZED : result; } }; /** *
     * The transfer protocol of the API. Values MUST be from the list: "http",
     * "https", "ws", "wss". If the schemes is not included, the default scheme to
     * be used is the one used to access the OpenAPI definition itself.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @return A list containing the schemes. */ @java.lang.Override public java.util.List getSchemesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme>(schemes_, schemes_converter_); } /** *
     * The transfer protocol of the API. Values MUST be from the list: "http",
     * "https", "ws", "wss". If the schemes is not included, the default scheme to
     * be used is the one used to access the OpenAPI definition itself.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @return The count of schemes. */ @java.lang.Override public int getSchemesCount() { return schemes_.size(); } /** *
     * The transfer protocol of the API. Values MUST be from the list: "http",
     * "https", "ws", "wss". If the schemes is not included, the default scheme to
     * be used is the one used to access the OpenAPI definition itself.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @param index The index of the element to return. * @return The schemes at the given index. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme getSchemes(int index) { return schemes_converter_.convert(schemes_.get(index)); } /** *
     * The transfer protocol of the API. Values MUST be from the list: "http",
     * "https", "ws", "wss". If the schemes is not included, the default scheme to
     * be used is the one used to access the OpenAPI definition itself.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @return A list containing the enum numeric values on the wire for schemes. */ @java.lang.Override public java.util.List getSchemesValueList() { return schemes_; } /** *
     * The transfer protocol of the API. Values MUST be from the list: "http",
     * "https", "ws", "wss". If the schemes is not included, the default scheme to
     * be used is the one used to access the OpenAPI definition itself.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @param index The index of the value to return. * @return The enum numeric value on the wire of schemes at the given index. */ @java.lang.Override public int getSchemesValue(int index) { return schemes_.get(index); } private int schemesMemoizedSerializedSize; public static final int CONSUMES_FIELD_NUMBER = 6; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList consumes_; /** *
     * A list of MIME types the APIs can consume. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string consumes = 6; * @return A list containing the consumes. */ public com.google.protobuf.ProtocolStringList getConsumesList() { return consumes_; } /** *
     * A list of MIME types the APIs can consume. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string consumes = 6; * @return The count of consumes. */ public int getConsumesCount() { return consumes_.size(); } /** *
     * A list of MIME types the APIs can consume. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string consumes = 6; * @param index The index of the element to return. * @return The consumes at the given index. */ public java.lang.String getConsumes(int index) { return consumes_.get(index); } /** *
     * A list of MIME types the APIs can consume. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string consumes = 6; * @param index The index of the value to return. * @return The bytes of the consumes at the given index. */ public com.google.protobuf.ByteString getConsumesBytes(int index) { return consumes_.getByteString(index); } public static final int PRODUCES_FIELD_NUMBER = 7; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList produces_; /** *
     * A list of MIME types the APIs can produce. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string produces = 7; * @return A list containing the produces. */ public com.google.protobuf.ProtocolStringList getProducesList() { return produces_; } /** *
     * A list of MIME types the APIs can produce. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string produces = 7; * @return The count of produces. */ public int getProducesCount() { return produces_.size(); } /** *
     * A list of MIME types the APIs can produce. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string produces = 7; * @param index The index of the element to return. * @return The produces at the given index. */ public java.lang.String getProduces(int index) { return produces_.get(index); } /** *
     * A list of MIME types the APIs can produce. This is global to all APIs but
     * can be overridden on specific API calls. Value MUST be as described under
     * Mime Types.
     * 
* * repeated string produces = 7; * @param index The index of the value to return. * @return The bytes of the produces at the given index. */ public com.google.protobuf.ByteString getProducesBytes(int index) { return produces_.getByteString(index); } public static final int RESPONSES_FIELD_NUMBER = 10; private static final class ResponsesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_ResponsesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response> responses_; private com.google.protobuf.MapField internalGetResponses() { if (responses_ == null) { return com.google.protobuf.MapField.emptyMapField( ResponsesDefaultEntryHolder.defaultEntry); } return responses_; } public int getResponsesCount() { return internalGetResponses().getMap().size(); } /** *
     * An object to hold responses that can be used across operations. This
     * property does not define global responses for all operations.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ @java.lang.Override public boolean containsResponses( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetResponses().getMap().containsKey(key); } /** * Use {@link #getResponsesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getResponses() { return getResponsesMap(); } /** *
     * An object to hold responses that can be used across operations. This
     * property does not define global responses for all operations.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ @java.lang.Override public java.util.Map getResponsesMap() { return internalGetResponses().getMap(); } /** *
     * An object to hold responses that can be used across operations. This
     * property does not define global responses for all operations.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ @java.lang.Override public /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response getResponsesOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponses().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * An object to hold responses that can be used across operations. This
     * property does not define global responses for all operations.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response getResponsesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponses().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int SECURITY_DEFINITIONS_FIELD_NUMBER = 11; private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions securityDefinitions_; /** *
     * Security scheme definitions that can be used across the specification.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; * @return Whether the securityDefinitions field is set. */ @java.lang.Override public boolean hasSecurityDefinitions() { return securityDefinitions_ != null; } /** *
     * Security scheme definitions that can be used across the specification.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; * @return The securityDefinitions. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions getSecurityDefinitions() { return securityDefinitions_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.getDefaultInstance() : securityDefinitions_; } /** *
     * Security scheme definitions that can be used across the specification.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitionsOrBuilder getSecurityDefinitionsOrBuilder() { return securityDefinitions_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.getDefaultInstance() : securityDefinitions_; } public static final int SECURITY_FIELD_NUMBER = 12; @SuppressWarnings("serial") private java.util.List security_; /** *
     * A declaration of which security schemes are applied for the API as a whole.
     * The list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements).
     * Individual operations can override this definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ @java.lang.Override public java.util.List getSecurityList() { return security_; } /** *
     * A declaration of which security schemes are applied for the API as a whole.
     * The list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements).
     * Individual operations can override this definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ @java.lang.Override public java.util.List getSecurityOrBuilderList() { return security_; } /** *
     * A declaration of which security schemes are applied for the API as a whole.
     * The list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements).
     * Individual operations can override this definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ @java.lang.Override public int getSecurityCount() { return security_.size(); } /** *
     * A declaration of which security schemes are applied for the API as a whole.
     * The list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements).
     * Individual operations can override this definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement getSecurity(int index) { return security_.get(index); } /** *
     * A declaration of which security schemes are applied for the API as a whole.
     * The list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements).
     * Individual operations can override this definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirementOrBuilder getSecurityOrBuilder( int index) { return security_.get(index); } public static final int TAGS_FIELD_NUMBER = 13; @SuppressWarnings("serial") private java.util.List tags_; /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ @java.lang.Override public java.util.List getTagsList() { return tags_; } /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ @java.lang.Override public java.util.List getTagsOrBuilderList() { return tags_; } /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ @java.lang.Override public int getTagsCount() { return tags_.size(); } /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag getTags(int index) { return tags_.get(index); } /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.TagOrBuilder getTagsOrBuilder( int index) { return tags_.get(index); } public static final int EXTERNAL_DOCS_FIELD_NUMBER = 14; private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation externalDocs_; /** *
     * Additional external documentation.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; * @return Whether the externalDocs field is set. */ @java.lang.Override public boolean hasExternalDocs() { return externalDocs_ != null; } /** *
     * Additional external documentation.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; * @return The externalDocs. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation getExternalDocs() { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } /** *
     * Additional external documentation.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } public static final int EXTENSIONS_FIELD_NUMBER = 15; private static final class ExtensionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_ExtensionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.protobuf.Value.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Value> extensions_; private com.google.protobuf.MapField internalGetExtensions() { if (extensions_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtensionsDefaultEntryHolder.defaultEntry); } return extensions_; } public int getExtensionsCount() { return internalGetExtensions().getMap().size(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 15; */ @java.lang.Override public boolean containsExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtensions().getMap().containsKey(key); } /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtensions() { return getExtensionsMap(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 15; */ @java.lang.Override public java.util.Map getExtensionsMap() { return internalGetExtensions().getMap(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 15; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 15; */ @java.lang.Override public com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(swagger_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, swagger_); } if (info_ != null) { output.writeMessage(2, getInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, host_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(basePath_)) { 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)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetResponses(), ResponsesDefaultEntryHolder.defaultEntry, 10); if (securityDefinitions_ != null) { output.writeMessage(11, getSecurityDefinitions()); } for (int i = 0; i < security_.size(); i++) { output.writeMessage(12, security_.get(i)); } for (int i = 0; i < tags_.size(); i++) { output.writeMessage(13, tags_.get(i)); } if (externalDocs_ != null) { output.writeMessage(14, getExternalDocs()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetExtensions(), ExtensionsDefaultEntryHolder.defaultEntry, 15); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(swagger_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, swagger_); } if (info_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, host_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(basePath_)) { 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(); } for (java.util.Map.Entry entry : internalGetResponses().getMap().entrySet()) { com.google.protobuf.MapEntry responses__ = ResponsesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, responses__); } 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)); } for (int i = 0; i < tags_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, tags_.get(i)); } if (externalDocs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getExternalDocs()); } for (java.util.Map.Entry entry : internalGetExtensions().getMap().entrySet()) { com.google.protobuf.MapEntry extensions__ = ExtensionsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, extensions__); } size += getUnknownFields().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_openapiv2.options.Openapiv2.Swagger)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger other = (grpc.gateway.protoc_gen_openapiv2.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 (!internalGetResponses().equals( other.internalGetResponses())) 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 (!getTagsList() .equals(other.getTagsList())) return false; if (hasExternalDocs() != other.hasExternalDocs()) return false; if (hasExternalDocs()) { if (!getExternalDocs() .equals(other.getExternalDocs())) return false; } if (!internalGetExtensions().equals( other.internalGetExtensions())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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 (!internalGetResponses().getMap().isEmpty()) { hash = (37 * hash) + RESPONSES_FIELD_NUMBER; hash = (53 * hash) + internalGetResponses().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 (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } if (hasExternalDocs()) { hash = (37 * hash) + EXTERNAL_DOCS_FIELD_NUMBER; hash = (53 * hash) + getExternalDocs().hashCode(); } if (!internalGetExtensions().getMap().isEmpty()) { hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetExtensions().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.Swagger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.Swagger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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
     * Example:
     *  option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
     *    info: {
     *      title: "Echo API";
     *      version: "1.0";
     *      description: "";
     *      contact: {
     *        name: "gRPC-Gateway project";
     *        url: "https://github.com/grpc-ecosystem/grpc-gateway";
     *        email: "none@example.com";
     *      };
     *      license: {
     *        name: "BSD 3-Clause License";
     *        url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE.txt";
     *      };
     *    };
     *    schemes: HTTPS;
     *    consumes: "application/json";
     *    produces: "application/json";
     *  };
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Swagger} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.Swagger) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SwaggerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 10: return internalGetResponses(); case 15: return internalGetExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 10: return internalGetMutableResponses(); case 15: return internalGetMutableExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; swagger_ = ""; info_ = null; if (infoBuilder_ != null) { infoBuilder_.dispose(); 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); internalGetMutableResponses().clear(); securityDefinitions_ = null; if (securityDefinitionsBuilder_ != null) { securityDefinitionsBuilder_.dispose(); securityDefinitionsBuilder_ = null; } if (securityBuilder_ == null) { security_ = java.util.Collections.emptyList(); } else { security_ = null; securityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (tagsBuilder_ == null) { tags_ = java.util.Collections.emptyList(); } else { tags_ = null; tagsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); externalDocs_ = null; if (externalDocsBuilder_ != null) { externalDocsBuilder_.dispose(); externalDocsBuilder_ = null; } internalGetMutableExtensions().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger result) { 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 (securityBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0)) { security_ = java.util.Collections.unmodifiableList(security_); bitField0_ = (bitField0_ & ~0x00000200); } result.security_ = security_; } else { result.security_ = securityBuilder_.build(); } if (tagsBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0)) { tags_ = java.util.Collections.unmodifiableList(tags_); bitField0_ = (bitField0_ & ~0x00000400); } result.tags_ = tags_; } else { result.tags_ = tagsBuilder_.build(); } } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.swagger_ = swagger_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.info_ = infoBuilder_ == null ? info_ : infoBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.host_ = host_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.basePath_ = basePath_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.responses_ = internalGetResponses(); result.responses_.makeImmutable(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.securityDefinitions_ = securityDefinitionsBuilder_ == null ? securityDefinitions_ : securityDefinitionsBuilder_.build(); } if (((from_bitField0_ & 0x00000800) != 0)) { result.externalDocs_ = externalDocsBuilder_ == null ? externalDocs_ : externalDocsBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.extensions_ = internalGetExtensions(); result.extensions_.makeImmutable(); } } @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_openapiv2.options.Openapiv2.Swagger) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger.getDefaultInstance()) return this; if (!other.getSwagger().isEmpty()) { swagger_ = other.swagger_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasInfo()) { mergeInfo(other.getInfo()); } if (!other.getHost().isEmpty()) { host_ = other.host_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getBasePath().isEmpty()) { basePath_ = other.basePath_; bitField0_ |= 0x00000008; 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(); } internalGetMutableResponses().mergeFrom( other.internalGetResponses()); bitField0_ |= 0x00000080; if (other.hasSecurityDefinitions()) { mergeSecurityDefinitions(other.getSecurityDefinitions()); } 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_); } } } if (tagsBuilder_ == null) { if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } } else { if (!other.tags_.isEmpty()) { if (tagsBuilder_.isEmpty()) { tagsBuilder_.dispose(); tagsBuilder_ = null; tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000400); tagsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTagsFieldBuilder() : null; } else { tagsBuilder_.addAllMessages(other.tags_); } } } if (other.hasExternalDocs()) { mergeExternalDocs(other.getExternalDocs()); } internalGetMutableExtensions().mergeFrom( other.internalGetExtensions()); bitField0_ |= 0x00001000; this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { swagger_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { host_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { basePath_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { int tmpRaw = input.readEnum(); ensureSchemesIsMutable(); schemes_.add(tmpRaw); break; } // case 40 case 42: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureSchemesIsMutable(); schemes_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 42 case 50: { java.lang.String s = input.readStringRequireUtf8(); ensureConsumesIsMutable(); consumes_.add(s); break; } // case 50 case 58: { java.lang.String s = input.readStringRequireUtf8(); ensureProducesIsMutable(); produces_.add(s); break; } // case 58 case 82: { com.google.protobuf.MapEntry responses__ = input.readMessage( ResponsesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableResponses().getMutableMap().put( responses__.getKey(), responses__.getValue()); bitField0_ |= 0x00000080; break; } // case 82 case 90: { input.readMessage( getSecurityDefinitionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 90 case 98: { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement m = input.readMessage( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.parser(), extensionRegistry); if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.add(m); } else { securityBuilder_.addMessage(m); } break; } // case 98 case 106: { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag m = input.readMessage( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.parser(), extensionRegistry); if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.add(m); } else { tagsBuilder_.addMessage(m); } break; } // case 106 case 114: { input.readMessage( getExternalDocsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 114 case 122: { com.google.protobuf.MapEntry extensions__ = input.readMessage( ExtensionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableExtensions().getMutableMap().put( extensions__.getKey(), extensions__.getValue()); bitField0_ |= 0x00001000; break; } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object swagger_ = ""; /** *
       * Specifies the OpenAPI Specification version being used. It can be
       * used by the OpenAPI UI and other clients to interpret the API listing. The
       * value MUST be "2.0".
       * 
* * string swagger = 1; * @return The swagger. */ 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; } } /** *
       * Specifies the OpenAPI Specification version being used. It can be
       * used by the OpenAPI UI and other clients to interpret the API listing. The
       * value MUST be "2.0".
       * 
* * string swagger = 1; * @return The bytes for swagger. */ 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; } } /** *
       * Specifies the OpenAPI Specification version being used. It can be
       * used by the OpenAPI UI and other clients to interpret the API listing. The
       * value MUST be "2.0".
       * 
* * string swagger = 1; * @param value The swagger to set. * @return This builder for chaining. */ public Builder setSwagger( java.lang.String value) { if (value == null) { throw new NullPointerException(); } swagger_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Specifies the OpenAPI Specification version being used. It can be
       * used by the OpenAPI UI and other clients to interpret the API listing. The
       * value MUST be "2.0".
       * 
* * string swagger = 1; * @return This builder for chaining. */ public Builder clearSwagger() { swagger_ = getDefaultInstance().getSwagger(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Specifies the OpenAPI Specification version being used. It can be
       * used by the OpenAPI UI and other clients to interpret the API listing. The
       * value MUST be "2.0".
       * 
* * string swagger = 1; * @param value The bytes for swagger to set. * @return This builder for chaining. */ public Builder setSwaggerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); swagger_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info info_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.InfoOrBuilder> infoBuilder_; /** *
       * Provides metadata about the API. The metadata can be used by the
       * clients if needed.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; * @return Whether the info field is set. */ public boolean hasInfo() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Provides metadata about the API. The metadata can be used by the
       * clients if needed.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; * @return The info. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info getInfo() { if (infoBuilder_ == null) { return info_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.getDefaultInstance() : info_; } else { return infoBuilder_.getMessage(); } } /** *
       * Provides metadata about the API. The metadata can be used by the
       * clients if needed.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; */ public Builder setInfo(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info value) { if (infoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } info_ = value; } else { infoBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Provides metadata about the API. The metadata can be used by the
       * clients if needed.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; */ public Builder setInfo( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.Builder builderForValue) { if (infoBuilder_ == null) { info_ = builderForValue.build(); } else { infoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Provides metadata about the API. The metadata can be used by the
       * clients if needed.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; */ public Builder mergeInfo(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info value) { if (infoBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && info_ != null && info_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.getDefaultInstance()) { getInfoBuilder().mergeFrom(value); } else { info_ = value; } } else { infoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Provides metadata about the API. The metadata can be used by the
       * clients if needed.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; */ public Builder clearInfo() { bitField0_ = (bitField0_ & ~0x00000002); info_ = null; if (infoBuilder_ != null) { infoBuilder_.dispose(); infoBuilder_ = null; } onChanged(); return this; } /** *
       * Provides metadata about the API. The metadata can be used by the
       * clients if needed.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.Builder getInfoBuilder() { bitField0_ |= 0x00000002; onChanged(); return getInfoFieldBuilder().getBuilder(); } /** *
       * Provides metadata about the API. The metadata can be used by the
       * clients if needed.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.InfoOrBuilder getInfoOrBuilder() { if (infoBuilder_ != null) { return infoBuilder_.getMessageOrBuilder(); } else { return info_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.getDefaultInstance() : info_; } } /** *
       * Provides metadata about the API. The metadata can be used by the
       * clients if needed.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.InfoOrBuilder> getInfoFieldBuilder() { if (infoBuilder_ == null) { infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.InfoOrBuilder>( getInfo(), getParentForChildren(), isClean()); info_ = null; } return infoBuilder_; } private java.lang.Object host_ = ""; /** *
       * The host (name or ip) serving the API. This MUST be the host only and does
       * not include the scheme nor sub-paths. It MAY include a port. If the host is
       * not included, the host serving the documentation is to be used (including
       * the port). The host does not support path templating.
       * 
* * string host = 3; * @return The host. */ 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; } } /** *
       * The host (name or ip) serving the API. This MUST be the host only and does
       * not include the scheme nor sub-paths. It MAY include a port. If the host is
       * not included, the host serving the documentation is to be used (including
       * the port). The host does not support path templating.
       * 
* * string host = 3; * @return The bytes for host. */ 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; } } /** *
       * The host (name or ip) serving the API. This MUST be the host only and does
       * not include the scheme nor sub-paths. It MAY include a port. If the host is
       * not included, the host serving the documentation is to be used (including
       * the port). The host does not support path templating.
       * 
* * string host = 3; * @param value The host to set. * @return This builder for chaining. */ public Builder setHost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } host_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The host (name or ip) serving the API. This MUST be the host only and does
       * not include the scheme nor sub-paths. It MAY include a port. If the host is
       * not included, the host serving the documentation is to be used (including
       * the port). The host does not support path templating.
       * 
* * string host = 3; * @return This builder for chaining. */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * The host (name or ip) serving the API. This MUST be the host only and does
       * not include the scheme nor sub-paths. It MAY include a port. If the host is
       * not included, the host serving the documentation is to be used (including
       * the port). The host does not support path templating.
       * 
* * string host = 3; * @param value The bytes for host to set. * @return This builder for chaining. */ public Builder setHostBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object basePath_ = ""; /** *
       * The base path on which the API is served, which is relative to the host. If
       * it is not included, the API is served directly under the host. The value
       * MUST start with a leading slash (/). The basePath does not support path
       * templating.
       * Note that using `base_path` does not change the endpoint paths that are
       * generated in the resulting OpenAPI file. If you wish to use `base_path`
       * with relatively generated OpenAPI paths, the `base_path` prefix must be
       * manually removed from your `google.api.http` paths and your code changed to
       * serve the API from the `base_path`.
       * 
* * string base_path = 4; * @return The basePath. */ 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; } } /** *
       * The base path on which the API is served, which is relative to the host. If
       * it is not included, the API is served directly under the host. The value
       * MUST start with a leading slash (/). The basePath does not support path
       * templating.
       * Note that using `base_path` does not change the endpoint paths that are
       * generated in the resulting OpenAPI file. If you wish to use `base_path`
       * with relatively generated OpenAPI paths, the `base_path` prefix must be
       * manually removed from your `google.api.http` paths and your code changed to
       * serve the API from the `base_path`.
       * 
* * string base_path = 4; * @return The bytes for basePath. */ 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; } } /** *
       * The base path on which the API is served, which is relative to the host. If
       * it is not included, the API is served directly under the host. The value
       * MUST start with a leading slash (/). The basePath does not support path
       * templating.
       * Note that using `base_path` does not change the endpoint paths that are
       * generated in the resulting OpenAPI file. If you wish to use `base_path`
       * with relatively generated OpenAPI paths, the `base_path` prefix must be
       * manually removed from your `google.api.http` paths and your code changed to
       * serve the API from the `base_path`.
       * 
* * string base_path = 4; * @param value The basePath to set. * @return This builder for chaining. */ public Builder setBasePath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } basePath_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The base path on which the API is served, which is relative to the host. If
       * it is not included, the API is served directly under the host. The value
       * MUST start with a leading slash (/). The basePath does not support path
       * templating.
       * Note that using `base_path` does not change the endpoint paths that are
       * generated in the resulting OpenAPI file. If you wish to use `base_path`
       * with relatively generated OpenAPI paths, the `base_path` prefix must be
       * manually removed from your `google.api.http` paths and your code changed to
       * serve the API from the `base_path`.
       * 
* * string base_path = 4; * @return This builder for chaining. */ public Builder clearBasePath() { basePath_ = getDefaultInstance().getBasePath(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * The base path on which the API is served, which is relative to the host. If
       * it is not included, the API is served directly under the host. The value
       * MUST start with a leading slash (/). The basePath does not support path
       * templating.
       * Note that using `base_path` does not change the endpoint paths that are
       * generated in the resulting OpenAPI file. If you wish to use `base_path`
       * with relatively generated OpenAPI paths, the `base_path` prefix must be
       * manually removed from your `google.api.http` paths and your code changed to
       * serve the API from the `base_path`.
       * 
* * string base_path = 4; * @param value The bytes for basePath to set. * @return This builder for chaining. */ public Builder setBasePathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); basePath_ = value; bitField0_ |= 0x00000008; 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; } } /** *
       * The transfer protocol of the API. Values MUST be from the list: "http",
       * "https", "ws", "wss". If the schemes is not included, the default scheme to
       * be used is the one used to access the OpenAPI definition itself.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @return A list containing the schemes. */ public java.util.List getSchemesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme>(schemes_, schemes_converter_); } /** *
       * The transfer protocol of the API. Values MUST be from the list: "http",
       * "https", "ws", "wss". If the schemes is not included, the default scheme to
       * be used is the one used to access the OpenAPI definition itself.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @return The count of schemes. */ public int getSchemesCount() { return schemes_.size(); } /** *
       * The transfer protocol of the API. Values MUST be from the list: "http",
       * "https", "ws", "wss". If the schemes is not included, the default scheme to
       * be used is the one used to access the OpenAPI definition itself.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @param index The index of the element to return. * @return The schemes at the given index. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme getSchemes(int index) { return schemes_converter_.convert(schemes_.get(index)); } /** *
       * The transfer protocol of the API. Values MUST be from the list: "http",
       * "https", "ws", "wss". If the schemes is not included, the default scheme to
       * be used is the one used to access the OpenAPI definition itself.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @param index The index to set the value at. * @param value The schemes to set. * @return This builder for chaining. */ public Builder setSchemes( int index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme value) { if (value == null) { throw new NullPointerException(); } ensureSchemesIsMutable(); schemes_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * The transfer protocol of the API. Values MUST be from the list: "http",
       * "https", "ws", "wss". If the schemes is not included, the default scheme to
       * be used is the one used to access the OpenAPI definition itself.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @param value The schemes to add. * @return This builder for chaining. */ public Builder addSchemes(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme value) { if (value == null) { throw new NullPointerException(); } ensureSchemesIsMutable(); schemes_.add(value.getNumber()); onChanged(); return this; } /** *
       * The transfer protocol of the API. Values MUST be from the list: "http",
       * "https", "ws", "wss". If the schemes is not included, the default scheme to
       * be used is the one used to access the OpenAPI definition itself.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @param values The schemes to add. * @return This builder for chaining. */ public Builder addAllSchemes( java.lang.Iterable values) { ensureSchemesIsMutable(); for (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme value : values) { schemes_.add(value.getNumber()); } onChanged(); return this; } /** *
       * The transfer protocol of the API. Values MUST be from the list: "http",
       * "https", "ws", "wss". If the schemes is not included, the default scheme to
       * be used is the one used to access the OpenAPI definition itself.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @return This builder for chaining. */ public Builder clearSchemes() { schemes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
       * The transfer protocol of the API. Values MUST be from the list: "http",
       * "https", "ws", "wss". If the schemes is not included, the default scheme to
       * be used is the one used to access the OpenAPI definition itself.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @return A list containing the enum numeric values on the wire for schemes. */ public java.util.List getSchemesValueList() { return java.util.Collections.unmodifiableList(schemes_); } /** *
       * The transfer protocol of the API. Values MUST be from the list: "http",
       * "https", "ws", "wss". If the schemes is not included, the default scheme to
       * be used is the one used to access the OpenAPI definition itself.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @param index The index of the value to return. * @return The enum numeric value on the wire of schemes at the given index. */ public int getSchemesValue(int index) { return schemes_.get(index); } /** *
       * The transfer protocol of the API. Values MUST be from the list: "http",
       * "https", "ws", "wss". If the schemes is not included, the default scheme to
       * be used is the one used to access the OpenAPI definition itself.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @param index The index to set the value at. * @param value The enum numeric value on the wire for schemes to set. * @return This builder for chaining. */ public Builder setSchemesValue( int index, int value) { ensureSchemesIsMutable(); schemes_.set(index, value); onChanged(); return this; } /** *
       * The transfer protocol of the API. Values MUST be from the list: "http",
       * "https", "ws", "wss". If the schemes is not included, the default scheme to
       * be used is the one used to access the OpenAPI definition itself.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @param value The enum numeric value on the wire for schemes to add. * @return This builder for chaining. */ public Builder addSchemesValue(int value) { ensureSchemesIsMutable(); schemes_.add(value); onChanged(); return this; } /** *
       * The transfer protocol of the API. Values MUST be from the list: "http",
       * "https", "ws", "wss". If the schemes is not included, the default scheme to
       * be used is the one used to access the OpenAPI definition itself.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; * @param values The enum numeric values on the wire for schemes to add. * @return This builder for chaining. */ 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; } } /** *
       * A list of MIME types the APIs can consume. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string consumes = 6; * @return A list containing the consumes. */ public com.google.protobuf.ProtocolStringList getConsumesList() { return consumes_.getUnmodifiableView(); } /** *
       * A list of MIME types the APIs can consume. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string consumes = 6; * @return The count of consumes. */ public int getConsumesCount() { return consumes_.size(); } /** *
       * A list of MIME types the APIs can consume. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string consumes = 6; * @param index The index of the element to return. * @return The consumes at the given index. */ public java.lang.String getConsumes(int index) { return consumes_.get(index); } /** *
       * A list of MIME types the APIs can consume. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string consumes = 6; * @param index The index of the value to return. * @return The bytes of the consumes at the given index. */ public com.google.protobuf.ByteString getConsumesBytes(int index) { return consumes_.getByteString(index); } /** *
       * A list of MIME types the APIs can consume. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string consumes = 6; * @param index The index to set the value at. * @param value The consumes to set. * @return This builder for chaining. */ public Builder setConsumes( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConsumesIsMutable(); consumes_.set(index, value); onChanged(); return this; } /** *
       * A list of MIME types the APIs can consume. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string consumes = 6; * @param value The consumes to add. * @return This builder for chaining. */ public Builder addConsumes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConsumesIsMutable(); consumes_.add(value); onChanged(); return this; } /** *
       * A list of MIME types the APIs can consume. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string consumes = 6; * @param values The consumes to add. * @return This builder for chaining. */ public Builder addAllConsumes( java.lang.Iterable values) { ensureConsumesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, consumes_); onChanged(); return this; } /** *
       * A list of MIME types the APIs can consume. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string consumes = 6; * @return This builder for chaining. */ public Builder clearConsumes() { consumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
       * A list of MIME types the APIs can consume. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string consumes = 6; * @param value The bytes of the consumes to add. * @return This builder for chaining. */ 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; } } /** *
       * A list of MIME types the APIs can produce. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string produces = 7; * @return A list containing the produces. */ public com.google.protobuf.ProtocolStringList getProducesList() { return produces_.getUnmodifiableView(); } /** *
       * A list of MIME types the APIs can produce. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string produces = 7; * @return The count of produces. */ public int getProducesCount() { return produces_.size(); } /** *
       * A list of MIME types the APIs can produce. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string produces = 7; * @param index The index of the element to return. * @return The produces at the given index. */ public java.lang.String getProduces(int index) { return produces_.get(index); } /** *
       * A list of MIME types the APIs can produce. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string produces = 7; * @param index The index of the value to return. * @return The bytes of the produces at the given index. */ public com.google.protobuf.ByteString getProducesBytes(int index) { return produces_.getByteString(index); } /** *
       * A list of MIME types the APIs can produce. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string produces = 7; * @param index The index to set the value at. * @param value The produces to set. * @return This builder for chaining. */ public Builder setProduces( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProducesIsMutable(); produces_.set(index, value); onChanged(); return this; } /** *
       * A list of MIME types the APIs can produce. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string produces = 7; * @param value The produces to add. * @return This builder for chaining. */ public Builder addProduces( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProducesIsMutable(); produces_.add(value); onChanged(); return this; } /** *
       * A list of MIME types the APIs can produce. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string produces = 7; * @param values The produces to add. * @return This builder for chaining. */ public Builder addAllProduces( java.lang.Iterable values) { ensureProducesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, produces_); onChanged(); return this; } /** *
       * A list of MIME types the APIs can produce. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string produces = 7; * @return This builder for chaining. */ public Builder clearProduces() { produces_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
       * A list of MIME types the APIs can produce. This is global to all APIs but
       * can be overridden on specific API calls. Value MUST be as described under
       * Mime Types.
       * 
* * repeated string produces = 7; * @param value The bytes of the produces to add. * @return This builder for chaining. */ 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.MapField< java.lang.String, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response> responses_; private com.google.protobuf.MapField internalGetResponses() { if (responses_ == null) { return com.google.protobuf.MapField.emptyMapField( ResponsesDefaultEntryHolder.defaultEntry); } return responses_; } private com.google.protobuf.MapField internalGetMutableResponses() { if (responses_ == null) { responses_ = com.google.protobuf.MapField.newMapField( ResponsesDefaultEntryHolder.defaultEntry); } if (!responses_.isMutable()) { responses_ = responses_.copy(); } bitField0_ |= 0x00000080; onChanged(); return responses_; } public int getResponsesCount() { return internalGetResponses().getMap().size(); } /** *
       * An object to hold responses that can be used across operations. This
       * property does not define global responses for all operations.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ @java.lang.Override public boolean containsResponses( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetResponses().getMap().containsKey(key); } /** * Use {@link #getResponsesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getResponses() { return getResponsesMap(); } /** *
       * An object to hold responses that can be used across operations. This
       * property does not define global responses for all operations.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ @java.lang.Override public java.util.Map getResponsesMap() { return internalGetResponses().getMap(); } /** *
       * An object to hold responses that can be used across operations. This
       * property does not define global responses for all operations.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ @java.lang.Override public /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response getResponsesOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponses().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * An object to hold responses that can be used across operations. This
       * property does not define global responses for all operations.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response getResponsesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponses().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearResponses() { bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableResponses().getMutableMap() .clear(); return this; } /** *
       * An object to hold responses that can be used across operations. This
       * property does not define global responses for all operations.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ public Builder removeResponses( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableResponses().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableResponses() { bitField0_ |= 0x00000080; return internalGetMutableResponses().getMutableMap(); } /** *
       * An object to hold responses that can be used across operations. This
       * property does not define global responses for all operations.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ public Builder putResponses( java.lang.String key, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableResponses().getMutableMap() .put(key, value); bitField0_ |= 0x00000080; return this; } /** *
       * An object to hold responses that can be used across operations. This
       * property does not define global responses for all operations.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 10; */ public Builder putAllResponses( java.util.Map values) { internalGetMutableResponses().getMutableMap() .putAll(values); bitField0_ |= 0x00000080; return this; } private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions securityDefinitions_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitionsOrBuilder> securityDefinitionsBuilder_; /** *
       * Security scheme definitions that can be used across the specification.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; * @return Whether the securityDefinitions field is set. */ public boolean hasSecurityDefinitions() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * Security scheme definitions that can be used across the specification.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; * @return The securityDefinitions. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions getSecurityDefinitions() { if (securityDefinitionsBuilder_ == null) { return securityDefinitions_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.getDefaultInstance() : securityDefinitions_; } else { return securityDefinitionsBuilder_.getMessage(); } } /** *
       * Security scheme definitions that can be used across the specification.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; */ public Builder setSecurityDefinitions(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions value) { if (securityDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } securityDefinitions_ = value; } else { securityDefinitionsBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * Security scheme definitions that can be used across the specification.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; */ public Builder setSecurityDefinitions( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.Builder builderForValue) { if (securityDefinitionsBuilder_ == null) { securityDefinitions_ = builderForValue.build(); } else { securityDefinitionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * Security scheme definitions that can be used across the specification.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; */ public Builder mergeSecurityDefinitions(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions value) { if (securityDefinitionsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && securityDefinitions_ != null && securityDefinitions_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.getDefaultInstance()) { getSecurityDefinitionsBuilder().mergeFrom(value); } else { securityDefinitions_ = value; } } else { securityDefinitionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * Security scheme definitions that can be used across the specification.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; */ public Builder clearSecurityDefinitions() { bitField0_ = (bitField0_ & ~0x00000100); securityDefinitions_ = null; if (securityDefinitionsBuilder_ != null) { securityDefinitionsBuilder_.dispose(); securityDefinitionsBuilder_ = null; } onChanged(); return this; } /** *
       * Security scheme definitions that can be used across the specification.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.Builder getSecurityDefinitionsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getSecurityDefinitionsFieldBuilder().getBuilder(); } /** *
       * Security scheme definitions that can be used across the specification.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitionsOrBuilder getSecurityDefinitionsOrBuilder() { if (securityDefinitionsBuilder_ != null) { return securityDefinitionsBuilder_.getMessageOrBuilder(); } else { return securityDefinitions_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.getDefaultInstance() : securityDefinitions_; } } /** *
       * Security scheme definitions that can be used across the specification.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitionsOrBuilder> getSecurityDefinitionsFieldBuilder() { if (securityDefinitionsBuilder_ == null) { securityDefinitionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitionsOrBuilder>( getSecurityDefinitions(), getParentForChildren(), isClean()); securityDefinitions_ = null; } return securityDefinitionsBuilder_; } 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_openapiv2.options.Openapiv2.SecurityRequirement, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirementOrBuilder> securityBuilder_; /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public java.util.List getSecurityList() { if (securityBuilder_ == null) { return java.util.Collections.unmodifiableList(security_); } else { return securityBuilder_.getMessageList(); } } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public int getSecurityCount() { if (securityBuilder_ == null) { return security_.size(); } else { return securityBuilder_.getCount(); } } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement getSecurity(int index) { if (securityBuilder_ == null) { return security_.get(index); } else { return securityBuilder_.getMessage(index); } } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder setSecurity( int index, grpc.gateway.protoc_gen_openapiv2.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; } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder setSecurity( int index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder builderForValue) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.set(index, builderForValue.build()); onChanged(); } else { securityBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder addSecurity(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement value) { if (securityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecurityIsMutable(); security_.add(value); onChanged(); } else { securityBuilder_.addMessage(value); } return this; } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder addSecurity( int index, grpc.gateway.protoc_gen_openapiv2.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; } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder addSecurity( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder builderForValue) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.add(builderForValue.build()); onChanged(); } else { securityBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder addSecurity( int index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder builderForValue) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.add(index, builderForValue.build()); onChanged(); } else { securityBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.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; } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder clearSecurity() { if (securityBuilder_ == null) { security_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { securityBuilder_.clear(); } return this; } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder removeSecurity(int index) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.remove(index); onChanged(); } else { securityBuilder_.remove(index); } return this; } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder getSecurityBuilder( int index) { return getSecurityFieldBuilder().getBuilder(index); } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirementOrBuilder getSecurityOrBuilder( int index) { if (securityBuilder_ == null) { return security_.get(index); } else { return securityBuilder_.getMessageOrBuilder(index); } } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public java.util.List getSecurityOrBuilderList() { if (securityBuilder_ != null) { return securityBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(security_); } } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder addSecurityBuilder() { return getSecurityFieldBuilder().addBuilder( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.getDefaultInstance()); } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder addSecurityBuilder( int index) { return getSecurityFieldBuilder().addBuilder( index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.getDefaultInstance()); } /** *
       * A declaration of which security schemes are applied for the API as a whole.
       * The list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements).
       * Individual operations can override this definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public java.util.List getSecurityBuilderList() { return getSecurityFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirementOrBuilder> getSecurityFieldBuilder() { if (securityBuilder_ == null) { securityBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirementOrBuilder>( security_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); security_ = null; } return securityBuilder_; } private java.util.List tags_ = java.util.Collections.emptyList(); private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { tags_ = new java.util.ArrayList(tags_); bitField0_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.TagOrBuilder> tagsBuilder_; /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public java.util.List getTagsList() { if (tagsBuilder_ == null) { return java.util.Collections.unmodifiableList(tags_); } else { return tagsBuilder_.getMessageList(); } } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public int getTagsCount() { if (tagsBuilder_ == null) { return tags_.size(); } else { return tagsBuilder_.getCount(); } } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag getTags(int index) { if (tagsBuilder_ == null) { return tags_.get(index); } else { return tagsBuilder_.getMessage(index); } } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public Builder setTags( int index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag value) { if (tagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); } else { tagsBuilder_.setMessage(index, value); } return this; } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public Builder setTags( int index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.Builder builderForValue) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.set(index, builderForValue.build()); onChanged(); } else { tagsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public Builder addTags(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag value) { if (tagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); } else { tagsBuilder_.addMessage(value); } return this; } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public Builder addTags( int index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag value) { if (tagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(index, value); onChanged(); } else { tagsBuilder_.addMessage(index, value); } return this; } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public Builder addTags( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.Builder builderForValue) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.add(builderForValue.build()); onChanged(); } else { tagsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public Builder addTags( int index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.Builder builderForValue) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.add(index, builderForValue.build()); onChanged(); } else { tagsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public Builder addAllTags( java.lang.Iterable values) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); onChanged(); } else { tagsBuilder_.addAllMessages(values); } return this; } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public Builder clearTags() { if (tagsBuilder_ == null) { tags_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { tagsBuilder_.clear(); } return this; } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public Builder removeTags(int index) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.remove(index); onChanged(); } else { tagsBuilder_.remove(index); } return this; } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.Builder getTagsBuilder( int index) { return getTagsFieldBuilder().getBuilder(index); } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.TagOrBuilder getTagsOrBuilder( int index) { if (tagsBuilder_ == null) { return tags_.get(index); } else { return tagsBuilder_.getMessageOrBuilder(index); } } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public java.util.List getTagsOrBuilderList() { if (tagsBuilder_ != null) { return tagsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tags_); } } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.Builder addTagsBuilder() { return getTagsFieldBuilder().addBuilder( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.getDefaultInstance()); } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.Builder addTagsBuilder( int index) { return getTagsFieldBuilder().addBuilder( index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.getDefaultInstance()); } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Tag tags = 13; */ public java.util.List getTagsBuilderList() { return getTagsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.TagOrBuilder> getTagsFieldBuilder() { if (tagsBuilder_ == null) { tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.TagOrBuilder>( tags_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); tags_ = null; } return tagsBuilder_; } private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation externalDocs_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder> externalDocsBuilder_; /** *
       * Additional external documentation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; * @return Whether the externalDocs field is set. */ public boolean hasExternalDocs() { return ((bitField0_ & 0x00000800) != 0); } /** *
       * Additional external documentation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; * @return The externalDocs. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation getExternalDocs() { if (externalDocsBuilder_ == null) { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } else { return externalDocsBuilder_.getMessage(); } } /** *
       * Additional external documentation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; */ public Builder setExternalDocs(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } externalDocs_ = value; } else { externalDocsBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       * Additional external documentation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; */ public Builder setExternalDocs( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder builderForValue) { if (externalDocsBuilder_ == null) { externalDocs_ = builderForValue.build(); } else { externalDocsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       * Additional external documentation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; */ public Builder mergeExternalDocs(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && externalDocs_ != null && externalDocs_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance()) { getExternalDocsBuilder().mergeFrom(value); } else { externalDocs_ = value; } } else { externalDocsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       * Additional external documentation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; */ public Builder clearExternalDocs() { bitField0_ = (bitField0_ & ~0x00000800); externalDocs_ = null; if (externalDocsBuilder_ != null) { externalDocsBuilder_.dispose(); externalDocsBuilder_ = null; } onChanged(); return this; } /** *
       * Additional external documentation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder getExternalDocsBuilder() { bitField0_ |= 0x00000800; onChanged(); return getExternalDocsFieldBuilder().getBuilder(); } /** *
       * Additional external documentation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { if (externalDocsBuilder_ != null) { return externalDocsBuilder_.getMessageOrBuilder(); } else { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } } /** *
       * Additional external documentation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder> getExternalDocsFieldBuilder() { if (externalDocsBuilder_ == null) { externalDocsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder>( getExternalDocs(), getParentForChildren(), isClean()); externalDocs_ = null; } return externalDocsBuilder_; } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Value> extensions_; private com.google.protobuf.MapField internalGetExtensions() { if (extensions_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtensionsDefaultEntryHolder.defaultEntry); } return extensions_; } private com.google.protobuf.MapField internalGetMutableExtensions() { if (extensions_ == null) { extensions_ = com.google.protobuf.MapField.newMapField( ExtensionsDefaultEntryHolder.defaultEntry); } if (!extensions_.isMutable()) { extensions_ = extensions_.copy(); } bitField0_ |= 0x00001000; onChanged(); return extensions_; } public int getExtensionsCount() { return internalGetExtensions().getMap().size(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 15; */ @java.lang.Override public boolean containsExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtensions().getMap().containsKey(key); } /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtensions() { return getExtensionsMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 15; */ @java.lang.Override public java.util.Map getExtensionsMap() { return internalGetExtensions().getMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 15; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 15; */ @java.lang.Override public com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearExtensions() { bitField0_ = (bitField0_ & ~0x00001000); internalGetMutableExtensions().getMutableMap() .clear(); return this; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 15; */ public Builder removeExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExtensions().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableExtensions() { bitField0_ |= 0x00001000; return internalGetMutableExtensions().getMutableMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 15; */ public Builder putExtensions( java.lang.String key, com.google.protobuf.Value value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableExtensions().getMutableMap() .put(key, value); bitField0_ |= 0x00001000; return this; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 15; */ public Builder putAllExtensions( java.util.Map values) { internalGetMutableExtensions().getMutableMap() .putAll(values); bitField0_ |= 0x00001000; 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_openapiv2.options.Swagger) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Swagger) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Swagger(); } public static grpc.gateway.protoc_gen_openapiv2.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.Swagger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OperationOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.Operation) com.google.protobuf.MessageOrBuilder { /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated string tags = 1; * @return A list containing the tags. */ java.util.List getTagsList(); /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated string tags = 1; * @return The count of tags. */ int getTagsCount(); /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated string tags = 1; * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated string tags = 1; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); /** *
     * A short summary of what the operation does. For maximum readability in the
     * swagger-ui, this field SHOULD be less than 120 characters.
     * 
* * string summary = 2; * @return The summary. */ java.lang.String getSummary(); /** *
     * A short summary of what the operation does. For maximum readability in the
     * swagger-ui, this field SHOULD be less than 120 characters.
     * 
* * string summary = 2; * @return The bytes for summary. */ com.google.protobuf.ByteString getSummaryBytes(); /** *
     * A verbose explanation of the operation behavior. GFM syntax can be used for
     * rich text representation.
     * 
* * string description = 3; * @return The description. */ java.lang.String getDescription(); /** *
     * A verbose explanation of the operation behavior. GFM syntax can be used for
     * rich text representation.
     * 
* * string description = 3; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Additional external documentation for this operation.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; * @return Whether the externalDocs field is set. */ boolean hasExternalDocs(); /** *
     * Additional external documentation for this operation.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; * @return The externalDocs. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation getExternalDocs(); /** *
     * Additional external documentation for this operation.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder(); /** *
     * Unique string used to identify the operation. The id MUST be unique among
     * all operations described in the API. Tools and libraries MAY use the
     * operationId to uniquely identify an operation, therefore, it is recommended
     * to follow common programming naming conventions.
     * 
* * string operation_id = 5; * @return The operationId. */ java.lang.String getOperationId(); /** *
     * Unique string used to identify the operation. The id MUST be unique among
     * all operations described in the API. Tools and libraries MAY use the
     * operationId to uniquely identify an operation, therefore, it is recommended
     * to follow common programming naming conventions.
     * 
* * string operation_id = 5; * @return The bytes for operationId. */ com.google.protobuf.ByteString getOperationIdBytes(); /** *
     * A list of MIME types the operation can consume. This overrides the consumes
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string consumes = 6; * @return A list containing the consumes. */ java.util.List getConsumesList(); /** *
     * A list of MIME types the operation can consume. This overrides the consumes
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string consumes = 6; * @return The count of consumes. */ int getConsumesCount(); /** *
     * A list of MIME types the operation can consume. This overrides the consumes
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string consumes = 6; * @param index The index of the element to return. * @return The consumes at the given index. */ java.lang.String getConsumes(int index); /** *
     * A list of MIME types the operation can consume. This overrides the consumes
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string consumes = 6; * @param index The index of the value to return. * @return The bytes of the consumes at the given index. */ com.google.protobuf.ByteString getConsumesBytes(int index); /** *
     * A list of MIME types the operation can produce. This overrides the produces
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string produces = 7; * @return A list containing the produces. */ java.util.List getProducesList(); /** *
     * A list of MIME types the operation can produce. This overrides the produces
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string produces = 7; * @return The count of produces. */ int getProducesCount(); /** *
     * A list of MIME types the operation can produce. This overrides the produces
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string produces = 7; * @param index The index of the element to return. * @return The produces at the given index. */ java.lang.String getProduces(int index); /** *
     * A list of MIME types the operation can produce. This overrides the produces
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string produces = 7; * @param index The index of the value to return. * @return The bytes of the produces at the given index. */ com.google.protobuf.ByteString getProducesBytes(int index); /** *
     * The list of possible responses as they are returned from executing this
     * operation.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ int getResponsesCount(); /** *
     * The list of possible responses as they are returned from executing this
     * operation.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ boolean containsResponses( java.lang.String key); /** * Use {@link #getResponsesMap()} instead. */ @java.lang.Deprecated java.util.Map getResponses(); /** *
     * The list of possible responses as they are returned from executing this
     * operation.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ java.util.Map getResponsesMap(); /** *
     * The list of possible responses as they are returned from executing this
     * operation.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response getResponsesOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response defaultValue); /** *
     * The list of possible responses as they are returned from executing this
     * operation.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response getResponsesOrThrow( java.lang.String key); /** *
     * The transfer protocol for the operation. Values MUST be from the list:
     * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
     * schemes definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @return A list containing the schemes. */ java.util.List getSchemesList(); /** *
     * The transfer protocol for the operation. Values MUST be from the list:
     * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
     * schemes definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @return The count of schemes. */ int getSchemesCount(); /** *
     * The transfer protocol for the operation. Values MUST be from the list:
     * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
     * schemes definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @param index The index of the element to return. * @return The schemes at the given index. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme getSchemes(int index); /** *
     * The transfer protocol for the operation. Values MUST be from the list:
     * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
     * schemes definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @return A list containing the enum numeric values on the wire for schemes. */ java.util.List getSchemesValueList(); /** *
     * The transfer protocol for the operation. Values MUST be from the list:
     * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
     * schemes definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @param index The index of the value to return. * @return The enum numeric value on the wire of schemes at the given index. */ int getSchemesValue(int index); /** *
     * Declares this operation to be deprecated. Usage of the declared operation
     * should be refrained. Default value is false.
     * 
* * bool deprecated = 11; * @return The deprecated. */ boolean getDeprecated(); /** *
     * A declaration of which security schemes are applied for this operation. The
     * list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements). This
     * definition overrides any declared top-level security. To remove a top-level
     * security declaration, an empty array can be used.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ java.util.List getSecurityList(); /** *
     * A declaration of which security schemes are applied for this operation. The
     * list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements). This
     * definition overrides any declared top-level security. To remove a top-level
     * security declaration, an empty array can be used.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement getSecurity(int index); /** *
     * A declaration of which security schemes are applied for this operation. The
     * list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements). This
     * definition overrides any declared top-level security. To remove a top-level
     * security declaration, an empty array can be used.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ int getSecurityCount(); /** *
     * A declaration of which security schemes are applied for this operation. The
     * list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements). This
     * definition overrides any declared top-level security. To remove a top-level
     * security declaration, an empty array can be used.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ java.util.List getSecurityOrBuilderList(); /** *
     * A declaration of which security schemes are applied for this operation. The
     * list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements). This
     * definition overrides any declared top-level security. To remove a top-level
     * security declaration, an empty array can be used.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirementOrBuilder getSecurityOrBuilder( int index); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 13; */ int getExtensionsCount(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 13; */ boolean containsExtensions( java.lang.String key); /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Deprecated java.util.Map getExtensions(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 13; */ java.util.Map getExtensionsMap(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 13; */ /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 13; */ com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key); /** *
     * Custom parameters such as HTTP request headers.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/
     * and https://swagger.io/specification/v2/#parameter-object.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; * @return Whether the parameters field is set. */ boolean hasParameters(); /** *
     * Custom parameters such as HTTP request headers.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/
     * and https://swagger.io/specification/v2/#parameter-object.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; * @return The parameters. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters getParameters(); /** *
     * Custom parameters such as HTTP request headers.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/
     * and https://swagger.io/specification/v2/#parameter-object.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ParametersOrBuilder getParametersOrBuilder(); } /** *
   * `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
   * Example:
   *  service EchoService {
   *    rpc Echo(SimpleMessage) returns (SimpleMessage) {
   *      option (google.api.http) = {
   *        get: "/v1/example/echo/{id}"
   *      };
   *      option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
   *        summary: "Get a message.";
   *        operation_id: "getMessage";
   *        tags: "echo";
   *        responses: {
   *          key: "200"
   *            value: {
   *            description: "OK";
   *          }
   *        }
   *      };
   *    }
   *  }
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Operation} */ public static final class Operation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.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_ = java.util.Collections.emptyList(); security_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Operation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 9: return internalGetResponses(); case 13: return internalGetExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation.Builder.class); } public static final int TAGS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList tags_; /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated string tags = 1; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated string tags = 1; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated string tags = 1; * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** *
     * A list of tags for API documentation control. Tags can be used for logical
     * grouping of operations by resources or any other qualifier.
     * 
* * repeated string tags = 1; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int SUMMARY_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object summary_ = ""; /** *
     * A short summary of what the operation does. For maximum readability in the
     * swagger-ui, this field SHOULD be less than 120 characters.
     * 
* * string summary = 2; * @return The summary. */ @java.lang.Override 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; } } /** *
     * A short summary of what the operation does. For maximum readability in the
     * swagger-ui, this field SHOULD be less than 120 characters.
     * 
* * string summary = 2; * @return The bytes for summary. */ @java.lang.Override 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; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
     * A verbose explanation of the operation behavior. GFM syntax can be used for
     * rich text representation.
     * 
* * string description = 3; * @return The description. */ @java.lang.Override 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 verbose explanation of the operation behavior. GFM syntax can be used for
     * rich text representation.
     * 
* * string description = 3; * @return The bytes for description. */ @java.lang.Override 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_openapiv2.options.Openapiv2.ExternalDocumentation externalDocs_; /** *
     * Additional external documentation for this operation.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; * @return Whether the externalDocs field is set. */ @java.lang.Override public boolean hasExternalDocs() { return externalDocs_ != null; } /** *
     * Additional external documentation for this operation.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; * @return The externalDocs. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation getExternalDocs() { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } /** *
     * Additional external documentation for this operation.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } public static final int OPERATION_ID_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object operationId_ = ""; /** *
     * Unique string used to identify the operation. The id MUST be unique among
     * all operations described in the API. Tools and libraries MAY use the
     * operationId to uniquely identify an operation, therefore, it is recommended
     * to follow common programming naming conventions.
     * 
* * string operation_id = 5; * @return The operationId. */ @java.lang.Override 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; } } /** *
     * Unique string used to identify the operation. The id MUST be unique among
     * all operations described in the API. Tools and libraries MAY use the
     * operationId to uniquely identify an operation, therefore, it is recommended
     * to follow common programming naming conventions.
     * 
* * string operation_id = 5; * @return The bytes for operationId. */ @java.lang.Override 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; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList consumes_; /** *
     * A list of MIME types the operation can consume. This overrides the consumes
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string consumes = 6; * @return A list containing the consumes. */ public com.google.protobuf.ProtocolStringList getConsumesList() { return consumes_; } /** *
     * A list of MIME types the operation can consume. This overrides the consumes
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string consumes = 6; * @return The count of consumes. */ public int getConsumesCount() { return consumes_.size(); } /** *
     * A list of MIME types the operation can consume. This overrides the consumes
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string consumes = 6; * @param index The index of the element to return. * @return The consumes at the given index. */ public java.lang.String getConsumes(int index) { return consumes_.get(index); } /** *
     * A list of MIME types the operation can consume. This overrides the consumes
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string consumes = 6; * @param index The index of the value to return. * @return The bytes of the consumes at the given index. */ public com.google.protobuf.ByteString getConsumesBytes(int index) { return consumes_.getByteString(index); } public static final int PRODUCES_FIELD_NUMBER = 7; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList produces_; /** *
     * A list of MIME types the operation can produce. This overrides the produces
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string produces = 7; * @return A list containing the produces. */ public com.google.protobuf.ProtocolStringList getProducesList() { return produces_; } /** *
     * A list of MIME types the operation can produce. This overrides the produces
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string produces = 7; * @return The count of produces. */ public int getProducesCount() { return produces_.size(); } /** *
     * A list of MIME types the operation can produce. This overrides the produces
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string produces = 7; * @param index The index of the element to return. * @return The produces at the given index. */ public java.lang.String getProduces(int index) { return produces_.get(index); } /** *
     * A list of MIME types the operation can produce. This overrides the produces
     * definition at the OpenAPI Object. An empty value MAY be used to clear the
     * global definition. Value MUST be as described under Mime Types.
     * 
* * repeated string produces = 7; * @param index The index of the value to return. * @return The bytes of the produces at the given index. */ public com.google.protobuf.ByteString getProducesBytes(int index) { return produces_.getByteString(index); } public static final int RESPONSES_FIELD_NUMBER = 9; private static final class ResponsesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_ResponsesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response> responses_; private com.google.protobuf.MapField internalGetResponses() { if (responses_ == null) { return com.google.protobuf.MapField.emptyMapField( ResponsesDefaultEntryHolder.defaultEntry); } return responses_; } public int getResponsesCount() { return internalGetResponses().getMap().size(); } /** *
     * The list of possible responses as they are returned from executing this
     * operation.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ @java.lang.Override public boolean containsResponses( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetResponses().getMap().containsKey(key); } /** * Use {@link #getResponsesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getResponses() { return getResponsesMap(); } /** *
     * The list of possible responses as they are returned from executing this
     * operation.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ @java.lang.Override public java.util.Map getResponsesMap() { return internalGetResponses().getMap(); } /** *
     * The list of possible responses as they are returned from executing this
     * operation.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ @java.lang.Override public /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response getResponsesOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponses().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * The list of possible responses as they are returned from executing this
     * operation.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response getResponsesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponses().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int SCHEMES_FIELD_NUMBER = 10; @SuppressWarnings("serial") private java.util.List schemes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme> schemes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme>() { public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme convert(java.lang.Integer from) { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme result = grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme.forNumber(from); return result == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme.UNRECOGNIZED : result; } }; /** *
     * The transfer protocol for the operation. Values MUST be from the list:
     * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
     * schemes definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @return A list containing the schemes. */ @java.lang.Override public java.util.List getSchemesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme>(schemes_, schemes_converter_); } /** *
     * The transfer protocol for the operation. Values MUST be from the list:
     * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
     * schemes definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @return The count of schemes. */ @java.lang.Override public int getSchemesCount() { return schemes_.size(); } /** *
     * The transfer protocol for the operation. Values MUST be from the list:
     * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
     * schemes definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @param index The index of the element to return. * @return The schemes at the given index. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme getSchemes(int index) { return schemes_converter_.convert(schemes_.get(index)); } /** *
     * The transfer protocol for the operation. Values MUST be from the list:
     * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
     * schemes definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @return A list containing the enum numeric values on the wire for schemes. */ @java.lang.Override public java.util.List getSchemesValueList() { return schemes_; } /** *
     * The transfer protocol for the operation. Values MUST be from the list:
     * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
     * schemes definition.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @param index The index of the value to return. * @return The enum numeric value on the wire of schemes at the given index. */ @java.lang.Override public int getSchemesValue(int index) { return schemes_.get(index); } private int schemesMemoizedSerializedSize; public static final int DEPRECATED_FIELD_NUMBER = 11; private boolean deprecated_ = false; /** *
     * Declares this operation to be deprecated. Usage of the declared operation
     * should be refrained. Default value is false.
     * 
* * bool deprecated = 11; * @return The deprecated. */ @java.lang.Override public boolean getDeprecated() { return deprecated_; } public static final int SECURITY_FIELD_NUMBER = 12; @SuppressWarnings("serial") private java.util.List security_; /** *
     * A declaration of which security schemes are applied for this operation. The
     * list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements). This
     * definition overrides any declared top-level security. To remove a top-level
     * security declaration, an empty array can be used.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ @java.lang.Override public java.util.List getSecurityList() { return security_; } /** *
     * A declaration of which security schemes are applied for this operation. The
     * list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements). This
     * definition overrides any declared top-level security. To remove a top-level
     * security declaration, an empty array can be used.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ @java.lang.Override public java.util.List getSecurityOrBuilderList() { return security_; } /** *
     * A declaration of which security schemes are applied for this operation. The
     * list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements). This
     * definition overrides any declared top-level security. To remove a top-level
     * security declaration, an empty array can be used.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ @java.lang.Override public int getSecurityCount() { return security_.size(); } /** *
     * A declaration of which security schemes are applied for this operation. The
     * list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements). This
     * definition overrides any declared top-level security. To remove a top-level
     * security declaration, an empty array can be used.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement getSecurity(int index) { return security_.get(index); } /** *
     * A declaration of which security schemes are applied for this operation. The
     * list of values describes alternative security schemes that can be used
     * (that is, there is a logical OR between the security requirements). This
     * definition overrides any declared top-level security. To remove a top-level
     * security declaration, an empty array can be used.
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirementOrBuilder getSecurityOrBuilder( int index) { return security_.get(index); } public static final int EXTENSIONS_FIELD_NUMBER = 13; private static final class ExtensionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_ExtensionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.protobuf.Value.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Value> extensions_; private com.google.protobuf.MapField internalGetExtensions() { if (extensions_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtensionsDefaultEntryHolder.defaultEntry); } return extensions_; } public int getExtensionsCount() { return internalGetExtensions().getMap().size(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 13; */ @java.lang.Override public boolean containsExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtensions().getMap().containsKey(key); } /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtensions() { return getExtensionsMap(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 13; */ @java.lang.Override public java.util.Map getExtensionsMap() { return internalGetExtensions().getMap(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 13; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 13; */ @java.lang.Override public com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int PARAMETERS_FIELD_NUMBER = 14; private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters parameters_; /** *
     * Custom parameters such as HTTP request headers.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/
     * and https://swagger.io/specification/v2/#parameter-object.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; * @return Whether the parameters field is set. */ @java.lang.Override public boolean hasParameters() { return parameters_ != null; } /** *
     * Custom parameters such as HTTP request headers.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/
     * and https://swagger.io/specification/v2/#parameter-object.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; * @return The parameters. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters getParameters() { return parameters_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.getDefaultInstance() : parameters_; } /** *
     * Custom parameters such as HTTP request headers.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/
     * and https://swagger.io/specification/v2/#parameter-object.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ParametersOrBuilder getParametersOrBuilder() { return parameters_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.getDefaultInstance() : parameters_; } 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(); for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, summary_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (externalDocs_ != null) { output.writeMessage(4, getExternalDocs()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { 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)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetResponses(), ResponsesDefaultEntryHolder.defaultEntry, 9); if (getSchemesList().size() > 0) { output.writeUInt32NoTag(82); output.writeUInt32NoTag(schemesMemoizedSerializedSize); } for (int i = 0; i < schemes_.size(); i++) { output.writeEnumNoTag(schemes_.get(i)); } if (deprecated_ != false) { output.writeBool(11, deprecated_); } for (int i = 0; i < security_.size(); i++) { output.writeMessage(12, security_.get(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetExtensions(), ExtensionsDefaultEntryHolder.defaultEntry, 13); if (parameters_ != null) { output.writeMessage(14, getParameters()); } getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, summary_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (externalDocs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getExternalDocs()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { 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(); } for (java.util.Map.Entry entry : internalGetResponses().getMap().entrySet()) { com.google.protobuf.MapEntry responses__ = ResponsesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, responses__); } { 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; } 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)); } for (java.util.Map.Entry entry : internalGetExtensions().getMap().entrySet()) { com.google.protobuf.MapEntry extensions__ = ExtensionsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, extensions__); } if (parameters_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getParameters()); } size += getUnknownFields().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_openapiv2.options.Openapiv2.Operation)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation other = (grpc.gateway.protoc_gen_openapiv2.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 (!internalGetResponses().equals( other.internalGetResponses())) return false; if (!schemes_.equals(other.schemes_)) return false; if (getDeprecated() != other.getDeprecated()) return false; if (!getSecurityList() .equals(other.getSecurityList())) return false; if (!internalGetExtensions().equals( other.internalGetExtensions())) return false; if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { if (!getParameters() .equals(other.getParameters())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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 (!internalGetResponses().getMap().isEmpty()) { hash = (37 * hash) + RESPONSES_FIELD_NUMBER; hash = (53 * hash) + internalGetResponses().hashCode(); } if (getSchemesCount() > 0) { hash = (37 * hash) + SCHEMES_FIELD_NUMBER; hash = (53 * hash) + schemes_.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(); } if (!internalGetExtensions().getMap().isEmpty()) { hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetExtensions().hashCode(); } if (hasParameters()) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParameters().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.Operation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.Operation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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
     * Example:
     *  service EchoService {
     *    rpc Echo(SimpleMessage) returns (SimpleMessage) {
     *      option (google.api.http) = {
     *        get: "/v1/example/echo/{id}"
     *      };
     *      option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
     *        summary: "Get a message.";
     *        operation_id: "getMessage";
     *        tags: "echo";
     *        responses: {
     *          key: "200"
     *            value: {
     *            description: "OK";
     *          }
     *        }
     *      };
     *    }
     *  }
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Operation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.Operation) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.OperationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 9: return internalGetResponses(); case 13: return internalGetExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 9: return internalGetMutableResponses(); case 13: return internalGetMutableExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); summary_ = ""; description_ = ""; externalDocs_ = null; if (externalDocsBuilder_ != null) { externalDocsBuilder_.dispose(); externalDocsBuilder_ = null; } operationId_ = ""; consumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); produces_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableResponses().clear(); schemes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); deprecated_ = false; if (securityBuilder_ == null) { security_ = java.util.Collections.emptyList(); } else { security_ = null; securityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); internalGetMutableExtensions().clear(); parameters_ = null; if (parametersBuilder_ != null) { parametersBuilder_.dispose(); parametersBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation result) { if (((bitField0_ & 0x00000001) != 0)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.tags_ = tags_; 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_ & 0x00000100) != 0)) { schemes_ = java.util.Collections.unmodifiableList(schemes_); bitField0_ = (bitField0_ & ~0x00000100); } result.schemes_ = schemes_; if (securityBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0)) { security_ = java.util.Collections.unmodifiableList(security_); bitField0_ = (bitField0_ & ~0x00000400); } result.security_ = security_; } else { result.security_ = securityBuilder_.build(); } } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.summary_ = summary_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.externalDocs_ = externalDocsBuilder_ == null ? externalDocs_ : externalDocsBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.operationId_ = operationId_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.responses_ = internalGetResponses(); result.responses_.makeImmutable(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.deprecated_ = deprecated_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.extensions_ = internalGetExtensions(); result.extensions_.makeImmutable(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); } } @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_openapiv2.options.Openapiv2.Operation) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation other) { if (other == grpc.gateway.protoc_gen_openapiv2.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_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasExternalDocs()) { mergeExternalDocs(other.getExternalDocs()); } if (!other.getOperationId().isEmpty()) { operationId_ = other.operationId_; bitField0_ |= 0x00000010; 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(); } internalGetMutableResponses().mergeFrom( other.internalGetResponses()); bitField0_ |= 0x00000080; if (!other.schemes_.isEmpty()) { if (schemes_.isEmpty()) { schemes_ = other.schemes_; bitField0_ = (bitField0_ & ~0x00000100); } 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_ & ~0x00000400); } else { ensureSecurityIsMutable(); security_.addAll(other.security_); } onChanged(); } } else { if (!other.security_.isEmpty()) { if (securityBuilder_.isEmpty()) { securityBuilder_.dispose(); securityBuilder_ = null; security_ = other.security_; bitField0_ = (bitField0_ & ~0x00000400); securityBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSecurityFieldBuilder() : null; } else { securityBuilder_.addAllMessages(other.security_); } } } internalGetMutableExtensions().mergeFrom( other.internalGetExtensions()); bitField0_ |= 0x00000800; if (other.hasParameters()) { mergeParameters(other.getParameters()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); ensureTagsIsMutable(); tags_.add(s); break; } // case 10 case 18: { summary_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getExternalDocsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { operationId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { java.lang.String s = input.readStringRequireUtf8(); ensureConsumesIsMutable(); consumes_.add(s); break; } // case 50 case 58: { java.lang.String s = input.readStringRequireUtf8(); ensureProducesIsMutable(); produces_.add(s); break; } // case 58 case 74: { com.google.protobuf.MapEntry responses__ = input.readMessage( ResponsesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableResponses().getMutableMap().put( responses__.getKey(), responses__.getValue()); bitField0_ |= 0x00000080; break; } // case 74 case 80: { int tmpRaw = input.readEnum(); ensureSchemesIsMutable(); schemes_.add(tmpRaw); break; } // case 80 case 82: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureSchemesIsMutable(); schemes_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 82 case 88: { deprecated_ = input.readBool(); bitField0_ |= 0x00000200; break; } // case 88 case 98: { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement m = input.readMessage( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.parser(), extensionRegistry); if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.add(m); } else { securityBuilder_.addMessage(m); } break; } // case 98 case 106: { com.google.protobuf.MapEntry extensions__ = input.readMessage( ExtensionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableExtensions().getMutableMap().put( extensions__.getKey(), extensions__.getValue()); bitField0_ |= 0x00000800; break; } // case 106 case 114: { input.readMessage( getParametersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; } } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated string tags = 1; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated string tags = 1; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated string tags = 1; * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated string tags = 1; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated string tags = 1; * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated string tags = 1; * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated string tags = 1; * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags( java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); onChanged(); return this; } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated string tags = 1; * @return This builder for chaining. */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * A list of tags for API documentation control. Tags can be used for logical
       * grouping of operations by resources or any other qualifier.
       * 
* * repeated string tags = 1; * @param value The bytes of the tags to add. * @return This builder for chaining. */ 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_ = ""; /** *
       * A short summary of what the operation does. For maximum readability in the
       * swagger-ui, this field SHOULD be less than 120 characters.
       * 
* * string summary = 2; * @return The summary. */ 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; } } /** *
       * A short summary of what the operation does. For maximum readability in the
       * swagger-ui, this field SHOULD be less than 120 characters.
       * 
* * string summary = 2; * @return The bytes for summary. */ 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; } } /** *
       * A short summary of what the operation does. For maximum readability in the
       * swagger-ui, this field SHOULD be less than 120 characters.
       * 
* * string summary = 2; * @param value The summary to set. * @return This builder for chaining. */ public Builder setSummary( java.lang.String value) { if (value == null) { throw new NullPointerException(); } summary_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * A short summary of what the operation does. For maximum readability in the
       * swagger-ui, this field SHOULD be less than 120 characters.
       * 
* * string summary = 2; * @return This builder for chaining. */ public Builder clearSummary() { summary_ = getDefaultInstance().getSummary(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * A short summary of what the operation does. For maximum readability in the
       * swagger-ui, this field SHOULD be less than 120 characters.
       * 
* * string summary = 2; * @param value The bytes for summary to set. * @return This builder for chaining. */ public Builder setSummaryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); summary_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * A verbose explanation of the operation behavior. GFM syntax can be used for
       * rich text representation.
       * 
* * string description = 3; * @return The description. */ 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 verbose explanation of the operation behavior. GFM syntax can be used for
       * rich text representation.
       * 
* * string description = 3; * @return The bytes for description. */ 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 verbose explanation of the operation behavior. GFM syntax can be used for
       * rich text representation.
       * 
* * string description = 3; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * A verbose explanation of the operation behavior. GFM syntax can be used for
       * rich text representation.
       * 
* * string description = 3; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * A verbose explanation of the operation behavior. GFM syntax can be used for
       * rich text representation.
       * 
* * string description = 3; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation externalDocs_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder> externalDocsBuilder_; /** *
       * Additional external documentation for this operation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; * @return Whether the externalDocs field is set. */ public boolean hasExternalDocs() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Additional external documentation for this operation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; * @return The externalDocs. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation getExternalDocs() { if (externalDocsBuilder_ == null) { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } else { return externalDocsBuilder_.getMessage(); } } /** *
       * Additional external documentation for this operation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; */ public Builder setExternalDocs(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } externalDocs_ = value; } else { externalDocsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Additional external documentation for this operation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; */ public Builder setExternalDocs( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder builderForValue) { if (externalDocsBuilder_ == null) { externalDocs_ = builderForValue.build(); } else { externalDocsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Additional external documentation for this operation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; */ public Builder mergeExternalDocs(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && externalDocs_ != null && externalDocs_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance()) { getExternalDocsBuilder().mergeFrom(value); } else { externalDocs_ = value; } } else { externalDocsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Additional external documentation for this operation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; */ public Builder clearExternalDocs() { bitField0_ = (bitField0_ & ~0x00000008); externalDocs_ = null; if (externalDocsBuilder_ != null) { externalDocsBuilder_.dispose(); externalDocsBuilder_ = null; } onChanged(); return this; } /** *
       * Additional external documentation for this operation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder getExternalDocsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getExternalDocsFieldBuilder().getBuilder(); } /** *
       * Additional external documentation for this operation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { if (externalDocsBuilder_ != null) { return externalDocsBuilder_.getMessageOrBuilder(); } else { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } } /** *
       * Additional external documentation for this operation.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder> getExternalDocsFieldBuilder() { if (externalDocsBuilder_ == null) { externalDocsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder>( getExternalDocs(), getParentForChildren(), isClean()); externalDocs_ = null; } return externalDocsBuilder_; } private java.lang.Object operationId_ = ""; /** *
       * Unique string used to identify the operation. The id MUST be unique among
       * all operations described in the API. Tools and libraries MAY use the
       * operationId to uniquely identify an operation, therefore, it is recommended
       * to follow common programming naming conventions.
       * 
* * string operation_id = 5; * @return The operationId. */ 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; } } /** *
       * Unique string used to identify the operation. The id MUST be unique among
       * all operations described in the API. Tools and libraries MAY use the
       * operationId to uniquely identify an operation, therefore, it is recommended
       * to follow common programming naming conventions.
       * 
* * string operation_id = 5; * @return The bytes for operationId. */ 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; } } /** *
       * Unique string used to identify the operation. The id MUST be unique among
       * all operations described in the API. Tools and libraries MAY use the
       * operationId to uniquely identify an operation, therefore, it is recommended
       * to follow common programming naming conventions.
       * 
* * string operation_id = 5; * @param value The operationId to set. * @return This builder for chaining. */ public Builder setOperationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } operationId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Unique string used to identify the operation. The id MUST be unique among
       * all operations described in the API. Tools and libraries MAY use the
       * operationId to uniquely identify an operation, therefore, it is recommended
       * to follow common programming naming conventions.
       * 
* * string operation_id = 5; * @return This builder for chaining. */ public Builder clearOperationId() { operationId_ = getDefaultInstance().getOperationId(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
       * Unique string used to identify the operation. The id MUST be unique among
       * all operations described in the API. Tools and libraries MAY use the
       * operationId to uniquely identify an operation, therefore, it is recommended
       * to follow common programming naming conventions.
       * 
* * string operation_id = 5; * @param value The bytes for operationId to set. * @return This builder for chaining. */ public Builder setOperationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operationId_ = value; bitField0_ |= 0x00000010; 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; } } /** *
       * A list of MIME types the operation can consume. This overrides the consumes
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string consumes = 6; * @return A list containing the consumes. */ public com.google.protobuf.ProtocolStringList getConsumesList() { return consumes_.getUnmodifiableView(); } /** *
       * A list of MIME types the operation can consume. This overrides the consumes
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string consumes = 6; * @return The count of consumes. */ public int getConsumesCount() { return consumes_.size(); } /** *
       * A list of MIME types the operation can consume. This overrides the consumes
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string consumes = 6; * @param index The index of the element to return. * @return The consumes at the given index. */ public java.lang.String getConsumes(int index) { return consumes_.get(index); } /** *
       * A list of MIME types the operation can consume. This overrides the consumes
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string consumes = 6; * @param index The index of the value to return. * @return The bytes of the consumes at the given index. */ public com.google.protobuf.ByteString getConsumesBytes(int index) { return consumes_.getByteString(index); } /** *
       * A list of MIME types the operation can consume. This overrides the consumes
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string consumes = 6; * @param index The index to set the value at. * @param value The consumes to set. * @return This builder for chaining. */ public Builder setConsumes( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConsumesIsMutable(); consumes_.set(index, value); onChanged(); return this; } /** *
       * A list of MIME types the operation can consume. This overrides the consumes
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string consumes = 6; * @param value The consumes to add. * @return This builder for chaining. */ public Builder addConsumes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConsumesIsMutable(); consumes_.add(value); onChanged(); return this; } /** *
       * A list of MIME types the operation can consume. This overrides the consumes
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string consumes = 6; * @param values The consumes to add. * @return This builder for chaining. */ public Builder addAllConsumes( java.lang.Iterable values) { ensureConsumesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, consumes_); onChanged(); return this; } /** *
       * A list of MIME types the operation can consume. This overrides the consumes
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string consumes = 6; * @return This builder for chaining. */ public Builder clearConsumes() { consumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
       * A list of MIME types the operation can consume. This overrides the consumes
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string consumes = 6; * @param value The bytes of the consumes to add. * @return This builder for chaining. */ 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; } } /** *
       * A list of MIME types the operation can produce. This overrides the produces
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string produces = 7; * @return A list containing the produces. */ public com.google.protobuf.ProtocolStringList getProducesList() { return produces_.getUnmodifiableView(); } /** *
       * A list of MIME types the operation can produce. This overrides the produces
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string produces = 7; * @return The count of produces. */ public int getProducesCount() { return produces_.size(); } /** *
       * A list of MIME types the operation can produce. This overrides the produces
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string produces = 7; * @param index The index of the element to return. * @return The produces at the given index. */ public java.lang.String getProduces(int index) { return produces_.get(index); } /** *
       * A list of MIME types the operation can produce. This overrides the produces
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string produces = 7; * @param index The index of the value to return. * @return The bytes of the produces at the given index. */ public com.google.protobuf.ByteString getProducesBytes(int index) { return produces_.getByteString(index); } /** *
       * A list of MIME types the operation can produce. This overrides the produces
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string produces = 7; * @param index The index to set the value at. * @param value The produces to set. * @return This builder for chaining. */ public Builder setProduces( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProducesIsMutable(); produces_.set(index, value); onChanged(); return this; } /** *
       * A list of MIME types the operation can produce. This overrides the produces
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string produces = 7; * @param value The produces to add. * @return This builder for chaining. */ public Builder addProduces( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProducesIsMutable(); produces_.add(value); onChanged(); return this; } /** *
       * A list of MIME types the operation can produce. This overrides the produces
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string produces = 7; * @param values The produces to add. * @return This builder for chaining. */ public Builder addAllProduces( java.lang.Iterable values) { ensureProducesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, produces_); onChanged(); return this; } /** *
       * A list of MIME types the operation can produce. This overrides the produces
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string produces = 7; * @return This builder for chaining. */ public Builder clearProduces() { produces_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
       * A list of MIME types the operation can produce. This overrides the produces
       * definition at the OpenAPI Object. An empty value MAY be used to clear the
       * global definition. Value MUST be as described under Mime Types.
       * 
* * repeated string produces = 7; * @param value The bytes of the produces to add. * @return This builder for chaining. */ 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.MapField< java.lang.String, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response> responses_; private com.google.protobuf.MapField internalGetResponses() { if (responses_ == null) { return com.google.protobuf.MapField.emptyMapField( ResponsesDefaultEntryHolder.defaultEntry); } return responses_; } private com.google.protobuf.MapField internalGetMutableResponses() { if (responses_ == null) { responses_ = com.google.protobuf.MapField.newMapField( ResponsesDefaultEntryHolder.defaultEntry); } if (!responses_.isMutable()) { responses_ = responses_.copy(); } bitField0_ |= 0x00000080; onChanged(); return responses_; } public int getResponsesCount() { return internalGetResponses().getMap().size(); } /** *
       * The list of possible responses as they are returned from executing this
       * operation.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ @java.lang.Override public boolean containsResponses( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetResponses().getMap().containsKey(key); } /** * Use {@link #getResponsesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getResponses() { return getResponsesMap(); } /** *
       * The list of possible responses as they are returned from executing this
       * operation.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ @java.lang.Override public java.util.Map getResponsesMap() { return internalGetResponses().getMap(); } /** *
       * The list of possible responses as they are returned from executing this
       * operation.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ @java.lang.Override public /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response getResponsesOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponses().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * The list of possible responses as they are returned from executing this
       * operation.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response getResponsesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResponses().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearResponses() { bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableResponses().getMutableMap() .clear(); return this; } /** *
       * The list of possible responses as they are returned from executing this
       * operation.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ public Builder removeResponses( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableResponses().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableResponses() { bitField0_ |= 0x00000080; return internalGetMutableResponses().getMutableMap(); } /** *
       * The list of possible responses as they are returned from executing this
       * operation.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ public Builder putResponses( java.lang.String key, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableResponses().getMutableMap() .put(key, value); bitField0_ |= 0x00000080; return this; } /** *
       * The list of possible responses as they are returned from executing this
       * operation.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; */ public Builder putAllResponses( java.util.Map values) { internalGetMutableResponses().getMutableMap() .putAll(values); bitField0_ |= 0x00000080; return this; } private java.util.List schemes_ = java.util.Collections.emptyList(); private void ensureSchemesIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { schemes_ = new java.util.ArrayList(schemes_); bitField0_ |= 0x00000100; } } /** *
       * The transfer protocol for the operation. Values MUST be from the list:
       * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
       * schemes definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @return A list containing the schemes. */ public java.util.List getSchemesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme>(schemes_, schemes_converter_); } /** *
       * The transfer protocol for the operation. Values MUST be from the list:
       * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
       * schemes definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @return The count of schemes. */ public int getSchemesCount() { return schemes_.size(); } /** *
       * The transfer protocol for the operation. Values MUST be from the list:
       * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
       * schemes definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @param index The index of the element to return. * @return The schemes at the given index. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme getSchemes(int index) { return schemes_converter_.convert(schemes_.get(index)); } /** *
       * The transfer protocol for the operation. Values MUST be from the list:
       * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
       * schemes definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @param index The index to set the value at. * @param value The schemes to set. * @return This builder for chaining. */ public Builder setSchemes( int index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme value) { if (value == null) { throw new NullPointerException(); } ensureSchemesIsMutable(); schemes_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * The transfer protocol for the operation. Values MUST be from the list:
       * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
       * schemes definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @param value The schemes to add. * @return This builder for chaining. */ public Builder addSchemes(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme value) { if (value == null) { throw new NullPointerException(); } ensureSchemesIsMutable(); schemes_.add(value.getNumber()); onChanged(); return this; } /** *
       * The transfer protocol for the operation. Values MUST be from the list:
       * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
       * schemes definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @param values The schemes to add. * @return This builder for chaining. */ public Builder addAllSchemes( java.lang.Iterable values) { ensureSchemesIsMutable(); for (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scheme value : values) { schemes_.add(value.getNumber()); } onChanged(); return this; } /** *
       * The transfer protocol for the operation. Values MUST be from the list:
       * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
       * schemes definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @return This builder for chaining. */ public Builder clearSchemes() { schemes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** *
       * The transfer protocol for the operation. Values MUST be from the list:
       * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
       * schemes definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @return A list containing the enum numeric values on the wire for schemes. */ public java.util.List getSchemesValueList() { return java.util.Collections.unmodifiableList(schemes_); } /** *
       * The transfer protocol for the operation. Values MUST be from the list:
       * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
       * schemes definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @param index The index of the value to return. * @return The enum numeric value on the wire of schemes at the given index. */ public int getSchemesValue(int index) { return schemes_.get(index); } /** *
       * The transfer protocol for the operation. Values MUST be from the list:
       * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
       * schemes definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @param index The index to set the value at. * @param value The enum numeric value on the wire for schemes to set. * @return This builder for chaining. */ public Builder setSchemesValue( int index, int value) { ensureSchemesIsMutable(); schemes_.set(index, value); onChanged(); return this; } /** *
       * The transfer protocol for the operation. Values MUST be from the list:
       * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
       * schemes definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @param value The enum numeric value on the wire for schemes to add. * @return This builder for chaining. */ public Builder addSchemesValue(int value) { ensureSchemesIsMutable(); schemes_.add(value); onChanged(); return this; } /** *
       * The transfer protocol for the operation. Values MUST be from the list:
       * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
       * schemes definition.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; * @param values The enum numeric values on the wire for schemes to add. * @return This builder for chaining. */ public Builder addAllSchemesValue( java.lang.Iterable values) { ensureSchemesIsMutable(); for (int value : values) { schemes_.add(value); } onChanged(); return this; } private boolean deprecated_ ; /** *
       * Declares this operation to be deprecated. Usage of the declared operation
       * should be refrained. Default value is false.
       * 
* * bool deprecated = 11; * @return The deprecated. */ @java.lang.Override public boolean getDeprecated() { return deprecated_; } /** *
       * Declares this operation to be deprecated. Usage of the declared operation
       * should be refrained. Default value is false.
       * 
* * bool deprecated = 11; * @param value The deprecated to set. * @return This builder for chaining. */ public Builder setDeprecated(boolean value) { deprecated_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
       * Declares this operation to be deprecated. Usage of the declared operation
       * should be refrained. Default value is false.
       * 
* * bool deprecated = 11; * @return This builder for chaining. */ public Builder clearDeprecated() { bitField0_ = (bitField0_ & ~0x00000200); deprecated_ = false; onChanged(); return this; } private java.util.List security_ = java.util.Collections.emptyList(); private void ensureSecurityIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { security_ = new java.util.ArrayList(security_); bitField0_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirementOrBuilder> securityBuilder_; /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public java.util.List getSecurityList() { if (securityBuilder_ == null) { return java.util.Collections.unmodifiableList(security_); } else { return securityBuilder_.getMessageList(); } } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public int getSecurityCount() { if (securityBuilder_ == null) { return security_.size(); } else { return securityBuilder_.getCount(); } } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement getSecurity(int index) { if (securityBuilder_ == null) { return security_.get(index); } else { return securityBuilder_.getMessage(index); } } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder setSecurity( int index, grpc.gateway.protoc_gen_openapiv2.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; } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder setSecurity( int index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder builderForValue) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.set(index, builderForValue.build()); onChanged(); } else { securityBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder addSecurity(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement value) { if (securityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecurityIsMutable(); security_.add(value); onChanged(); } else { securityBuilder_.addMessage(value); } return this; } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder addSecurity( int index, grpc.gateway.protoc_gen_openapiv2.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; } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder addSecurity( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder builderForValue) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.add(builderForValue.build()); onChanged(); } else { securityBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder addSecurity( int index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder builderForValue) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.add(index, builderForValue.build()); onChanged(); } else { securityBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.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; } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder clearSecurity() { if (securityBuilder_ == null) { security_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { securityBuilder_.clear(); } return this; } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public Builder removeSecurity(int index) { if (securityBuilder_ == null) { ensureSecurityIsMutable(); security_.remove(index); onChanged(); } else { securityBuilder_.remove(index); } return this; } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder getSecurityBuilder( int index) { return getSecurityFieldBuilder().getBuilder(index); } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirementOrBuilder getSecurityOrBuilder( int index) { if (securityBuilder_ == null) { return security_.get(index); } else { return securityBuilder_.getMessageOrBuilder(index); } } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public java.util.List getSecurityOrBuilderList() { if (securityBuilder_ != null) { return securityBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(security_); } } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder addSecurityBuilder() { return getSecurityFieldBuilder().addBuilder( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.getDefaultInstance()); } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder addSecurityBuilder( int index) { return getSecurityFieldBuilder().addBuilder( index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.getDefaultInstance()); } /** *
       * A declaration of which security schemes are applied for this operation. The
       * list of values describes alternative security schemes that can be used
       * (that is, there is a logical OR between the security requirements). This
       * definition overrides any declared top-level security. To remove a top-level
       * security declaration, an empty array can be used.
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; */ public java.util.List getSecurityBuilderList() { return getSecurityFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirementOrBuilder> getSecurityFieldBuilder() { if (securityBuilder_ == null) { securityBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirementOrBuilder>( security_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); security_ = null; } return securityBuilder_; } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Value> extensions_; private com.google.protobuf.MapField internalGetExtensions() { if (extensions_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtensionsDefaultEntryHolder.defaultEntry); } return extensions_; } private com.google.protobuf.MapField internalGetMutableExtensions() { if (extensions_ == null) { extensions_ = com.google.protobuf.MapField.newMapField( ExtensionsDefaultEntryHolder.defaultEntry); } if (!extensions_.isMutable()) { extensions_ = extensions_.copy(); } bitField0_ |= 0x00000800; onChanged(); return extensions_; } public int getExtensionsCount() { return internalGetExtensions().getMap().size(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 13; */ @java.lang.Override public boolean containsExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtensions().getMap().containsKey(key); } /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtensions() { return getExtensionsMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 13; */ @java.lang.Override public java.util.Map getExtensionsMap() { return internalGetExtensions().getMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 13; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 13; */ @java.lang.Override public com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearExtensions() { bitField0_ = (bitField0_ & ~0x00000800); internalGetMutableExtensions().getMutableMap() .clear(); return this; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 13; */ public Builder removeExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExtensions().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableExtensions() { bitField0_ |= 0x00000800; return internalGetMutableExtensions().getMutableMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 13; */ public Builder putExtensions( java.lang.String key, com.google.protobuf.Value value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableExtensions().getMutableMap() .put(key, value); bitField0_ |= 0x00000800; return this; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 13; */ public Builder putAllExtensions( java.util.Map values) { internalGetMutableExtensions().getMutableMap() .putAll(values); bitField0_ |= 0x00000800; return this; } private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ParametersOrBuilder> parametersBuilder_; /** *
       * Custom parameters such as HTTP request headers.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/
       * and https://swagger.io/specification/v2/#parameter-object.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; * @return Whether the parameters field is set. */ public boolean hasParameters() { return ((bitField0_ & 0x00001000) != 0); } /** *
       * Custom parameters such as HTTP request headers.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/
       * and https://swagger.io/specification/v2/#parameter-object.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; * @return The parameters. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters getParameters() { if (parametersBuilder_ == null) { return parameters_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.getDefaultInstance() : parameters_; } else { return parametersBuilder_.getMessage(); } } /** *
       * Custom parameters such as HTTP request headers.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/
       * and https://swagger.io/specification/v2/#parameter-object.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; */ public Builder setParameters(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } parameters_ = value; } else { parametersBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       * Custom parameters such as HTTP request headers.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/
       * and https://swagger.io/specification/v2/#parameter-object.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; */ public Builder setParameters( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); } else { parametersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       * Custom parameters such as HTTP request headers.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/
       * and https://swagger.io/specification/v2/#parameter-object.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; */ public Builder mergeParameters(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters value) { if (parametersBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && parameters_ != null && parameters_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.getDefaultInstance()) { getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } } else { parametersBuilder_.mergeFrom(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       * Custom parameters such as HTTP request headers.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/
       * and https://swagger.io/specification/v2/#parameter-object.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; */ public Builder clearParameters() { bitField0_ = (bitField0_ & ~0x00001000); parameters_ = null; if (parametersBuilder_ != null) { parametersBuilder_.dispose(); parametersBuilder_ = null; } onChanged(); return this; } /** *
       * Custom parameters such as HTTP request headers.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/
       * and https://swagger.io/specification/v2/#parameter-object.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.Builder getParametersBuilder() { bitField0_ |= 0x00001000; onChanged(); return getParametersFieldBuilder().getBuilder(); } /** *
       * Custom parameters such as HTTP request headers.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/
       * and https://swagger.io/specification/v2/#parameter-object.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ParametersOrBuilder getParametersOrBuilder() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilder(); } else { return parameters_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.getDefaultInstance() : parameters_; } } /** *
       * Custom parameters such as HTTP request headers.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/
       * and https://swagger.io/specification/v2/#parameter-object.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ParametersOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ParametersOrBuilder>( getParameters(), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; } @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_openapiv2.options.Operation) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Operation) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation(); } public static grpc.gateway.protoc_gen_openapiv2.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.Operation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.Parameters) com.google.protobuf.MessageOrBuilder { /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ java.util.List getHeadersList(); /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter getHeaders(int index); /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ int getHeadersCount(); /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ java.util.List getHeadersOrBuilderList(); /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameterOrBuilder getHeadersOrBuilder( int index); } /** *
   * `Parameters` is a representation of OpenAPI v2 specification's parameters object.
   * Note: This technically breaks compatibility with the OpenAPI 2 definition structure as we only
   * allow header parameters to be set here since we do not want users specifying custom non-header
   * parameters beyond those inferred from the Protobuf schema.
   * See: https://swagger.io/specification/v2/#parameter-object
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Parameters} */ public static final class Parameters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.options.Parameters) ParametersOrBuilder { private static final long serialVersionUID = 0L; // Use Parameters.newBuilder() to construct. private Parameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Parameters() { headers_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Parameters(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Parameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.Builder.class); } public static final int HEADERS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List headers_; /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ @java.lang.Override public java.util.List getHeadersList() { return headers_; } /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ @java.lang.Override public java.util.List getHeadersOrBuilderList() { return headers_; } /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ @java.lang.Override public int getHeadersCount() { return headers_.size(); } /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter getHeaders(int index) { return headers_.get(index); } /** *
     * `Headers` is one or more HTTP header parameter.
     * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
     * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameterOrBuilder getHeadersOrBuilder( int index) { return headers_.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 < headers_.size(); i++) { output.writeMessage(1, headers_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < headers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, headers_.get(i)); } size += getUnknownFields().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_openapiv2.options.Openapiv2.Parameters)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters other = (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters) obj; if (!getHeadersList() .equals(other.getHeadersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getHeadersCount() > 0) { hash = (37 * hash) + HEADERS_FIELD_NUMBER; hash = (53 * hash) + getHeadersList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters 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_openapiv2.options.Openapiv2.Parameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters 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_openapiv2.options.Openapiv2.Parameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters 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_openapiv2.options.Openapiv2.Parameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters 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_openapiv2.options.Openapiv2.Parameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters 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_openapiv2.options.Openapiv2.Parameters 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; } /** *
     * `Parameters` is a representation of OpenAPI v2 specification's parameters object.
     * Note: This technically breaks compatibility with the OpenAPI 2 definition structure as we only
     * allow header parameters to be set here since we do not want users specifying custom non-header
     * parameters beyond those inferred from the Protobuf schema.
     * See: https://swagger.io/specification/v2/#parameter-object
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Parameters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.Parameters) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ParametersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Parameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Parameters_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (headersBuilder_ == null) { headers_ = java.util.Collections.emptyList(); } else { headers_ = null; headersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Parameters_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters result) { if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); bitField0_ = (bitField0_ & ~0x00000001); } result.headers_ = headers_; } else { result.headers_ = headersBuilder_.build(); } } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters result) { int from_bitField0_ = bitField0_; } @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_openapiv2.options.Openapiv2.Parameters) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.getDefaultInstance()) return this; if (headersBuilder_ == null) { if (!other.headers_.isEmpty()) { if (headers_.isEmpty()) { headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureHeadersIsMutable(); headers_.addAll(other.headers_); } onChanged(); } } else { if (!other.headers_.isEmpty()) { if (headersBuilder_.isEmpty()) { headersBuilder_.dispose(); headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); headersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHeadersFieldBuilder() : null; } else { headersBuilder_.addAllMessages(other.headers_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter m = input.readMessage( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.parser(), extensionRegistry); if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(m); } else { headersBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List headers_ = java.util.Collections.emptyList(); private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { headers_ = new java.util.ArrayList(headers_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameterOrBuilder> headersBuilder_; /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public java.util.List getHeadersList() { if (headersBuilder_ == null) { return java.util.Collections.unmodifiableList(headers_); } else { return headersBuilder_.getMessageList(); } } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public int getHeadersCount() { if (headersBuilder_ == null) { return headers_.size(); } else { return headersBuilder_.getCount(); } } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter getHeaders(int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { return headersBuilder_.getMessage(index); } } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public Builder setHeaders( int index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.set(index, value); onChanged(); } else { headersBuilder_.setMessage(index, value); } return this; } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public Builder setHeaders( int index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.set(index, builderForValue.build()); onChanged(); } else { headersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public Builder addHeaders(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.add(value); onChanged(); } else { headersBuilder_.addMessage(value); } return this; } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public Builder addHeaders( int index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.add(index, value); onChanged(); } else { headersBuilder_.addMessage(index, value); } return this; } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public Builder addHeaders( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); onChanged(); } else { headersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public Builder addHeaders( int index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(index, builderForValue.build()); onChanged(); } else { headersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public Builder addAllHeaders( java.lang.Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); } return this; } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public Builder clearHeaders() { if (headersBuilder_ == null) { headers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { headersBuilder_.clear(); } return this; } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public Builder removeHeaders(int index) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.remove(index); onChanged(); } else { headersBuilder_.remove(index); } return this; } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Builder getHeadersBuilder( int index) { return getHeadersFieldBuilder().getBuilder(index); } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameterOrBuilder getHeadersOrBuilder( int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { return headersBuilder_.getMessageOrBuilder(index); } } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public java.util.List getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(headers_); } } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Builder addHeadersBuilder() { return getHeadersFieldBuilder().addBuilder( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.getDefaultInstance()); } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Builder addHeadersBuilder( int index) { return getHeadersFieldBuilder().addBuilder( index, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.getDefaultInstance()); } /** *
       * `Headers` is one or more HTTP header parameter.
       * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
       * 
* * repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1; */ public java.util.List getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameterOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameterOrBuilder>( headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); headers_ = null; } return headersBuilder_; } @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_openapiv2.options.Parameters) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Parameters) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters(); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Parameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.Parameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HeaderParameterOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter) com.google.protobuf.MessageOrBuilder { /** *
     * `Name` is the header name.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * `Name` is the header name.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * `Description` is a short description of the header.
     * 
* * string description = 2; * @return The description. */ java.lang.String getDescription(); /** *
     * `Description` is a short description of the header.
     * 
* * string description = 2; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
     * See: https://swagger.io/specification/v2/#parameterType.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** *
     * `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
     * See: https://swagger.io/specification/v2/#parameterType.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3; * @return The type. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Type getType(); /** *
     * `Format` The extending format for the previously mentioned type.
     * 
* * string format = 4; * @return The format. */ java.lang.String getFormat(); /** *
     * `Format` The extending format for the previously mentioned type.
     * 
* * string format = 4; * @return The bytes for format. */ com.google.protobuf.ByteString getFormatBytes(); /** *
     * `Required` indicates if the header is optional
     * 
* * bool required = 5; * @return The required. */ boolean getRequired(); } /** *
   * `HeaderParameter` a HTTP header parameter.
   * See: https://swagger.io/specification/v2/#parameter-object
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter} */ public static final class HeaderParameter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter) HeaderParameterOrBuilder { private static final long serialVersionUID = 0L; // Use HeaderParameter.newBuilder() to construct. private HeaderParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HeaderParameter() { name_ = ""; description_ = ""; type_ = 0; format_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HeaderParameter(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_HeaderParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_HeaderParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Builder.class); } /** *
     * `Type` is a a supported HTTP header type.
     * See https://swagger.io/specification/v2/#parameterType.
     * 
* * Protobuf enum {@code grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * STRING = 1; */ STRING(1), /** * NUMBER = 2; */ NUMBER(2), /** * INTEGER = 3; */ INTEGER(3), /** * BOOLEAN = 4; */ BOOLEAN(4), UNRECOGNIZED(-1), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * STRING = 1; */ public static final int STRING_VALUE = 1; /** * NUMBER = 2; */ public static final int NUMBER_VALUE = 2; /** * INTEGER = 3; */ public static final int INTEGER_VALUE = 3; /** * BOOLEAN = 4; */ public static final int BOOLEAN_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; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return STRING; case 2: return NUMBER; case 3: return INTEGER; case 4: return BOOLEAN; 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() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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_openapiv2.options.Openapiv2.HeaderParameter.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_openapiv2.options.HeaderParameter.Type) } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * `Name` is the header name.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override 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; } } /** *
     * `Name` is the header name.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override 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 DESCRIPTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
     * `Description` is a short description of the header.
     * 
* * string description = 2; * @return The description. */ @java.lang.Override 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; } } /** *
     * `Description` is a short description of the header.
     * 
* * string description = 2; * @return The bytes for description. */ @java.lang.Override 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 TYPE_FIELD_NUMBER = 3; private int type_ = 0; /** *
     * `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
     * See: https://swagger.io/specification/v2/#parameterType.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
     * See: https://swagger.io/specification/v2/#parameterType.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3; * @return The type. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Type getType() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Type result = grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Type.forNumber(type_); return result == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Type.UNRECOGNIZED : result; } public static final int FORMAT_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object format_ = ""; /** *
     * `Format` The extending format for the previously mentioned type.
     * 
* * string format = 4; * @return The format. */ @java.lang.Override public java.lang.String getFormat() { java.lang.Object ref = format_; 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(); format_ = s; return s; } } /** *
     * `Format` The extending format for the previously mentioned type.
     * 
* * string format = 4; * @return The bytes for format. */ @java.lang.Override public com.google.protobuf.ByteString getFormatBytes() { java.lang.Object ref = format_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); format_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REQUIRED_FIELD_NUMBER = 5; private boolean required_ = false; /** *
     * `Required` indicates if the header is optional
     * 
* * bool required = 5; * @return The required. */ @java.lang.Override public boolean getRequired() { return required_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (type_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Type.UNKNOWN.getNumber()) { output.writeEnum(3, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(format_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, format_); } if (required_ != false) { output.writeBool(5, required_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (type_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Type.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(format_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, format_); } if (required_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, required_); } size += getUnknownFields().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_openapiv2.options.Openapiv2.HeaderParameter)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter other = (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter) obj; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (type_ != other.type_) return false; if (!getFormat() .equals(other.getFormat())) return false; if (getRequired() != other.getRequired()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + FORMAT_FIELD_NUMBER; hash = (53 * hash) + getFormat().hashCode(); hash = (37 * hash) + REQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRequired()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter 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_openapiv2.options.Openapiv2.HeaderParameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter 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_openapiv2.options.Openapiv2.HeaderParameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter 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_openapiv2.options.Openapiv2.HeaderParameter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter 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_openapiv2.options.Openapiv2.HeaderParameter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter 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_openapiv2.options.Openapiv2.HeaderParameter 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; } /** *
     * `HeaderParameter` a HTTP header parameter.
     * See: https://swagger.io/specification/v2/#parameter-object
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_HeaderParameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_HeaderParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; description_ = ""; type_ = 0; format_ = ""; required_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_HeaderParameter_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.format_ = format_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.required_ = required_; } } @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_openapiv2.options.Openapiv2.HeaderParameter) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000002; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getFormat().isEmpty()) { format_ = other.format_; bitField0_ |= 0x00000008; onChanged(); } if (other.getRequired() != false) { setRequired(other.getRequired()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { type_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { format_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { required_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * `Name` is the header name.
       * 
* * string name = 1; * @return The name. */ 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; } } /** *
       * `Name` is the header name.
       * 
* * string name = 1; * @return The bytes for name. */ 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; } } /** *
       * `Name` is the header name.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * `Name` is the header name.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * `Name` is the header name.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * `Description` is a short description of the header.
       * 
* * string description = 2; * @return The description. */ 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; } } /** *
       * `Description` is a short description of the header.
       * 
* * string description = 2; * @return The bytes for description. */ 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; } } /** *
       * `Description` is a short description of the header.
       * 
* * string description = 2; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * `Description` is a short description of the header.
       * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * `Description` is a short description of the header.
       * 
* * string description = 2; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int type_ = 0; /** *
       * `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
       * See: https://swagger.io/specification/v2/#parameterType.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
       * `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
       * See: https://swagger.io/specification/v2/#parameterType.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
       * See: https://swagger.io/specification/v2/#parameterType.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3; * @return The type. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Type getType() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Type result = grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Type.forNumber(type_); return result == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Type.UNRECOGNIZED : result; } /** *
       * `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
       * See: https://swagger.io/specification/v2/#parameterType.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value.getNumber(); onChanged(); return this; } /** *
       * `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
       * See: https://swagger.io/specification/v2/#parameterType.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = 0; onChanged(); return this; } private java.lang.Object format_ = ""; /** *
       * `Format` The extending format for the previously mentioned type.
       * 
* * string format = 4; * @return The format. */ public java.lang.String getFormat() { java.lang.Object ref = format_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); format_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * `Format` The extending format for the previously mentioned type.
       * 
* * string format = 4; * @return The bytes for format. */ public com.google.protobuf.ByteString getFormatBytes() { java.lang.Object ref = format_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); format_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * `Format` The extending format for the previously mentioned type.
       * 
* * string format = 4; * @param value The format to set. * @return This builder for chaining. */ public Builder setFormat( java.lang.String value) { if (value == null) { throw new NullPointerException(); } format_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * `Format` The extending format for the previously mentioned type.
       * 
* * string format = 4; * @return This builder for chaining. */ public Builder clearFormat() { format_ = getDefaultInstance().getFormat(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * `Format` The extending format for the previously mentioned type.
       * 
* * string format = 4; * @param value The bytes for format to set. * @return This builder for chaining. */ public Builder setFormatBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); format_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private boolean required_ ; /** *
       * `Required` indicates if the header is optional
       * 
* * bool required = 5; * @return The required. */ @java.lang.Override public boolean getRequired() { return required_; } /** *
       * `Required` indicates if the header is optional
       * 
* * bool required = 5; * @param value The required to set. * @return This builder for chaining. */ public Builder setRequired(boolean value) { required_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * `Required` indicates if the header is optional
       * 
* * bool required = 5; * @return This builder for chaining. */ public Builder clearRequired() { bitField0_ = (bitField0_ & ~0x00000010); required_ = false; 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_openapiv2.options.HeaderParameter) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter(); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HeaderParameter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.HeaderParameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.Header) com.google.protobuf.MessageOrBuilder { /** *
     * `Description` is a short description of the header.
     * 
* * string description = 1; * @return The description. */ java.lang.String getDescription(); /** *
     * `Description` is a short description of the header.
     * 
* * string description = 1; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
     * 
* * string type = 2; * @return The type. */ java.lang.String getType(); /** *
     * The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
     * 
* * string type = 2; * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); /** *
     * `Format` The extending format for the previously mentioned type.
     * 
* * string format = 3; * @return The format. */ java.lang.String getFormat(); /** *
     * `Format` The extending format for the previously mentioned type.
     * 
* * string format = 3; * @return The bytes for format. */ com.google.protobuf.ByteString getFormatBytes(); /** *
     * `Default` Declares the value of the header that the server will use if none is provided.
     * See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2.
     * Unlike JSON Schema this value MUST conform to the defined type for the header.
     * 
* * string default = 6; * @return The default. */ java.lang.String getDefault(); /** *
     * `Default` Declares the value of the header that the server will use if none is provided.
     * See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2.
     * Unlike JSON Schema this value MUST conform to the defined type for the header.
     * 
* * string default = 6; * @return The bytes for default. */ com.google.protobuf.ByteString getDefaultBytes(); /** *
     * 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
     * 
* * string pattern = 13; * @return The pattern. */ java.lang.String getPattern(); /** *
     * 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
     * 
* * string pattern = 13; * @return The bytes for pattern. */ com.google.protobuf.ByteString getPatternBytes(); } /** *
   * `Header` is a representation of OpenAPI v2 specification's Header object.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#headerObject
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Header} */ public static final class Header extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.options.Header) HeaderOrBuilder { private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Header() { description_ = ""; type_ = ""; format_ = ""; default_ = ""; pattern_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Header(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header.Builder.class); } public static final int DESCRIPTION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
     * `Description` is a short description of the header.
     * 
* * string description = 1; * @return The description. */ @java.lang.Override 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; } } /** *
     * `Description` is a short description of the header.
     * 
* * string description = 1; * @return The bytes for description. */ @java.lang.Override 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 TYPE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** *
     * The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
     * 
* * string type = 2; * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; 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(); type_ = s; return s; } } /** *
     * The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
     * 
* * string type = 2; * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FORMAT_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object format_ = ""; /** *
     * `Format` The extending format for the previously mentioned type.
     * 
* * string format = 3; * @return The format. */ @java.lang.Override public java.lang.String getFormat() { java.lang.Object ref = format_; 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(); format_ = s; return s; } } /** *
     * `Format` The extending format for the previously mentioned type.
     * 
* * string format = 3; * @return The bytes for format. */ @java.lang.Override public com.google.protobuf.ByteString getFormatBytes() { java.lang.Object ref = format_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); format_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object default_ = ""; /** *
     * `Default` Declares the value of the header that the server will use if none is provided.
     * See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2.
     * Unlike JSON Schema this value MUST conform to the defined type for the header.
     * 
* * string default = 6; * @return The default. */ @java.lang.Override 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; } } /** *
     * `Default` Declares the value of the header that the server will use if none is provided.
     * See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2.
     * Unlike JSON Schema this value MUST conform to the defined type for the header.
     * 
* * string default = 6; * @return The bytes for default. */ @java.lang.Override 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 PATTERN_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object pattern_ = ""; /** *
     * 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
     * 
* * string pattern = 13; * @return The pattern. */ @java.lang.Override 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; } } /** *
     * 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
     * 
* * string pattern = 13; * @return The bytes for pattern. */ @java.lang.Override 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; } } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(format_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, format_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(default_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, default_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pattern_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, pattern_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(format_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, format_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(default_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, default_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pattern_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, pattern_); } size += getUnknownFields().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_openapiv2.options.Openapiv2.Header)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header other = (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header) obj; if (!getDescription() .equals(other.getDescription())) return false; if (!getType() .equals(other.getType())) return false; if (!getFormat() .equals(other.getFormat())) return false; if (!getDefault() .equals(other.getDefault())) return false; if (!getPattern() .equals(other.getPattern())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + FORMAT_FIELD_NUMBER; hash = (53 * hash) + getFormat().hashCode(); hash = (37 * hash) + DEFAULT_FIELD_NUMBER; hash = (53 * hash) + getDefault().hashCode(); hash = (37 * hash) + PATTERN_FIELD_NUMBER; hash = (53 * hash) + getPattern().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header 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_openapiv2.options.Openapiv2.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header 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_openapiv2.options.Openapiv2.Header parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header 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_openapiv2.options.Openapiv2.Header parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header 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_openapiv2.options.Openapiv2.Header parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header 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_openapiv2.options.Openapiv2.Header 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; } /** *
     * `Header` is a representation of OpenAPI v2 specification's Header object.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#headerObject
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Header} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.Header) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; description_ = ""; type_ = ""; format_ = ""; default_ = ""; pattern_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Header_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.format_ = format_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.default_ = default_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.pattern_ = pattern_; } } @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_openapiv2.options.Openapiv2.Header) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getType().isEmpty()) { type_ = other.type_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getFormat().isEmpty()) { format_ = other.format_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getDefault().isEmpty()) { default_ = other.default_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getPattern().isEmpty()) { pattern_ = other.pattern_; bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { type_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { format_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 50: { default_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 50 case 106: { pattern_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object description_ = ""; /** *
       * `Description` is a short description of the header.
       * 
* * string description = 1; * @return The description. */ 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; } } /** *
       * `Description` is a short description of the header.
       * 
* * string description = 1; * @return The bytes for description. */ 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; } } /** *
       * `Description` is a short description of the header.
       * 
* * string description = 1; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * `Description` is a short description of the header.
       * 
* * string description = 1; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * `Description` is a short description of the header.
       * 
* * string description = 1; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object type_ = ""; /** *
       * The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
       * 
* * string type = 2; * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
       * 
* * string type = 2; * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
       * 
* * string type = 2; * @param value The type to set. * @return This builder for chaining. */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
       * 
* * string type = 2; * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
       * 
* * string type = 2; * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object format_ = ""; /** *
       * `Format` The extending format for the previously mentioned type.
       * 
* * string format = 3; * @return The format. */ public java.lang.String getFormat() { java.lang.Object ref = format_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); format_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * `Format` The extending format for the previously mentioned type.
       * 
* * string format = 3; * @return The bytes for format. */ public com.google.protobuf.ByteString getFormatBytes() { java.lang.Object ref = format_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); format_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * `Format` The extending format for the previously mentioned type.
       * 
* * string format = 3; * @param value The format to set. * @return This builder for chaining. */ public Builder setFormat( java.lang.String value) { if (value == null) { throw new NullPointerException(); } format_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * `Format` The extending format for the previously mentioned type.
       * 
* * string format = 3; * @return This builder for chaining. */ public Builder clearFormat() { format_ = getDefaultInstance().getFormat(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * `Format` The extending format for the previously mentioned type.
       * 
* * string format = 3; * @param value The bytes for format to set. * @return This builder for chaining. */ public Builder setFormatBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); format_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object default_ = ""; /** *
       * `Default` Declares the value of the header that the server will use if none is provided.
       * See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2.
       * Unlike JSON Schema this value MUST conform to the defined type for the header.
       * 
* * string default = 6; * @return The default. */ 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; } } /** *
       * `Default` Declares the value of the header that the server will use if none is provided.
       * See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2.
       * Unlike JSON Schema this value MUST conform to the defined type for the header.
       * 
* * string default = 6; * @return The bytes for default. */ 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; } } /** *
       * `Default` Declares the value of the header that the server will use if none is provided.
       * See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2.
       * Unlike JSON Schema this value MUST conform to the defined type for the header.
       * 
* * string default = 6; * @param value The default to set. * @return This builder for chaining. */ public Builder setDefault( java.lang.String value) { if (value == null) { throw new NullPointerException(); } default_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * `Default` Declares the value of the header that the server will use if none is provided.
       * See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2.
       * Unlike JSON Schema this value MUST conform to the defined type for the header.
       * 
* * string default = 6; * @return This builder for chaining. */ public Builder clearDefault() { default_ = getDefaultInstance().getDefault(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * `Default` Declares the value of the header that the server will use if none is provided.
       * See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2.
       * Unlike JSON Schema this value MUST conform to the defined type for the header.
       * 
* * string default = 6; * @param value The bytes for default to set. * @return This builder for chaining. */ public Builder setDefaultBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); default_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object pattern_ = ""; /** *
       * 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
       * 
* * string pattern = 13; * @return The pattern. */ 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; } } /** *
       * 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
       * 
* * string pattern = 13; * @return The bytes for pattern. */ 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; } } /** *
       * 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
       * 
* * string pattern = 13; * @param value The pattern to set. * @return This builder for chaining. */ public Builder setPattern( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pattern_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
       * 
* * string pattern = 13; * @return This builder for chaining. */ public Builder clearPattern() { pattern_ = getDefaultInstance().getPattern(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
       * 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3.
       * 
* * string pattern = 13; * @param value The bytes for pattern to set. * @return This builder for chaining. */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pattern_ = value; bitField0_ |= 0x00000010; 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_openapiv2.options.Header) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Header) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header(); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser
() { @java.lang.Override public Header parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.Response) com.google.protobuf.MessageOrBuilder { /** *
     * `Description` is a short description of the response.
     * GFM syntax can be used for rich text representation.
     * 
* * string description = 1; * @return The description. */ java.lang.String getDescription(); /** *
     * `Description` is a short description of the response.
     * GFM syntax can be used for rich text representation.
     * 
* * string description = 1; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * `Schema` optionally defines the structure of the response.
     * If `Schema` is not provided, it means there is no content to the response.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; * @return Whether the schema field is set. */ boolean hasSchema(); /** *
     * `Schema` optionally defines the structure of the response.
     * If `Schema` is not provided, it means there is no content to the response.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; * @return The schema. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema getSchema(); /** *
     * `Schema` optionally defines the structure of the response.
     * If `Schema` is not provided, it means there is no content to the response.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SchemaOrBuilder getSchemaOrBuilder(); /** *
     * `Headers` A list of headers that are sent with the response.
     * `Header` name is expected to be a string in the canonical format of the MIME header key
     * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ int getHeadersCount(); /** *
     * `Headers` A list of headers that are sent with the response.
     * `Header` name is expected to be a string in the canonical format of the MIME header key
     * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ boolean containsHeaders( java.lang.String key); /** * Use {@link #getHeadersMap()} instead. */ @java.lang.Deprecated java.util.Map getHeaders(); /** *
     * `Headers` A list of headers that are sent with the response.
     * `Header` name is expected to be a string in the canonical format of the MIME header key
     * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ java.util.Map getHeadersMap(); /** *
     * `Headers` A list of headers that are sent with the response.
     * `Header` name is expected to be a string in the canonical format of the MIME header key
     * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header getHeadersOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header defaultValue); /** *
     * `Headers` A list of headers that are sent with the response.
     * `Header` name is expected to be a string in the canonical format of the MIME header key
     * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header getHeadersOrThrow( java.lang.String key); /** *
     * `Examples` gives per-mimetype response examples.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
     * 
* * map<string, string> examples = 4; */ int getExamplesCount(); /** *
     * `Examples` gives per-mimetype response examples.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
     * 
* * map<string, string> examples = 4; */ boolean containsExamples( java.lang.String key); /** * Use {@link #getExamplesMap()} instead. */ @java.lang.Deprecated java.util.Map getExamples(); /** *
     * `Examples` gives per-mimetype response examples.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
     * 
* * map<string, string> examples = 4; */ java.util.Map getExamplesMap(); /** *
     * `Examples` gives per-mimetype response examples.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
     * 
* * map<string, string> examples = 4; */ /* nullable */ java.lang.String getExamplesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * `Examples` gives per-mimetype response examples.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
     * 
* * map<string, string> examples = 4; */ java.lang.String getExamplesOrThrow( java.lang.String key); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 5; */ int getExtensionsCount(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 5; */ boolean containsExtensions( java.lang.String key); /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Deprecated java.util.Map getExtensions(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 5; */ java.util.Map getExtensionsMap(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 5; */ /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 5; */ com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key); } /** *
   * `Response` is a representation of OpenAPI v2 specification's Response object.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#responseObject
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.options.Response) ResponseOrBuilder { private static final long serialVersionUID = 0L; // Use Response.newBuilder() to construct. private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Response() { description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Response(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetHeaders(); case 4: return internalGetExamples(); case 5: return internalGetExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response.Builder.class); } public static final int DESCRIPTION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
     * `Description` is a short description of the response.
     * GFM syntax can be used for rich text representation.
     * 
* * string description = 1; * @return The description. */ @java.lang.Override 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; } } /** *
     * `Description` is a short description of the response.
     * GFM syntax can be used for rich text representation.
     * 
* * string description = 1; * @return The bytes for description. */ @java.lang.Override 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 SCHEMA_FIELD_NUMBER = 2; private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema schema_; /** *
     * `Schema` optionally defines the structure of the response.
     * If `Schema` is not provided, it means there is no content to the response.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; * @return Whether the schema field is set. */ @java.lang.Override public boolean hasSchema() { return schema_ != null; } /** *
     * `Schema` optionally defines the structure of the response.
     * If `Schema` is not provided, it means there is no content to the response.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; * @return The schema. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema getSchema() { return schema_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.getDefaultInstance() : schema_; } /** *
     * `Schema` optionally defines the structure of the response.
     * If `Schema` is not provided, it means there is no content to the response.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SchemaOrBuilder getSchemaOrBuilder() { return schema_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.getDefaultInstance() : schema_; } public static final int HEADERS_FIELD_NUMBER = 3; private static final class HeadersDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_HeadersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header> headers_; private com.google.protobuf.MapField internalGetHeaders() { if (headers_ == null) { return com.google.protobuf.MapField.emptyMapField( HeadersDefaultEntryHolder.defaultEntry); } return headers_; } public int getHeadersCount() { return internalGetHeaders().getMap().size(); } /** *
     * `Headers` A list of headers that are sent with the response.
     * `Header` name is expected to be a string in the canonical format of the MIME header key
     * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ @java.lang.Override public boolean containsHeaders( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetHeaders().getMap().containsKey(key); } /** * Use {@link #getHeadersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHeaders() { return getHeadersMap(); } /** *
     * `Headers` A list of headers that are sent with the response.
     * `Header` name is expected to be a string in the canonical format of the MIME header key
     * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ @java.lang.Override public java.util.Map getHeadersMap() { return internalGetHeaders().getMap(); } /** *
     * `Headers` A list of headers that are sent with the response.
     * `Header` name is expected to be a string in the canonical format of the MIME header key
     * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ @java.lang.Override public /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header getHeadersOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * `Headers` A list of headers that are sent with the response.
     * `Header` name is expected to be a string in the canonical format of the MIME header key
     * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header getHeadersOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int EXAMPLES_FIELD_NUMBER = 4; private static final class ExamplesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_ExamplesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> examples_; private com.google.protobuf.MapField internalGetExamples() { if (examples_ == null) { return com.google.protobuf.MapField.emptyMapField( ExamplesDefaultEntryHolder.defaultEntry); } return examples_; } public int getExamplesCount() { return internalGetExamples().getMap().size(); } /** *
     * `Examples` gives per-mimetype response examples.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
     * 
* * map<string, string> examples = 4; */ @java.lang.Override public boolean containsExamples( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExamples().getMap().containsKey(key); } /** * Use {@link #getExamplesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExamples() { return getExamplesMap(); } /** *
     * `Examples` gives per-mimetype response examples.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
     * 
* * map<string, string> examples = 4; */ @java.lang.Override public java.util.Map getExamplesMap() { return internalGetExamples().getMap(); } /** *
     * `Examples` gives per-mimetype response examples.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
     * 
* * map<string, string> examples = 4; */ @java.lang.Override public /* nullable */ java.lang.String getExamplesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExamples().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * `Examples` gives per-mimetype response examples.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
     * 
* * map<string, string> examples = 4; */ @java.lang.Override public java.lang.String getExamplesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExamples().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int EXTENSIONS_FIELD_NUMBER = 5; private static final class ExtensionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_ExtensionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.protobuf.Value.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Value> extensions_; private com.google.protobuf.MapField internalGetExtensions() { if (extensions_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtensionsDefaultEntryHolder.defaultEntry); } return extensions_; } public int getExtensionsCount() { return internalGetExtensions().getMap().size(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 5; */ @java.lang.Override public boolean containsExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtensions().getMap().containsKey(key); } /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtensions() { return getExtensionsMap(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 5; */ @java.lang.Override public java.util.Map getExtensionsMap() { return internalGetExtensions().getMap(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 5; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 5; */ @java.lang.Override public com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } if (schema_ != null) { output.writeMessage(2, getSchema()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 3); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetExamples(), ExamplesDefaultEntryHolder.defaultEntry, 4); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetExtensions(), ExtensionsDefaultEntryHolder.defaultEntry, 5); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } if (schema_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSchema()); } for (java.util.Map.Entry entry : internalGetHeaders().getMap().entrySet()) { com.google.protobuf.MapEntry headers__ = HeadersDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, headers__); } for (java.util.Map.Entry entry : internalGetExamples().getMap().entrySet()) { com.google.protobuf.MapEntry examples__ = ExamplesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, examples__); } for (java.util.Map.Entry entry : internalGetExtensions().getMap().entrySet()) { com.google.protobuf.MapEntry extensions__ = ExtensionsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, extensions__); } size += getUnknownFields().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_openapiv2.options.Openapiv2.Response)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response other = (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response) obj; if (!getDescription() .equals(other.getDescription())) return false; if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { if (!getSchema() .equals(other.getSchema())) return false; } if (!internalGetHeaders().equals( other.internalGetHeaders())) return false; if (!internalGetExamples().equals( other.internalGetExamples())) return false; if (!internalGetExtensions().equals( other.internalGetExtensions())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasSchema()) { hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); } if (!internalGetHeaders().getMap().isEmpty()) { hash = (37 * hash) + HEADERS_FIELD_NUMBER; hash = (53 * hash) + internalGetHeaders().hashCode(); } if (!internalGetExamples().getMap().isEmpty()) { hash = (37 * hash) + EXAMPLES_FIELD_NUMBER; hash = (53 * hash) + internalGetExamples().hashCode(); } if (!internalGetExtensions().getMap().isEmpty()) { hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetExtensions().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response 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_openapiv2.options.Openapiv2.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response 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_openapiv2.options.Openapiv2.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response 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_openapiv2.options.Openapiv2.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response 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_openapiv2.options.Openapiv2.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response 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_openapiv2.options.Openapiv2.Response 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; } /** *
     * `Response` is a representation of OpenAPI v2 specification's Response object.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#responseObject
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.Response) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetHeaders(); case 4: return internalGetExamples(); case 5: return internalGetExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableHeaders(); case 4: return internalGetMutableExamples(); case 5: return internalGetMutableExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; description_ = ""; schema_ = null; if (schemaBuilder_ != null) { schemaBuilder_.dispose(); schemaBuilder_ = null; } internalGetMutableHeaders().clear(); internalGetMutableExamples().clear(); internalGetMutableExtensions().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.headers_ = internalGetHeaders(); result.headers_.makeImmutable(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.examples_ = internalGetExamples(); result.examples_.makeImmutable(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.extensions_ = internalGetExtensions(); result.extensions_.makeImmutable(); } } @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_openapiv2.options.Openapiv2.Response) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasSchema()) { mergeSchema(other.getSchema()); } internalGetMutableHeaders().mergeFrom( other.internalGetHeaders()); bitField0_ |= 0x00000004; internalGetMutableExamples().mergeFrom( other.internalGetExamples()); bitField0_ |= 0x00000008; internalGetMutableExtensions().mergeFrom( other.internalGetExtensions()); bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getSchemaFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.protobuf.MapEntry headers__ = input.readMessage( HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableHeaders().getMutableMap().put( headers__.getKey(), headers__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.protobuf.MapEntry examples__ = input.readMessage( ExamplesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableExamples().getMutableMap().put( examples__.getKey(), examples__.getValue()); bitField0_ |= 0x00000008; break; } // case 34 case 42: { com.google.protobuf.MapEntry extensions__ = input.readMessage( ExtensionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableExtensions().getMutableMap().put( extensions__.getKey(), extensions__.getValue()); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object description_ = ""; /** *
       * `Description` is a short description of the response.
       * GFM syntax can be used for rich text representation.
       * 
* * string description = 1; * @return The description. */ 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; } } /** *
       * `Description` is a short description of the response.
       * GFM syntax can be used for rich text representation.
       * 
* * string description = 1; * @return The bytes for description. */ 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; } } /** *
       * `Description` is a short description of the response.
       * GFM syntax can be used for rich text representation.
       * 
* * string description = 1; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * `Description` is a short description of the response.
       * GFM syntax can be used for rich text representation.
       * 
* * string description = 1; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * `Description` is a short description of the response.
       * GFM syntax can be used for rich text representation.
       * 
* * string description = 1; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema schema_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SchemaOrBuilder> schemaBuilder_; /** *
       * `Schema` optionally defines the structure of the response.
       * If `Schema` is not provided, it means there is no content to the response.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; * @return Whether the schema field is set. */ public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * `Schema` optionally defines the structure of the response.
       * If `Schema` is not provided, it means there is no content to the response.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; * @return The schema. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema getSchema() { if (schemaBuilder_ == null) { return schema_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.getDefaultInstance() : schema_; } else { return schemaBuilder_.getMessage(); } } /** *
       * `Schema` optionally defines the structure of the response.
       * If `Schema` is not provided, it means there is no content to the response.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; */ public Builder setSchema(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema value) { if (schemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schema_ = value; } else { schemaBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * `Schema` optionally defines the structure of the response.
       * If `Schema` is not provided, it means there is no content to the response.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; */ public Builder setSchema( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); } else { schemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * `Schema` optionally defines the structure of the response.
       * If `Schema` is not provided, it means there is no content to the response.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; */ public Builder mergeSchema(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema value) { if (schemaBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && schema_ != null && schema_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.getDefaultInstance()) { getSchemaBuilder().mergeFrom(value); } else { schema_ = value; } } else { schemaBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * `Schema` optionally defines the structure of the response.
       * If `Schema` is not provided, it means there is no content to the response.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; */ public Builder clearSchema() { bitField0_ = (bitField0_ & ~0x00000002); schema_ = null; if (schemaBuilder_ != null) { schemaBuilder_.dispose(); schemaBuilder_ = null; } onChanged(); return this; } /** *
       * `Schema` optionally defines the structure of the response.
       * If `Schema` is not provided, it means there is no content to the response.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.Builder getSchemaBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** *
       * `Schema` optionally defines the structure of the response.
       * If `Schema` is not provided, it means there is no content to the response.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { return schema_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.getDefaultInstance() : schema_; } } /** *
       * `Schema` optionally defines the structure of the response.
       * If `Schema` is not provided, it means there is no content to the response.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SchemaOrBuilder>( getSchema(), getParentForChildren(), isClean()); schema_ = null; } return schemaBuilder_; } private com.google.protobuf.MapField< java.lang.String, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header> headers_; private com.google.protobuf.MapField internalGetHeaders() { if (headers_ == null) { return com.google.protobuf.MapField.emptyMapField( HeadersDefaultEntryHolder.defaultEntry); } return headers_; } private com.google.protobuf.MapField internalGetMutableHeaders() { if (headers_ == null) { headers_ = com.google.protobuf.MapField.newMapField( HeadersDefaultEntryHolder.defaultEntry); } if (!headers_.isMutable()) { headers_ = headers_.copy(); } bitField0_ |= 0x00000004; onChanged(); return headers_; } public int getHeadersCount() { return internalGetHeaders().getMap().size(); } /** *
       * `Headers` A list of headers that are sent with the response.
       * `Header` name is expected to be a string in the canonical format of the MIME header key
       * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ @java.lang.Override public boolean containsHeaders( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetHeaders().getMap().containsKey(key); } /** * Use {@link #getHeadersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHeaders() { return getHeadersMap(); } /** *
       * `Headers` A list of headers that are sent with the response.
       * `Header` name is expected to be a string in the canonical format of the MIME header key
       * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ @java.lang.Override public java.util.Map getHeadersMap() { return internalGetHeaders().getMap(); } /** *
       * `Headers` A list of headers that are sent with the response.
       * `Header` name is expected to be a string in the canonical format of the MIME header key
       * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ @java.lang.Override public /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header getHeadersOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * `Headers` A list of headers that are sent with the response.
       * `Header` name is expected to be a string in the canonical format of the MIME header key
       * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header getHeadersOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearHeaders() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableHeaders().getMutableMap() .clear(); return this; } /** *
       * `Headers` A list of headers that are sent with the response.
       * `Header` name is expected to be a string in the canonical format of the MIME header key
       * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ public Builder removeHeaders( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableHeaders().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableHeaders() { bitField0_ |= 0x00000004; return internalGetMutableHeaders().getMutableMap(); } /** *
       * `Headers` A list of headers that are sent with the response.
       * `Header` name is expected to be a string in the canonical format of the MIME header key
       * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ public Builder putHeaders( java.lang.String key, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Header value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableHeaders().getMutableMap() .put(key, value); bitField0_ |= 0x00000004; return this; } /** *
       * `Headers` A list of headers that are sent with the response.
       * `Header` name is expected to be a string in the canonical format of the MIME header key
       * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.Header> headers = 3; */ public Builder putAllHeaders( java.util.Map values) { internalGetMutableHeaders().getMutableMap() .putAll(values); bitField0_ |= 0x00000004; return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> examples_; private com.google.protobuf.MapField internalGetExamples() { if (examples_ == null) { return com.google.protobuf.MapField.emptyMapField( ExamplesDefaultEntryHolder.defaultEntry); } return examples_; } private com.google.protobuf.MapField internalGetMutableExamples() { if (examples_ == null) { examples_ = com.google.protobuf.MapField.newMapField( ExamplesDefaultEntryHolder.defaultEntry); } if (!examples_.isMutable()) { examples_ = examples_.copy(); } bitField0_ |= 0x00000008; onChanged(); return examples_; } public int getExamplesCount() { return internalGetExamples().getMap().size(); } /** *
       * `Examples` gives per-mimetype response examples.
       * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
       * 
* * map<string, string> examples = 4; */ @java.lang.Override public boolean containsExamples( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExamples().getMap().containsKey(key); } /** * Use {@link #getExamplesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExamples() { return getExamplesMap(); } /** *
       * `Examples` gives per-mimetype response examples.
       * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
       * 
* * map<string, string> examples = 4; */ @java.lang.Override public java.util.Map getExamplesMap() { return internalGetExamples().getMap(); } /** *
       * `Examples` gives per-mimetype response examples.
       * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
       * 
* * map<string, string> examples = 4; */ @java.lang.Override public /* nullable */ java.lang.String getExamplesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExamples().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * `Examples` gives per-mimetype response examples.
       * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
       * 
* * map<string, string> examples = 4; */ @java.lang.Override public java.lang.String getExamplesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExamples().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearExamples() { bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableExamples().getMutableMap() .clear(); return this; } /** *
       * `Examples` gives per-mimetype response examples.
       * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
       * 
* * map<string, string> examples = 4; */ public Builder removeExamples( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExamples().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableExamples() { bitField0_ |= 0x00000008; return internalGetMutableExamples().getMutableMap(); } /** *
       * `Examples` gives per-mimetype response examples.
       * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
       * 
* * map<string, string> examples = 4; */ public Builder putExamples( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableExamples().getMutableMap() .put(key, value); bitField0_ |= 0x00000008; return this; } /** *
       * `Examples` gives per-mimetype response examples.
       * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
       * 
* * map<string, string> examples = 4; */ public Builder putAllExamples( java.util.Map values) { internalGetMutableExamples().getMutableMap() .putAll(values); bitField0_ |= 0x00000008; return this; } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Value> extensions_; private com.google.protobuf.MapField internalGetExtensions() { if (extensions_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtensionsDefaultEntryHolder.defaultEntry); } return extensions_; } private com.google.protobuf.MapField internalGetMutableExtensions() { if (extensions_ == null) { extensions_ = com.google.protobuf.MapField.newMapField( ExtensionsDefaultEntryHolder.defaultEntry); } if (!extensions_.isMutable()) { extensions_ = extensions_.copy(); } bitField0_ |= 0x00000010; onChanged(); return extensions_; } public int getExtensionsCount() { return internalGetExtensions().getMap().size(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 5; */ @java.lang.Override public boolean containsExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtensions().getMap().containsKey(key); } /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtensions() { return getExtensionsMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 5; */ @java.lang.Override public java.util.Map getExtensionsMap() { return internalGetExtensions().getMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 5; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 5; */ @java.lang.Override public com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearExtensions() { bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableExtensions().getMutableMap() .clear(); return this; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 5; */ public Builder removeExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExtensions().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableExtensions() { bitField0_ |= 0x00000010; return internalGetMutableExtensions().getMutableMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 5; */ public Builder putExtensions( java.lang.String key, com.google.protobuf.Value value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableExtensions().getMutableMap() .put(key, value); bitField0_ |= 0x00000010; return this; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 5; */ public Builder putAllExtensions( java.util.Map values) { internalGetMutableExtensions().getMutableMap() .putAll(values); bitField0_ |= 0x00000010; 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_openapiv2.options.Response) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Response) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response(); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Response getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Response parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InfoOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.Info) com.google.protobuf.MessageOrBuilder { /** *
     * The title of the application.
     * 
* * string title = 1; * @return The title. */ java.lang.String getTitle(); /** *
     * The title of the application.
     * 
* * string title = 1; * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); /** *
     * A short description of the application. GFM syntax can be used for rich
     * text representation.
     * 
* * string description = 2; * @return The description. */ java.lang.String getDescription(); /** *
     * A short description of the application. GFM syntax can be used for rich
     * text representation.
     * 
* * string description = 2; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * The Terms of Service for the API.
     * 
* * string terms_of_service = 3; * @return The termsOfService. */ java.lang.String getTermsOfService(); /** *
     * The Terms of Service for the API.
     * 
* * string terms_of_service = 3; * @return The bytes for termsOfService. */ com.google.protobuf.ByteString getTermsOfServiceBytes(); /** *
     * The contact information for the exposed API.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; * @return Whether the contact field is set. */ boolean hasContact(); /** *
     * The contact information for the exposed API.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; * @return The contact. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact getContact(); /** *
     * The contact information for the exposed API.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ContactOrBuilder getContactOrBuilder(); /** *
     * The license information for the exposed API.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; * @return Whether the license field is set. */ boolean hasLicense(); /** *
     * The license information for the exposed API.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; * @return The license. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License getLicense(); /** *
     * The license information for the exposed API.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.LicenseOrBuilder getLicenseOrBuilder(); /** *
     * Provides the version of the application API (not to be confused
     * with the specification version).
     * 
* * string version = 6; * @return The version. */ java.lang.String getVersion(); /** *
     * Provides the version of the application API (not to be confused
     * with the specification version).
     * 
* * string version = 6; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 7; */ int getExtensionsCount(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 7; */ boolean containsExtensions( java.lang.String key); /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Deprecated java.util.Map getExtensions(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 7; */ java.util.Map getExtensionsMap(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 7; */ /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 7; */ com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key); } /** *
   * `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
   * Example:
   *  option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
   *    info: {
   *      title: "Echo API";
   *      version: "1.0";
   *      description: "";
   *      contact: {
   *        name: "gRPC-Gateway project";
   *        url: "https://github.com/grpc-ecosystem/grpc-gateway";
   *        email: "none@example.com";
   *      };
   *      license: {
   *        name: "BSD 3-Clause License";
   *        url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE.txt";
   *      };
   *    };
   *    ...
   *  };
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Info} */ public static final class Info extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Info(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 7: return internalGetExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.Builder.class); } public static final int TITLE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object title_ = ""; /** *
     * The title of the application.
     * 
* * string title = 1; * @return The title. */ @java.lang.Override 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; } } /** *
     * The title of the application.
     * 
* * string title = 1; * @return The bytes for title. */ @java.lang.Override 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; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
     * A short description of the application. GFM syntax can be used for rich
     * text representation.
     * 
* * string description = 2; * @return The description. */ @java.lang.Override 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 of the application. GFM syntax can be used for rich
     * text representation.
     * 
* * string description = 2; * @return The bytes for description. */ @java.lang.Override 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; @SuppressWarnings("serial") private volatile java.lang.Object termsOfService_ = ""; /** *
     * The Terms of Service for the API.
     * 
* * string terms_of_service = 3; * @return The termsOfService. */ @java.lang.Override 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; } } /** *
     * The Terms of Service for the API.
     * 
* * string terms_of_service = 3; * @return The bytes for termsOfService. */ @java.lang.Override 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_openapiv2.options.Openapiv2.Contact contact_; /** *
     * The contact information for the exposed API.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; * @return Whether the contact field is set. */ @java.lang.Override public boolean hasContact() { return contact_ != null; } /** *
     * The contact information for the exposed API.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; * @return The contact. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact getContact() { return contact_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.getDefaultInstance() : contact_; } /** *
     * The contact information for the exposed API.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ContactOrBuilder getContactOrBuilder() { return contact_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.getDefaultInstance() : contact_; } public static final int LICENSE_FIELD_NUMBER = 5; private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License license_; /** *
     * The license information for the exposed API.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; * @return Whether the license field is set. */ @java.lang.Override public boolean hasLicense() { return license_ != null; } /** *
     * The license information for the exposed API.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; * @return The license. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License getLicense() { return license_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.getDefaultInstance() : license_; } /** *
     * The license information for the exposed API.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.LicenseOrBuilder getLicenseOrBuilder() { return license_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.getDefaultInstance() : license_; } public static final int VERSION_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** *
     * Provides the version of the application API (not to be confused
     * with the specification version).
     * 
* * string version = 6; * @return The version. */ @java.lang.Override 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; } } /** *
     * Provides the version of the application API (not to be confused
     * with the specification version).
     * 
* * string version = 6; * @return The bytes for version. */ @java.lang.Override 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; } } public static final int EXTENSIONS_FIELD_NUMBER = 7; private static final class ExtensionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_ExtensionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.protobuf.Value.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Value> extensions_; private com.google.protobuf.MapField internalGetExtensions() { if (extensions_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtensionsDefaultEntryHolder.defaultEntry); } return extensions_; } public int getExtensionsCount() { return internalGetExtensions().getMap().size(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 7; */ @java.lang.Override public boolean containsExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtensions().getMap().containsKey(key); } /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtensions() { return getExtensionsMap(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 7; */ @java.lang.Override public java.util.Map getExtensionsMap() { return internalGetExtensions().getMap(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 7; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 7; */ @java.lang.Override public com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(termsOfService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, termsOfService_); } if (contact_ != null) { output.writeMessage(4, getContact()); } if (license_ != null) { output.writeMessage(5, getLicense()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, version_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetExtensions(), ExtensionsDefaultEntryHolder.defaultEntry, 7); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(termsOfService_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, termsOfService_); } if (contact_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getContact()); } if (license_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLicense()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, version_); } for (java.util.Map.Entry entry : internalGetExtensions().getMap().entrySet()) { com.google.protobuf.MapEntry extensions__ = ExtensionsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, extensions__); } size += getUnknownFields().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_openapiv2.options.Openapiv2.Info)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info other = (grpc.gateway.protoc_gen_openapiv2.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 (hasLicense() != other.hasLicense()) return false; if (hasLicense()) { if (!getLicense() .equals(other.getLicense())) return false; } if (!getVersion() .equals(other.getVersion())) return false; if (!internalGetExtensions().equals( other.internalGetExtensions())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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(); } if (hasLicense()) { hash = (37 * hash) + LICENSE_FIELD_NUMBER; hash = (53 * hash) + getLicense().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); if (!internalGetExtensions().getMap().isEmpty()) { hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetExtensions().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.Info parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.Info parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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
     * Example:
     *  option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
     *    info: {
     *      title: "Echo API";
     *      version: "1.0";
     *      description: "";
     *      contact: {
     *        name: "gRPC-Gateway project";
     *        url: "https://github.com/grpc-ecosystem/grpc-gateway";
     *        email: "none@example.com";
     *      };
     *      license: {
     *        name: "BSD 3-Clause License";
     *        url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE.txt";
     *      };
     *    };
     *    ...
     *  };
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Info} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.Info) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.InfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 7: return internalGetExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 7: return internalGetMutableExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; title_ = ""; description_ = ""; termsOfService_ = ""; contact_ = null; if (contactBuilder_ != null) { contactBuilder_.dispose(); contactBuilder_ = null; } license_ = null; if (licenseBuilder_ != null) { licenseBuilder_.dispose(); licenseBuilder_ = null; } version_ = ""; internalGetMutableExtensions().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.title_ = title_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.termsOfService_ = termsOfService_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.contact_ = contactBuilder_ == null ? contact_ : contactBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.license_ = licenseBuilder_ == null ? license_ : licenseBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.version_ = version_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.extensions_ = internalGetExtensions(); result.extensions_.makeImmutable(); } } @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_openapiv2.options.Openapiv2.Info) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info.getDefaultInstance()) return this; if (!other.getTitle().isEmpty()) { title_ = other.title_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getTermsOfService().isEmpty()) { termsOfService_ = other.termsOfService_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasContact()) { mergeContact(other.getContact()); } if (other.hasLicense()) { mergeLicense(other.getLicense()); } if (!other.getVersion().isEmpty()) { version_ = other.version_; bitField0_ |= 0x00000020; onChanged(); } internalGetMutableExtensions().mergeFrom( other.internalGetExtensions()); bitField0_ |= 0x00000040; this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { title_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { termsOfService_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getContactFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getLicenseFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { version_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { com.google.protobuf.MapEntry extensions__ = input.readMessage( ExtensionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableExtensions().getMutableMap().put( extensions__.getKey(), extensions__.getValue()); bitField0_ |= 0x00000040; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object title_ = ""; /** *
       * The title of the application.
       * 
* * string title = 1; * @return The title. */ 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; } } /** *
       * The title of the application.
       * 
* * string title = 1; * @return The bytes for title. */ 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; } } /** *
       * The title of the application.
       * 
* * string title = 1; * @param value The title to set. * @return This builder for chaining. */ public Builder setTitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } title_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The title of the application.
       * 
* * string title = 1; * @return This builder for chaining. */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The title of the application.
       * 
* * string title = 1; * @param value The bytes for title to set. * @return This builder for chaining. */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * A short description of the application. GFM syntax can be used for rich
       * text representation.
       * 
* * string description = 2; * @return The description. */ 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 of the application. GFM syntax can be used for rich
       * text representation.
       * 
* * string description = 2; * @return The bytes for description. */ 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 of the application. GFM syntax can be used for rich
       * text representation.
       * 
* * string description = 2; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * A short description of the application. GFM syntax can be used for rich
       * text representation.
       * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * A short description of the application. GFM syntax can be used for rich
       * text representation.
       * 
* * string description = 2; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object termsOfService_ = ""; /** *
       * The Terms of Service for the API.
       * 
* * string terms_of_service = 3; * @return The termsOfService. */ 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; } } /** *
       * The Terms of Service for the API.
       * 
* * string terms_of_service = 3; * @return The bytes for termsOfService. */ 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; } } /** *
       * The Terms of Service for the API.
       * 
* * string terms_of_service = 3; * @param value The termsOfService to set. * @return This builder for chaining. */ public Builder setTermsOfService( java.lang.String value) { if (value == null) { throw new NullPointerException(); } termsOfService_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The Terms of Service for the API.
       * 
* * string terms_of_service = 3; * @return This builder for chaining. */ public Builder clearTermsOfService() { termsOfService_ = getDefaultInstance().getTermsOfService(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * The Terms of Service for the API.
       * 
* * string terms_of_service = 3; * @param value The bytes for termsOfService to set. * @return This builder for chaining. */ public Builder setTermsOfServiceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); termsOfService_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact contact_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ContactOrBuilder> contactBuilder_; /** *
       * The contact information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; * @return Whether the contact field is set. */ public boolean hasContact() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * The contact information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; * @return The contact. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact getContact() { if (contactBuilder_ == null) { return contact_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.getDefaultInstance() : contact_; } else { return contactBuilder_.getMessage(); } } /** *
       * The contact information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; */ public Builder setContact(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact value) { if (contactBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contact_ = value; } else { contactBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The contact information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; */ public Builder setContact( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.Builder builderForValue) { if (contactBuilder_ == null) { contact_ = builderForValue.build(); } else { contactBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The contact information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; */ public Builder mergeContact(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact value) { if (contactBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && contact_ != null && contact_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.getDefaultInstance()) { getContactBuilder().mergeFrom(value); } else { contact_ = value; } } else { contactBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The contact information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; */ public Builder clearContact() { bitField0_ = (bitField0_ & ~0x00000008); contact_ = null; if (contactBuilder_ != null) { contactBuilder_.dispose(); contactBuilder_ = null; } onChanged(); return this; } /** *
       * The contact information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.Builder getContactBuilder() { bitField0_ |= 0x00000008; onChanged(); return getContactFieldBuilder().getBuilder(); } /** *
       * The contact information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ContactOrBuilder getContactOrBuilder() { if (contactBuilder_ != null) { return contactBuilder_.getMessageOrBuilder(); } else { return contact_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.getDefaultInstance() : contact_; } } /** *
       * The contact information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ContactOrBuilder> getContactFieldBuilder() { if (contactBuilder_ == null) { contactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ContactOrBuilder>( getContact(), getParentForChildren(), isClean()); contact_ = null; } return contactBuilder_; } private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License license_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.LicenseOrBuilder> licenseBuilder_; /** *
       * The license information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; * @return Whether the license field is set. */ public boolean hasLicense() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * The license information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; * @return The license. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License getLicense() { if (licenseBuilder_ == null) { return license_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.getDefaultInstance() : license_; } else { return licenseBuilder_.getMessage(); } } /** *
       * The license information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; */ public Builder setLicense(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License value) { if (licenseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } license_ = value; } else { licenseBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The license information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; */ public Builder setLicense( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.Builder builderForValue) { if (licenseBuilder_ == null) { license_ = builderForValue.build(); } else { licenseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The license information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; */ public Builder mergeLicense(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License value) { if (licenseBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && license_ != null && license_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.getDefaultInstance()) { getLicenseBuilder().mergeFrom(value); } else { license_ = value; } } else { licenseBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The license information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; */ public Builder clearLicense() { bitField0_ = (bitField0_ & ~0x00000010); license_ = null; if (licenseBuilder_ != null) { licenseBuilder_.dispose(); licenseBuilder_ = null; } onChanged(); return this; } /** *
       * The license information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.Builder getLicenseBuilder() { bitField0_ |= 0x00000010; onChanged(); return getLicenseFieldBuilder().getBuilder(); } /** *
       * The license information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.LicenseOrBuilder getLicenseOrBuilder() { if (licenseBuilder_ != null) { return licenseBuilder_.getMessageOrBuilder(); } else { return license_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.getDefaultInstance() : license_; } } /** *
       * The license information for the exposed API.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.LicenseOrBuilder> getLicenseFieldBuilder() { if (licenseBuilder_ == null) { licenseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.LicenseOrBuilder>( getLicense(), getParentForChildren(), isClean()); license_ = null; } return licenseBuilder_; } private java.lang.Object version_ = ""; /** *
       * Provides the version of the application API (not to be confused
       * with the specification version).
       * 
* * string version = 6; * @return The version. */ 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; } } /** *
       * Provides the version of the application API (not to be confused
       * with the specification version).
       * 
* * string version = 6; * @return The bytes for version. */ 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; } } /** *
       * Provides the version of the application API (not to be confused
       * with the specification version).
       * 
* * string version = 6; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Provides the version of the application API (not to be confused
       * with the specification version).
       * 
* * string version = 6; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
       * Provides the version of the application API (not to be confused
       * with the specification version).
       * 
* * string version = 6; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Value> extensions_; private com.google.protobuf.MapField internalGetExtensions() { if (extensions_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtensionsDefaultEntryHolder.defaultEntry); } return extensions_; } private com.google.protobuf.MapField internalGetMutableExtensions() { if (extensions_ == null) { extensions_ = com.google.protobuf.MapField.newMapField( ExtensionsDefaultEntryHolder.defaultEntry); } if (!extensions_.isMutable()) { extensions_ = extensions_.copy(); } bitField0_ |= 0x00000040; onChanged(); return extensions_; } public int getExtensionsCount() { return internalGetExtensions().getMap().size(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 7; */ @java.lang.Override public boolean containsExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtensions().getMap().containsKey(key); } /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtensions() { return getExtensionsMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 7; */ @java.lang.Override public java.util.Map getExtensionsMap() { return internalGetExtensions().getMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 7; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 7; */ @java.lang.Override public com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearExtensions() { bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableExtensions().getMutableMap() .clear(); return this; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 7; */ public Builder removeExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExtensions().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableExtensions() { bitField0_ |= 0x00000040; return internalGetMutableExtensions().getMutableMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 7; */ public Builder putExtensions( java.lang.String key, com.google.protobuf.Value value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableExtensions().getMutableMap() .put(key, value); bitField0_ |= 0x00000040; return this; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 7; */ public Builder putAllExtensions( java.util.Map values) { internalGetMutableExtensions().getMutableMap() .putAll(values); bitField0_ |= 0x00000040; 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_openapiv2.options.Info) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Info) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Info(); } public static grpc.gateway.protoc_gen_openapiv2.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.Info getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContactOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.Contact) com.google.protobuf.MessageOrBuilder { /** *
     * The identifying name of the contact person/organization.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * The identifying name of the contact person/organization.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * The URL pointing to the contact information. MUST be in the format of a
     * URL.
     * 
* * string url = 2; * @return The url. */ java.lang.String getUrl(); /** *
     * The URL pointing to the contact information. MUST be in the format of a
     * URL.
     * 
* * string url = 2; * @return The bytes for url. */ com.google.protobuf.ByteString getUrlBytes(); /** *
     * The email address of the contact person/organization. MUST be in the format
     * of an email address.
     * 
* * string email = 3; * @return The email. */ java.lang.String getEmail(); /** *
     * The email address of the contact person/organization. MUST be in the format
     * of an email address.
     * 
* * string email = 3; * @return The bytes for email. */ 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
   * Example:
   *  option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
   *    info: {
   *      ...
   *      contact: {
   *        name: "gRPC-Gateway project";
   *        url: "https://github.com/grpc-ecosystem/grpc-gateway";
   *        email: "none@example.com";
   *      };
   *      ...
   *    };
   *    ...
   *  };
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Contact} */ public static final class Contact extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Contact(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Contact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Contact_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * The identifying name of the contact person/organization.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override 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; } } /** *
     * The identifying name of the contact person/organization.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override 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; @SuppressWarnings("serial") private volatile java.lang.Object url_ = ""; /** *
     * The URL pointing to the contact information. MUST be in the format of a
     * URL.
     * 
* * string url = 2; * @return The url. */ @java.lang.Override 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; } } /** *
     * The URL pointing to the contact information. MUST be in the format of a
     * URL.
     * 
* * string url = 2; * @return The bytes for url. */ @java.lang.Override 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; @SuppressWarnings("serial") private volatile java.lang.Object email_ = ""; /** *
     * The email address of the contact person/organization. MUST be in the format
     * of an email address.
     * 
* * string email = 3; * @return The email. */ @java.lang.Override 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; } } /** *
     * The email address of the contact person/organization. MUST be in the format
     * of an email address.
     * 
* * string email = 3; * @return The bytes for email. */ @java.lang.Override 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, email_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, email_); } size += getUnknownFields().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_openapiv2.options.Openapiv2.Contact)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact other = (grpc.gateway.protoc_gen_openapiv2.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.Contact parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.Contact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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
     * Example:
     *  option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
     *    info: {
     *      ...
     *      contact: {
     *        name: "gRPC-Gateway project";
     *        url: "https://github.com/grpc-ecosystem/grpc-gateway";
     *        email: "none@example.com";
     *      };
     *      ...
     *    };
     *    ...
     *  };
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Contact} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.Contact) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ContactOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Contact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Contact_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; url_ = ""; email_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Contact_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.url_ = url_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.email_ = email_; } } @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_openapiv2.options.Openapiv2.Contact) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getUrl().isEmpty()) { url_ = other.url_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getEmail().isEmpty()) { email_ = other.email_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { url_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { email_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * The identifying name of the contact person/organization.
       * 
* * string name = 1; * @return The name. */ 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; } } /** *
       * The identifying name of the contact person/organization.
       * 
* * string name = 1; * @return The bytes for name. */ 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; } } /** *
       * The identifying name of the contact person/organization.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The identifying name of the contact person/organization.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The identifying name of the contact person/organization.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object url_ = ""; /** *
       * The URL pointing to the contact information. MUST be in the format of a
       * URL.
       * 
* * string url = 2; * @return The url. */ 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; } } /** *
       * The URL pointing to the contact information. MUST be in the format of a
       * URL.
       * 
* * string url = 2; * @return The bytes for url. */ 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; } } /** *
       * The URL pointing to the contact information. MUST be in the format of a
       * URL.
       * 
* * string url = 2; * @param value The url to set. * @return This builder for chaining. */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } url_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The URL pointing to the contact information. MUST be in the format of a
       * URL.
       * 
* * string url = 2; * @return This builder for chaining. */ public Builder clearUrl() { url_ = getDefaultInstance().getUrl(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The URL pointing to the contact information. MUST be in the format of a
       * URL.
       * 
* * string url = 2; * @param value The bytes for url to set. * @return This builder for chaining. */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object email_ = ""; /** *
       * The email address of the contact person/organization. MUST be in the format
       * of an email address.
       * 
* * string email = 3; * @return The email. */ 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; } } /** *
       * The email address of the contact person/organization. MUST be in the format
       * of an email address.
       * 
* * string email = 3; * @return The bytes for email. */ 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; } } /** *
       * The email address of the contact person/organization. MUST be in the format
       * of an email address.
       * 
* * string email = 3; * @param value The email to set. * @return This builder for chaining. */ public Builder setEmail( java.lang.String value) { if (value == null) { throw new NullPointerException(); } email_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The email address of the contact person/organization. MUST be in the format
       * of an email address.
       * 
* * string email = 3; * @return This builder for chaining. */ public Builder clearEmail() { email_ = getDefaultInstance().getEmail(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * The email address of the contact person/organization. MUST be in the format
       * of an email address.
       * 
* * string email = 3; * @param value The bytes for email to set. * @return This builder for chaining. */ public Builder setEmailBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); email_ = value; bitField0_ |= 0x00000004; 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_openapiv2.options.Contact) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Contact) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact(); } public static grpc.gateway.protoc_gen_openapiv2.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.Contact getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LicenseOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.License) com.google.protobuf.MessageOrBuilder { /** *
     * The license name used for the API.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * The license name used for the API.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * A URL to the license used for the API. MUST be in the format of a URL.
     * 
* * string url = 2; * @return The url. */ java.lang.String getUrl(); /** *
     * A URL to the license used for the API. MUST be in the format of a URL.
     * 
* * string url = 2; * @return The bytes for url. */ com.google.protobuf.ByteString getUrlBytes(); } /** *
   * `License` is a representation of OpenAPI v2 specification's License object.
   * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#licenseObject
   * Example:
   *  option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
   *    info: {
   *      ...
   *      license: {
   *        name: "BSD 3-Clause License";
   *        url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE.txt";
   *      };
   *      ...
   *    };
   *    ...
   *  };
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.License} */ public static final class License extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.options.License) LicenseOrBuilder { private static final long serialVersionUID = 0L; // Use License.newBuilder() to construct. private License(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private License() { name_ = ""; url_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new License(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_License_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_License_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * The license name used for the API.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override 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; } } /** *
     * The license name used for the API.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override 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; @SuppressWarnings("serial") private volatile java.lang.Object url_ = ""; /** *
     * A URL to the license used for the API. MUST be in the format of a URL.
     * 
* * string url = 2; * @return The url. */ @java.lang.Override 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; } } /** *
     * A URL to the license used for the API. MUST be in the format of a URL.
     * 
* * string url = 2; * @return The bytes for url. */ @java.lang.Override 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_); } size += getUnknownFields().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_openapiv2.options.Openapiv2.License)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License other = (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License) obj; if (!getName() .equals(other.getName())) return false; if (!getUrl() .equals(other.getUrl())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License 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_openapiv2.options.Openapiv2.License parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License 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_openapiv2.options.Openapiv2.License parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License 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_openapiv2.options.Openapiv2.License parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License 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_openapiv2.options.Openapiv2.License parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License 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_openapiv2.options.Openapiv2.License 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; } /** *
     * `License` is a representation of OpenAPI v2 specification's License object.
     * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#licenseObject
     * Example:
     *  option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
     *    info: {
     *      ...
     *      license: {
     *        name: "BSD 3-Clause License";
     *        url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE.txt";
     *      };
     *      ...
     *    };
     *    ...
     *  };
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.License} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.License) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.LicenseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_License_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_License_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; url_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_License_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.url_ = url_; } } @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_openapiv2.options.Openapiv2.License) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getUrl().isEmpty()) { url_ = other.url_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { url_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * The license name used for the API.
       * 
* * string name = 1; * @return The name. */ 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; } } /** *
       * The license name used for the API.
       * 
* * string name = 1; * @return The bytes for name. */ 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; } } /** *
       * The license name used for the API.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The license name used for the API.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The license name used for the API.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object url_ = ""; /** *
       * A URL to the license used for the API. MUST be in the format of a URL.
       * 
* * string url = 2; * @return The url. */ 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; } } /** *
       * A URL to the license used for the API. MUST be in the format of a URL.
       * 
* * string url = 2; * @return The bytes for url. */ 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; } } /** *
       * A URL to the license used for the API. MUST be in the format of a URL.
       * 
* * string url = 2; * @param value The url to set. * @return This builder for chaining. */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } url_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * A URL to the license used for the API. MUST be in the format of a URL.
       * 
* * string url = 2; * @return This builder for chaining. */ public Builder clearUrl() { url_ = getDefaultInstance().getUrl(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * A URL to the license used for the API. MUST be in the format of a URL.
       * 
* * string url = 2; * @param value The bytes for url to set. * @return This builder for chaining. */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = value; bitField0_ |= 0x00000002; 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_openapiv2.options.License) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.License) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License(); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.License getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public License parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.License getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExternalDocumentationOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) com.google.protobuf.MessageOrBuilder { /** *
     * A short description of the target documentation. GFM syntax can be used for
     * rich text representation.
     * 
* * string description = 1; * @return The description. */ java.lang.String getDescription(); /** *
     * A short description of the target documentation. GFM syntax can be used for
     * rich text representation.
     * 
* * string description = 1; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * The URL for the target documentation. Value MUST be in the format
     * of a URL.
     * 
* * string url = 2; * @return The url. */ java.lang.String getUrl(); /** *
     * The URL for the target documentation. Value MUST be in the format
     * of a URL.
     * 
* * string url = 2; * @return The bytes for url. */ 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
   * Example:
   *  option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
   *    ...
   *    external_docs: {
   *      description: "More about gRPC-Gateway";
   *      url: "https://github.com/grpc-ecosystem/grpc-gateway";
   *    }
   *    ...
   *  };
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation} */ public static final class ExternalDocumentation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExternalDocumentation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_ExternalDocumentation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_ExternalDocumentation_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder.class); } public static final int DESCRIPTION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
     * A short description of the target documentation. GFM syntax can be used for
     * rich text representation.
     * 
* * string description = 1; * @return The description. */ @java.lang.Override 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 of the target documentation. GFM syntax can be used for
     * rich text representation.
     * 
* * string description = 1; * @return The bytes for description. */ @java.lang.Override 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; @SuppressWarnings("serial") private volatile java.lang.Object url_ = ""; /** *
     * The URL for the target documentation. Value MUST be in the format
     * of a URL.
     * 
* * string url = 2; * @return The url. */ @java.lang.Override 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; } } /** *
     * The URL for the target documentation. Value MUST be in the format
     * of a URL.
     * 
* * string url = 2; * @return The bytes for url. */ @java.lang.Override 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_); } size += getUnknownFields().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_openapiv2.options.Openapiv2.ExternalDocumentation)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation other = (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation) obj; if (!getDescription() .equals(other.getDescription())) return false; if (!getUrl() .equals(other.getUrl())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.ExternalDocumentation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.ExternalDocumentation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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
     * Example:
     *  option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
     *    ...
     *    external_docs: {
     *      description: "More about gRPC-Gateway";
     *      url: "https://github.com/grpc-ecosystem/grpc-gateway";
     *    }
     *    ...
     *  };
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_ExternalDocumentation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_ExternalDocumentation_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; description_ = ""; url_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_ExternalDocumentation_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.url_ = url_; } } @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_openapiv2.options.Openapiv2.ExternalDocumentation) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getUrl().isEmpty()) { url_ = other.url_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { url_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object description_ = ""; /** *
       * A short description of the target documentation. GFM syntax can be used for
       * rich text representation.
       * 
* * string description = 1; * @return The description. */ 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 of the target documentation. GFM syntax can be used for
       * rich text representation.
       * 
* * string description = 1; * @return The bytes for description. */ 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 of the target documentation. GFM syntax can be used for
       * rich text representation.
       * 
* * string description = 1; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * A short description of the target documentation. GFM syntax can be used for
       * rich text representation.
       * 
* * string description = 1; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * A short description of the target documentation. GFM syntax can be used for
       * rich text representation.
       * 
* * string description = 1; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object url_ = ""; /** *
       * The URL for the target documentation. Value MUST be in the format
       * of a URL.
       * 
* * string url = 2; * @return The url. */ 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; } } /** *
       * The URL for the target documentation. Value MUST be in the format
       * of a URL.
       * 
* * string url = 2; * @return The bytes for url. */ 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; } } /** *
       * The URL for the target documentation. Value MUST be in the format
       * of a URL.
       * 
* * string url = 2; * @param value The url to set. * @return This builder for chaining. */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } url_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The URL for the target documentation. Value MUST be in the format
       * of a URL.
       * 
* * string url = 2; * @return This builder for chaining. */ public Builder clearUrl() { url_ = getDefaultInstance().getUrl(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The URL for the target documentation. Value MUST be in the format
       * of a URL.
       * 
* * string url = 2; * @param value The bytes for url to set. * @return This builder for chaining. */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = value; bitField0_ |= 0x00000002; 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_openapiv2.options.ExternalDocumentation) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation(); } public static grpc.gateway.protoc_gen_openapiv2.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.ExternalDocumentation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.Schema) com.google.protobuf.MessageOrBuilder { /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; * @return Whether the jsonSchema field is set. */ boolean hasJsonSchema(); /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; * @return The jsonSchema. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema getJsonSchema(); /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchemaOrBuilder getJsonSchemaOrBuilder(); /** *
     * Adds support for polymorphism. The discriminator is the schema property
     * name that is used to differentiate between other schema that inherit this
     * schema. The property name used MUST be defined at this schema and it MUST
     * be in the required property list. When used, the value MUST be the name of
     * this schema or any schema that inherits it.
     * 
* * string discriminator = 2; * @return The discriminator. */ java.lang.String getDiscriminator(); /** *
     * Adds support for polymorphism. The discriminator is the schema property
     * name that is used to differentiate between other schema that inherit this
     * schema. The property name used MUST be defined at this schema and it MUST
     * be in the required property list. When used, the value MUST be the name of
     * this schema or any schema that inherits it.
     * 
* * string discriminator = 2; * @return The bytes for discriminator. */ com.google.protobuf.ByteString getDiscriminatorBytes(); /** *
     * Relevant only for Schema "properties" definitions. Declares the property as
     * "read only". This means that it MAY be sent as part of a response but MUST
     * NOT be sent as part of the request. Properties marked as readOnly being
     * true SHOULD NOT be in the required list of the defined schema. Default
     * value is false.
     * 
* * bool read_only = 3; * @return The readOnly. */ boolean getReadOnly(); /** *
     * Additional external documentation for this schema.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; * @return Whether the externalDocs field is set. */ boolean hasExternalDocs(); /** *
     * Additional external documentation for this schema.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; * @return The externalDocs. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation getExternalDocs(); /** *
     * Additional external documentation for this schema.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder(); /** *
     * A free-form property to include an example of an instance for this schema in JSON.
     * This is copied verbatim to the output.
     * 
* * string example = 6; * @return The example. */ java.lang.String getExample(); /** *
     * A free-form property to include an example of an instance for this schema in JSON.
     * This is copied verbatim to the output.
     * 
* * string example = 6; * @return The bytes for example. */ com.google.protobuf.ByteString getExampleBytes(); } /** *
   * `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
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Schema} */ public static final class Schema extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.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_ = ""; example_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Schema(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Schema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.Builder.class); } public static final int JSON_SCHEMA_FIELD_NUMBER = 1; private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema jsonSchema_; /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; * @return Whether the jsonSchema field is set. */ @java.lang.Override public boolean hasJsonSchema() { return jsonSchema_ != null; } /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; * @return The jsonSchema. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema getJsonSchema() { return jsonSchema_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.getDefaultInstance() : jsonSchema_; } /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchemaOrBuilder getJsonSchemaOrBuilder() { return jsonSchema_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.getDefaultInstance() : jsonSchema_; } public static final int DISCRIMINATOR_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object discriminator_ = ""; /** *
     * Adds support for polymorphism. The discriminator is the schema property
     * name that is used to differentiate between other schema that inherit this
     * schema. The property name used MUST be defined at this schema and it MUST
     * be in the required property list. When used, the value MUST be the name of
     * this schema or any schema that inherits it.
     * 
* * string discriminator = 2; * @return The discriminator. */ @java.lang.Override 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; } } /** *
     * Adds support for polymorphism. The discriminator is the schema property
     * name that is used to differentiate between other schema that inherit this
     * schema. The property name used MUST be defined at this schema and it MUST
     * be in the required property list. When used, the value MUST be the name of
     * this schema or any schema that inherits it.
     * 
* * string discriminator = 2; * @return The bytes for discriminator. */ @java.lang.Override 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_ = false; /** *
     * Relevant only for Schema "properties" definitions. Declares the property as
     * "read only". This means that it MAY be sent as part of a response but MUST
     * NOT be sent as part of the request. Properties marked as readOnly being
     * true SHOULD NOT be in the required list of the defined schema. Default
     * value is false.
     * 
* * bool read_only = 3; * @return The readOnly. */ @java.lang.Override public boolean getReadOnly() { return readOnly_; } public static final int EXTERNAL_DOCS_FIELD_NUMBER = 5; private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation externalDocs_; /** *
     * Additional external documentation for this schema.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; * @return Whether the externalDocs field is set. */ @java.lang.Override public boolean hasExternalDocs() { return externalDocs_ != null; } /** *
     * Additional external documentation for this schema.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; * @return The externalDocs. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation getExternalDocs() { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } /** *
     * Additional external documentation for this schema.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } public static final int EXAMPLE_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object example_ = ""; /** *
     * A free-form property to include an example of an instance for this schema in JSON.
     * This is copied verbatim to the output.
     * 
* * string example = 6; * @return The example. */ @java.lang.Override public java.lang.String getExample() { java.lang.Object ref = example_; 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(); example_ = s; return s; } } /** *
     * A free-form property to include an example of an instance for this schema in JSON.
     * This is copied verbatim to the output.
     * 
* * string example = 6; * @return The bytes for example. */ @java.lang.Override public com.google.protobuf.ByteString getExampleBytes() { java.lang.Object ref = example_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); example_ = 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 (jsonSchema_ != null) { output.writeMessage(1, getJsonSchema()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(discriminator_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, discriminator_); } if (readOnly_ != false) { output.writeBool(3, readOnly_); } if (externalDocs_ != null) { output.writeMessage(5, getExternalDocs()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(example_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, example_); } getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(discriminator_)) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(example_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, example_); } size += getUnknownFields().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_openapiv2.options.Openapiv2.Schema)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema other = (grpc.gateway.protoc_gen_openapiv2.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 (!getExample() .equals(other.getExample())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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(); } hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; hash = (53 * hash) + getExample().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.Schema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.Schema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Schema} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.Schema) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SchemaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Schema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; jsonSchema_ = null; if (jsonSchemaBuilder_ != null) { jsonSchemaBuilder_.dispose(); jsonSchemaBuilder_ = null; } discriminator_ = ""; readOnly_ = false; externalDocs_ = null; if (externalDocsBuilder_ != null) { externalDocsBuilder_.dispose(); externalDocsBuilder_ = null; } example_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Schema_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.jsonSchema_ = jsonSchemaBuilder_ == null ? jsonSchema_ : jsonSchemaBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.discriminator_ = discriminator_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.readOnly_ = readOnly_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.externalDocs_ = externalDocsBuilder_ == null ? externalDocs_ : externalDocsBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.example_ = example_; } } @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_openapiv2.options.Openapiv2.Schema) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema.getDefaultInstance()) return this; if (other.hasJsonSchema()) { mergeJsonSchema(other.getJsonSchema()); } if (!other.getDiscriminator().isEmpty()) { discriminator_ = other.discriminator_; bitField0_ |= 0x00000002; onChanged(); } if (other.getReadOnly() != false) { setReadOnly(other.getReadOnly()); } if (other.hasExternalDocs()) { mergeExternalDocs(other.getExternalDocs()); } if (!other.getExample().isEmpty()) { example_ = other.example_; bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getJsonSchemaFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { discriminator_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { readOnly_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 42: { input.readMessage( getExternalDocsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 42 case 50: { example_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema jsonSchema_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchemaOrBuilder> jsonSchemaBuilder_; /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; * @return Whether the jsonSchema field is set. */ public boolean hasJsonSchema() { return ((bitField0_ & 0x00000001) != 0); } /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; * @return The jsonSchema. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema getJsonSchema() { if (jsonSchemaBuilder_ == null) { return jsonSchema_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.getDefaultInstance() : jsonSchema_; } else { return jsonSchemaBuilder_.getMessage(); } } /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; */ public Builder setJsonSchema(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema value) { if (jsonSchemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } jsonSchema_ = value; } else { jsonSchemaBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; */ public Builder setJsonSchema( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.Builder builderForValue) { if (jsonSchemaBuilder_ == null) { jsonSchema_ = builderForValue.build(); } else { jsonSchemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; */ public Builder mergeJsonSchema(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema value) { if (jsonSchemaBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && jsonSchema_ != null && jsonSchema_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.getDefaultInstance()) { getJsonSchemaBuilder().mergeFrom(value); } else { jsonSchema_ = value; } } else { jsonSchemaBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; */ public Builder clearJsonSchema() { bitField0_ = (bitField0_ & ~0x00000001); jsonSchema_ = null; if (jsonSchemaBuilder_ != null) { jsonSchemaBuilder_.dispose(); jsonSchemaBuilder_ = null; } onChanged(); return this; } /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.Builder getJsonSchemaBuilder() { bitField0_ |= 0x00000001; onChanged(); return getJsonSchemaFieldBuilder().getBuilder(); } /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchemaOrBuilder getJsonSchemaOrBuilder() { if (jsonSchemaBuilder_ != null) { return jsonSchemaBuilder_.getMessageOrBuilder(); } else { return jsonSchema_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.getDefaultInstance() : jsonSchema_; } } /** * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchemaOrBuilder> getJsonSchemaFieldBuilder() { if (jsonSchemaBuilder_ == null) { jsonSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchemaOrBuilder>( getJsonSchema(), getParentForChildren(), isClean()); jsonSchema_ = null; } return jsonSchemaBuilder_; } private java.lang.Object discriminator_ = ""; /** *
       * Adds support for polymorphism. The discriminator is the schema property
       * name that is used to differentiate between other schema that inherit this
       * schema. The property name used MUST be defined at this schema and it MUST
       * be in the required property list. When used, the value MUST be the name of
       * this schema or any schema that inherits it.
       * 
* * string discriminator = 2; * @return The discriminator. */ 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; } } /** *
       * Adds support for polymorphism. The discriminator is the schema property
       * name that is used to differentiate between other schema that inherit this
       * schema. The property name used MUST be defined at this schema and it MUST
       * be in the required property list. When used, the value MUST be the name of
       * this schema or any schema that inherits it.
       * 
* * string discriminator = 2; * @return The bytes for discriminator. */ 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; } } /** *
       * Adds support for polymorphism. The discriminator is the schema property
       * name that is used to differentiate between other schema that inherit this
       * schema. The property name used MUST be defined at this schema and it MUST
       * be in the required property list. When used, the value MUST be the name of
       * this schema or any schema that inherits it.
       * 
* * string discriminator = 2; * @param value The discriminator to set. * @return This builder for chaining. */ public Builder setDiscriminator( java.lang.String value) { if (value == null) { throw new NullPointerException(); } discriminator_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Adds support for polymorphism. The discriminator is the schema property
       * name that is used to differentiate between other schema that inherit this
       * schema. The property name used MUST be defined at this schema and it MUST
       * be in the required property list. When used, the value MUST be the name of
       * this schema or any schema that inherits it.
       * 
* * string discriminator = 2; * @return This builder for chaining. */ public Builder clearDiscriminator() { discriminator_ = getDefaultInstance().getDiscriminator(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Adds support for polymorphism. The discriminator is the schema property
       * name that is used to differentiate between other schema that inherit this
       * schema. The property name used MUST be defined at this schema and it MUST
       * be in the required property list. When used, the value MUST be the name of
       * this schema or any schema that inherits it.
       * 
* * string discriminator = 2; * @param value The bytes for discriminator to set. * @return This builder for chaining. */ public Builder setDiscriminatorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); discriminator_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private boolean readOnly_ ; /** *
       * Relevant only for Schema "properties" definitions. Declares the property as
       * "read only". This means that it MAY be sent as part of a response but MUST
       * NOT be sent as part of the request. Properties marked as readOnly being
       * true SHOULD NOT be in the required list of the defined schema. Default
       * value is false.
       * 
* * bool read_only = 3; * @return The readOnly. */ @java.lang.Override public boolean getReadOnly() { return readOnly_; } /** *
       * Relevant only for Schema "properties" definitions. Declares the property as
       * "read only". This means that it MAY be sent as part of a response but MUST
       * NOT be sent as part of the request. Properties marked as readOnly being
       * true SHOULD NOT be in the required list of the defined schema. Default
       * value is false.
       * 
* * bool read_only = 3; * @param value The readOnly to set. * @return This builder for chaining. */ public Builder setReadOnly(boolean value) { readOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Relevant only for Schema "properties" definitions. Declares the property as
       * "read only". This means that it MAY be sent as part of a response but MUST
       * NOT be sent as part of the request. Properties marked as readOnly being
       * true SHOULD NOT be in the required list of the defined schema. Default
       * value is false.
       * 
* * bool read_only = 3; * @return This builder for chaining. */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; onChanged(); return this; } private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation externalDocs_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder> externalDocsBuilder_; /** *
       * Additional external documentation for this schema.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; * @return Whether the externalDocs field is set. */ public boolean hasExternalDocs() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Additional external documentation for this schema.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; * @return The externalDocs. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation getExternalDocs() { if (externalDocsBuilder_ == null) { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } else { return externalDocsBuilder_.getMessage(); } } /** *
       * Additional external documentation for this schema.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; */ public Builder setExternalDocs(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } externalDocs_ = value; } else { externalDocsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Additional external documentation for this schema.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; */ public Builder setExternalDocs( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder builderForValue) { if (externalDocsBuilder_ == null) { externalDocs_ = builderForValue.build(); } else { externalDocsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Additional external documentation for this schema.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; */ public Builder mergeExternalDocs(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && externalDocs_ != null && externalDocs_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance()) { getExternalDocsBuilder().mergeFrom(value); } else { externalDocs_ = value; } } else { externalDocsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Additional external documentation for this schema.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; */ public Builder clearExternalDocs() { bitField0_ = (bitField0_ & ~0x00000008); externalDocs_ = null; if (externalDocsBuilder_ != null) { externalDocsBuilder_.dispose(); externalDocsBuilder_ = null; } onChanged(); return this; } /** *
       * Additional external documentation for this schema.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder getExternalDocsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getExternalDocsFieldBuilder().getBuilder(); } /** *
       * Additional external documentation for this schema.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { if (externalDocsBuilder_ != null) { return externalDocsBuilder_.getMessageOrBuilder(); } else { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } } /** *
       * Additional external documentation for this schema.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder> getExternalDocsFieldBuilder() { if (externalDocsBuilder_ == null) { externalDocsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder>( getExternalDocs(), getParentForChildren(), isClean()); externalDocs_ = null; } return externalDocsBuilder_; } private java.lang.Object example_ = ""; /** *
       * A free-form property to include an example of an instance for this schema in JSON.
       * This is copied verbatim to the output.
       * 
* * string example = 6; * @return The example. */ public java.lang.String getExample() { java.lang.Object ref = example_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); example_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A free-form property to include an example of an instance for this schema in JSON.
       * This is copied verbatim to the output.
       * 
* * string example = 6; * @return The bytes for example. */ public com.google.protobuf.ByteString getExampleBytes() { java.lang.Object ref = example_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); example_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A free-form property to include an example of an instance for this schema in JSON.
       * This is copied verbatim to the output.
       * 
* * string example = 6; * @param value The example to set. * @return This builder for chaining. */ public Builder setExample( java.lang.String value) { if (value == null) { throw new NullPointerException(); } example_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * A free-form property to include an example of an instance for this schema in JSON.
       * This is copied verbatim to the output.
       * 
* * string example = 6; * @return This builder for chaining. */ public Builder clearExample() { example_ = getDefaultInstance().getExample(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
       * A free-form property to include an example of an instance for this schema in JSON.
       * This is copied verbatim to the output.
       * 
* * string example = 6; * @param value The bytes for example to set. * @return This builder for chaining. */ public Builder setExampleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); example_ = value; bitField0_ |= 0x00000010; 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_openapiv2.options.Schema) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Schema) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Schema(); } public static grpc.gateway.protoc_gen_openapiv2.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.Schema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface JSONSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) com.google.protobuf.MessageOrBuilder { /** *
     * Ref is used to define an external reference to include in the message.
     * This could be a fully qualified proto message reference, and that type must
     * be imported into the protofile. If no message is identified, the Ref will
     * be used verbatim in the output.
     * For example:
     *  `ref: ".google.protobuf.Timestamp"`.
     * 
* * string ref = 3; * @return The ref. */ java.lang.String getRef(); /** *
     * Ref is used to define an external reference to include in the message.
     * This could be a fully qualified proto message reference, and that type must
     * be imported into the protofile. If no message is identified, the Ref will
     * be used verbatim in the output.
     * For example:
     *  `ref: ".google.protobuf.Timestamp"`.
     * 
* * string ref = 3; * @return The bytes for ref. */ com.google.protobuf.ByteString getRefBytes(); /** *
     * The title of the schema.
     * 
* * string title = 5; * @return The title. */ java.lang.String getTitle(); /** *
     * The title of the schema.
     * 
* * string title = 5; * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); /** *
     * A short description of the schema.
     * 
* * string description = 6; * @return The description. */ java.lang.String getDescription(); /** *
     * A short description of the schema.
     * 
* * string description = 6; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** * string default = 7; * @return The default. */ java.lang.String getDefault(); /** * string default = 7; * @return The bytes for default. */ com.google.protobuf.ByteString getDefaultBytes(); /** * bool read_only = 8; * @return The readOnly. */ boolean getReadOnly(); /** *
     * A free-form property to include a JSON example of this field. This is copied
     * verbatim to the output swagger.json. Quotes must be escaped.
     * This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject  https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
     * 
* * string example = 9; * @return The example. */ java.lang.String getExample(); /** *
     * A free-form property to include a JSON example of this field. This is copied
     * verbatim to the output swagger.json. Quotes must be escaped.
     * This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject  https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
     * 
* * string example = 9; * @return The bytes for example. */ com.google.protobuf.ByteString getExampleBytes(); /** * double multiple_of = 10; * @return The multipleOf. */ double getMultipleOf(); /** *
     * Maximum represents an inclusive upper limit for a numeric instance. The
     * value of MUST be a number,
     * 
* * double maximum = 11; * @return The maximum. */ double getMaximum(); /** * bool exclusive_maximum = 12; * @return The exclusiveMaximum. */ boolean getExclusiveMaximum(); /** *
     * minimum represents an inclusive lower limit for a numeric instance. The
     * value of MUST be a number,
     * 
* * double minimum = 13; * @return The minimum. */ double getMinimum(); /** * bool exclusive_minimum = 14; * @return The exclusiveMinimum. */ boolean getExclusiveMinimum(); /** * uint64 max_length = 15; * @return The maxLength. */ long getMaxLength(); /** * uint64 min_length = 16; * @return The minLength. */ long getMinLength(); /** * string pattern = 17; * @return The pattern. */ java.lang.String getPattern(); /** * string pattern = 17; * @return The bytes for pattern. */ com.google.protobuf.ByteString getPatternBytes(); /** * uint64 max_items = 20; * @return The maxItems. */ long getMaxItems(); /** * uint64 min_items = 21; * @return The minItems. */ long getMinItems(); /** * bool unique_items = 22; * @return The uniqueItems. */ boolean getUniqueItems(); /** * uint64 max_properties = 24; * @return The maxProperties. */ long getMaxProperties(); /** * uint64 min_properties = 25; * @return The minProperties. */ long getMinProperties(); /** * repeated string required = 26; * @return A list containing the required. */ java.util.List getRequiredList(); /** * repeated string required = 26; * @return The count of required. */ int getRequiredCount(); /** * repeated string required = 26; * @param index The index of the element to return. * @return The required at the given index. */ java.lang.String getRequired(int index); /** * repeated string required = 26; * @param index The index of the value to return. * @return The bytes of the required at the given index. */ com.google.protobuf.ByteString getRequiredBytes(int index); /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; * @return A list containing the array. */ java.util.List getArrayList(); /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; * @return The count of array. */ int getArrayCount(); /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; * @param index The index of the element to return. * @return The array at the given index. */ java.lang.String getArray(int index); /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; * @param index The index of the value to return. * @return The bytes of the array at the given index. */ com.google.protobuf.ByteString getArrayBytes(int index); /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @return A list containing the type. */ java.util.List getTypeList(); /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @return The count of type. */ int getTypeCount(); /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @param index The index of the element to return. * @return The type at the given index. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes getType(int index); /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @return A list containing the enum numeric values on the wire for type. */ java.util.List getTypeValueList(); /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @param index The index of the value to return. * @return The enum numeric value on the wire of type at the given index. */ int getTypeValue(int index); /** *
     * `Format`
     * 
* * string format = 36; * @return The format. */ java.lang.String getFormat(); /** *
     * `Format`
     * 
* * string format = 36; * @return The bytes for format. */ com.google.protobuf.ByteString getFormatBytes(); /** *
     * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
     * 
* * repeated string enum = 46; * @return A list containing the enum. */ java.util.List getEnumList(); /** *
     * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
     * 
* * repeated string enum = 46; * @return The count of enum. */ int getEnumCount(); /** *
     * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
     * 
* * repeated string enum = 46; * @param index The index of the element to return. * @return The enum at the given index. */ java.lang.String getEnum(int index); /** *
     * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
     * 
* * repeated string enum = 46; * @param index The index of the value to return. * @return The bytes of the enum at the given index. */ com.google.protobuf.ByteString getEnumBytes(int index); /** *
     * Additional field level properties used when generating the OpenAPI v2 file.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; * @return Whether the fieldConfiguration field is set. */ boolean hasFieldConfiguration(); /** *
     * Additional field level properties used when generating the OpenAPI v2 file.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; * @return The fieldConfiguration. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration getFieldConfiguration(); /** *
     * Additional field level properties used when generating the OpenAPI v2 file.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfigurationOrBuilder getFieldConfigurationOrBuilder(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 48; */ int getExtensionsCount(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 48; */ boolean containsExtensions( java.lang.String key); /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Deprecated java.util.Map getExtensions(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 48; */ java.util.Map getExtensionsMap(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 48; */ /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 48; */ com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key); } /** *
   * `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
   * Example:
   *  message SimpleMessage {
   *    option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
   *      json_schema: {
   *        title: "SimpleMessage"
   *        description: "A simple message."
   *        required: ["id"]
   *      }
   *    };
   *    // Id represents the message identifier.
   *    string id = 1; [
   *        (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
   *          description: "The unique identifier of the simple message."
   *        }];
   *  }
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.JSONSchema} */ public static final class JSONSchema extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.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() { ref_ = ""; title_ = ""; description_ = ""; default_ = ""; example_ = ""; pattern_ = ""; required_ = com.google.protobuf.LazyStringArrayList.EMPTY; array_ = com.google.protobuf.LazyStringArrayList.EMPTY; type_ = java.util.Collections.emptyList(); format_ = ""; enum_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new JSONSchema(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 48: return internalGetExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.Builder.class); } /** * Protobuf enum {@code grpc.gateway.protoc_gen_openapiv2.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; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static JSONSchemaSimpleTypes valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire 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() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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_openapiv2.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_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes) } public interface FieldConfigurationOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) com.google.protobuf.MessageOrBuilder { /** *
       * Alternative parameter name when used as path parameter. If set, this will
       * be used as the complete parameter name when this field is used as a path
       * parameter. Use this to avoid having auto generated path parameter names
       * for overlapping paths.
       * 
* * string path_param_name = 47; * @return The pathParamName. */ java.lang.String getPathParamName(); /** *
       * Alternative parameter name when used as path parameter. If set, this will
       * be used as the complete parameter name when this field is used as a path
       * parameter. Use this to avoid having auto generated path parameter names
       * for overlapping paths.
       * 
* * string path_param_name = 47; * @return The bytes for pathParamName. */ com.google.protobuf.ByteString getPathParamNameBytes(); } /** *
     * 'FieldConfiguration' provides additional field level properties used when generating the OpenAPI v2 file.
     * These properties are not defined by OpenAPIv2, but they are used to control the generation.
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration} */ public static final class FieldConfiguration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) FieldConfigurationOrBuilder { private static final long serialVersionUID = 0L; // Use FieldConfiguration.newBuilder() to construct. private FieldConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FieldConfiguration() { pathParamName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FieldConfiguration(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_FieldConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_FieldConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.Builder.class); } public static final int PATH_PARAM_NAME_FIELD_NUMBER = 47; @SuppressWarnings("serial") private volatile java.lang.Object pathParamName_ = ""; /** *
       * Alternative parameter name when used as path parameter. If set, this will
       * be used as the complete parameter name when this field is used as a path
       * parameter. Use this to avoid having auto generated path parameter names
       * for overlapping paths.
       * 
* * string path_param_name = 47; * @return The pathParamName. */ @java.lang.Override public java.lang.String getPathParamName() { java.lang.Object ref = pathParamName_; 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(); pathParamName_ = s; return s; } } /** *
       * Alternative parameter name when used as path parameter. If set, this will
       * be used as the complete parameter name when this field is used as a path
       * parameter. Use this to avoid having auto generated path parameter names
       * for overlapping paths.
       * 
* * string path_param_name = 47; * @return The bytes for pathParamName. */ @java.lang.Override public com.google.protobuf.ByteString getPathParamNameBytes() { java.lang.Object ref = pathParamName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pathParamName_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pathParamName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 47, pathParamName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pathParamName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(47, pathParamName_); } size += getUnknownFields().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_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration other = (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration) obj; if (!getPathParamName() .equals(other.getPathParamName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PATH_PARAM_NAME_FIELD_NUMBER; hash = (53 * hash) + getPathParamName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration 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_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration 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_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration 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_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration 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_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration 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_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration 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; } /** *
       * 'FieldConfiguration' provides additional field level properties used when generating the OpenAPI v2 file.
       * These properties are not defined by OpenAPIv2, but they are used to control the generation.
       * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_FieldConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_FieldConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; pathParamName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_FieldConfiguration_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.pathParamName_ = pathParamName_; } } @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_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.getDefaultInstance()) return this; if (!other.getPathParamName().isEmpty()) { pathParamName_ = other.pathParamName_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 378: { pathParamName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 378 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object pathParamName_ = ""; /** *
         * Alternative parameter name when used as path parameter. If set, this will
         * be used as the complete parameter name when this field is used as a path
         * parameter. Use this to avoid having auto generated path parameter names
         * for overlapping paths.
         * 
* * string path_param_name = 47; * @return The pathParamName. */ public java.lang.String getPathParamName() { java.lang.Object ref = pathParamName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pathParamName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Alternative parameter name when used as path parameter. If set, this will
         * be used as the complete parameter name when this field is used as a path
         * parameter. Use this to avoid having auto generated path parameter names
         * for overlapping paths.
         * 
* * string path_param_name = 47; * @return The bytes for pathParamName. */ public com.google.protobuf.ByteString getPathParamNameBytes() { java.lang.Object ref = pathParamName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pathParamName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Alternative parameter name when used as path parameter. If set, this will
         * be used as the complete parameter name when this field is used as a path
         * parameter. Use this to avoid having auto generated path parameter names
         * for overlapping paths.
         * 
* * string path_param_name = 47; * @param value The pathParamName to set. * @return This builder for chaining. */ public Builder setPathParamName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pathParamName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Alternative parameter name when used as path parameter. If set, this will
         * be used as the complete parameter name when this field is used as a path
         * parameter. Use this to avoid having auto generated path parameter names
         * for overlapping paths.
         * 
* * string path_param_name = 47; * @return This builder for chaining. */ public Builder clearPathParamName() { pathParamName_ = getDefaultInstance().getPathParamName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * Alternative parameter name when used as path parameter. If set, this will
         * be used as the complete parameter name when this field is used as a path
         * parameter. Use this to avoid having auto generated path parameter names
         * for overlapping paths.
         * 
* * string path_param_name = 47; * @param value The bytes for pathParamName to set. * @return This builder for chaining. */ public Builder setPathParamNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pathParamName_ = value; bitField0_ |= 0x00000001; 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_openapiv2.options.JSONSchema.FieldConfiguration) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration(); } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FieldConfiguration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int REF_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object ref_ = ""; /** *
     * Ref is used to define an external reference to include in the message.
     * This could be a fully qualified proto message reference, and that type must
     * be imported into the protofile. If no message is identified, the Ref will
     * be used verbatim in the output.
     * For example:
     *  `ref: ".google.protobuf.Timestamp"`.
     * 
* * string ref = 3; * @return The ref. */ @java.lang.Override public java.lang.String getRef() { java.lang.Object ref = ref_; 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(); ref_ = s; return s; } } /** *
     * Ref is used to define an external reference to include in the message.
     * This could be a fully qualified proto message reference, and that type must
     * be imported into the protofile. If no message is identified, the Ref will
     * be used verbatim in the output.
     * For example:
     *  `ref: ".google.protobuf.Timestamp"`.
     * 
* * string ref = 3; * @return The bytes for ref. */ @java.lang.Override public com.google.protobuf.ByteString getRefBytes() { java.lang.Object ref = ref_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ref_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TITLE_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object title_ = ""; /** *
     * The title of the schema.
     * 
* * string title = 5; * @return The title. */ @java.lang.Override 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; } } /** *
     * The title of the schema.
     * 
* * string title = 5; * @return The bytes for title. */ @java.lang.Override 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; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
     * A short description of the schema.
     * 
* * string description = 6; * @return The description. */ @java.lang.Override 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 of the schema.
     * 
* * string description = 6; * @return The bytes for description. */ @java.lang.Override 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; @SuppressWarnings("serial") private volatile java.lang.Object default_ = ""; /** * string default = 7; * @return The default. */ @java.lang.Override 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; * @return The bytes for default. */ @java.lang.Override 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 READ_ONLY_FIELD_NUMBER = 8; private boolean readOnly_ = false; /** * bool read_only = 8; * @return The readOnly. */ @java.lang.Override public boolean getReadOnly() { return readOnly_; } public static final int EXAMPLE_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object example_ = ""; /** *
     * A free-form property to include a JSON example of this field. This is copied
     * verbatim to the output swagger.json. Quotes must be escaped.
     * This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject  https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
     * 
* * string example = 9; * @return The example. */ @java.lang.Override public java.lang.String getExample() { java.lang.Object ref = example_; 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(); example_ = s; return s; } } /** *
     * A free-form property to include a JSON example of this field. This is copied
     * verbatim to the output swagger.json. Quotes must be escaped.
     * This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject  https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
     * 
* * string example = 9; * @return The bytes for example. */ @java.lang.Override public com.google.protobuf.ByteString getExampleBytes() { java.lang.Object ref = example_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); example_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MULTIPLE_OF_FIELD_NUMBER = 10; private double multipleOf_ = 0D; /** * double multiple_of = 10; * @return The multipleOf. */ @java.lang.Override public double getMultipleOf() { return multipleOf_; } public static final int MAXIMUM_FIELD_NUMBER = 11; private double maximum_ = 0D; /** *
     * Maximum represents an inclusive upper limit for a numeric instance. The
     * value of MUST be a number,
     * 
* * double maximum = 11; * @return The maximum. */ @java.lang.Override public double getMaximum() { return maximum_; } public static final int EXCLUSIVE_MAXIMUM_FIELD_NUMBER = 12; private boolean exclusiveMaximum_ = false; /** * bool exclusive_maximum = 12; * @return The exclusiveMaximum. */ @java.lang.Override public boolean getExclusiveMaximum() { return exclusiveMaximum_; } public static final int MINIMUM_FIELD_NUMBER = 13; private double minimum_ = 0D; /** *
     * minimum represents an inclusive lower limit for a numeric instance. The
     * value of MUST be a number,
     * 
* * double minimum = 13; * @return The minimum. */ @java.lang.Override public double getMinimum() { return minimum_; } public static final int EXCLUSIVE_MINIMUM_FIELD_NUMBER = 14; private boolean exclusiveMinimum_ = false; /** * bool exclusive_minimum = 14; * @return The exclusiveMinimum. */ @java.lang.Override public boolean getExclusiveMinimum() { return exclusiveMinimum_; } public static final int MAX_LENGTH_FIELD_NUMBER = 15; private long maxLength_ = 0L; /** * uint64 max_length = 15; * @return The maxLength. */ @java.lang.Override public long getMaxLength() { return maxLength_; } public static final int MIN_LENGTH_FIELD_NUMBER = 16; private long minLength_ = 0L; /** * uint64 min_length = 16; * @return The minLength. */ @java.lang.Override public long getMinLength() { return minLength_; } public static final int PATTERN_FIELD_NUMBER = 17; @SuppressWarnings("serial") private volatile java.lang.Object pattern_ = ""; /** * string pattern = 17; * @return The pattern. */ @java.lang.Override 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; * @return The bytes for pattern. */ @java.lang.Override 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_ = 0L; /** * uint64 max_items = 20; * @return The maxItems. */ @java.lang.Override public long getMaxItems() { return maxItems_; } public static final int MIN_ITEMS_FIELD_NUMBER = 21; private long minItems_ = 0L; /** * uint64 min_items = 21; * @return The minItems. */ @java.lang.Override public long getMinItems() { return minItems_; } public static final int UNIQUE_ITEMS_FIELD_NUMBER = 22; private boolean uniqueItems_ = false; /** * bool unique_items = 22; * @return The uniqueItems. */ @java.lang.Override public boolean getUniqueItems() { return uniqueItems_; } public static final int MAX_PROPERTIES_FIELD_NUMBER = 24; private long maxProperties_ = 0L; /** * uint64 max_properties = 24; * @return The maxProperties. */ @java.lang.Override public long getMaxProperties() { return maxProperties_; } public static final int MIN_PROPERTIES_FIELD_NUMBER = 25; private long minProperties_ = 0L; /** * uint64 min_properties = 25; * @return The minProperties. */ @java.lang.Override public long getMinProperties() { return minProperties_; } public static final int REQUIRED_FIELD_NUMBER = 26; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList required_; /** * repeated string required = 26; * @return A list containing the required. */ public com.google.protobuf.ProtocolStringList getRequiredList() { return required_; } /** * repeated string required = 26; * @return The count of required. */ public int getRequiredCount() { return required_.size(); } /** * repeated string required = 26; * @param index The index of the element to return. * @return The required at the given index. */ public java.lang.String getRequired(int index) { return required_.get(index); } /** * repeated string required = 26; * @param index The index of the value to return. * @return The bytes of the required at the given index. */ public com.google.protobuf.ByteString getRequiredBytes(int index) { return required_.getByteString(index); } public static final int ARRAY_FIELD_NUMBER = 34; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList array_; /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; * @return A list containing the array. */ public com.google.protobuf.ProtocolStringList getArrayList() { return array_; } /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; * @return The count of array. */ public int getArrayCount() { return array_.size(); } /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; * @param index The index of the element to return. * @return The array at the given index. */ public java.lang.String getArray(int index) { return array_.get(index); } /** *
     * Items in 'array' must be unique.
     * 
* * repeated string array = 34; * @param index The index of the value to return. * @return The bytes of the array at the given index. */ public com.google.protobuf.ByteString getArrayBytes(int index) { return array_.getByteString(index); } public static final int TYPE_FIELD_NUMBER = 35; @SuppressWarnings("serial") private java.util.List type_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes> type_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes>() { public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes convert(java.lang.Integer from) { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes result = grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes.forNumber(from); return result == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes.UNRECOGNIZED : result; } }; /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @return A list containing the type. */ @java.lang.Override public java.util.List getTypeList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes>(type_, type_converter_); } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @return The count of type. */ @java.lang.Override public int getTypeCount() { return type_.size(); } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @param index The index of the element to return. * @return The type at the given index. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes getType(int index) { return type_converter_.convert(type_.get(index)); } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @return A list containing the enum numeric values on the wire for type. */ @java.lang.Override public java.util.List getTypeValueList() { return type_; } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @param index The index of the value to return. * @return The enum numeric value on the wire of type at the given index. */ @java.lang.Override public int getTypeValue(int index) { return type_.get(index); } private int typeMemoizedSerializedSize; public static final int FORMAT_FIELD_NUMBER = 36; @SuppressWarnings("serial") private volatile java.lang.Object format_ = ""; /** *
     * `Format`
     * 
* * string format = 36; * @return The format. */ @java.lang.Override public java.lang.String getFormat() { java.lang.Object ref = format_; 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(); format_ = s; return s; } } /** *
     * `Format`
     * 
* * string format = 36; * @return The bytes for format. */ @java.lang.Override public com.google.protobuf.ByteString getFormatBytes() { java.lang.Object ref = format_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); format_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENUM_FIELD_NUMBER = 46; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList enum_; /** *
     * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
     * 
* * repeated string enum = 46; * @return A list containing the enum. */ public com.google.protobuf.ProtocolStringList getEnumList() { return enum_; } /** *
     * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
     * 
* * repeated string enum = 46; * @return The count of enum. */ public int getEnumCount() { return enum_.size(); } /** *
     * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
     * 
* * repeated string enum = 46; * @param index The index of the element to return. * @return The enum at the given index. */ public java.lang.String getEnum(int index) { return enum_.get(index); } /** *
     * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
     * 
* * repeated string enum = 46; * @param index The index of the value to return. * @return The bytes of the enum at the given index. */ public com.google.protobuf.ByteString getEnumBytes(int index) { return enum_.getByteString(index); } public static final int FIELD_CONFIGURATION_FIELD_NUMBER = 1001; private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration fieldConfiguration_; /** *
     * Additional field level properties used when generating the OpenAPI v2 file.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; * @return Whether the fieldConfiguration field is set. */ @java.lang.Override public boolean hasFieldConfiguration() { return fieldConfiguration_ != null; } /** *
     * Additional field level properties used when generating the OpenAPI v2 file.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; * @return The fieldConfiguration. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration getFieldConfiguration() { return fieldConfiguration_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.getDefaultInstance() : fieldConfiguration_; } /** *
     * Additional field level properties used when generating the OpenAPI v2 file.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfigurationOrBuilder getFieldConfigurationOrBuilder() { return fieldConfiguration_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.getDefaultInstance() : fieldConfiguration_; } public static final int EXTENSIONS_FIELD_NUMBER = 48; private static final class ExtensionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_ExtensionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.protobuf.Value.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Value> extensions_; private com.google.protobuf.MapField internalGetExtensions() { if (extensions_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtensionsDefaultEntryHolder.defaultEntry); } return extensions_; } public int getExtensionsCount() { return internalGetExtensions().getMap().size(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 48; */ @java.lang.Override public boolean containsExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtensions().getMap().containsKey(key); } /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtensions() { return getExtensionsMap(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 48; */ @java.lang.Override public java.util.Map getExtensionsMap() { return internalGetExtensions().getMap(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 48; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 48; */ @java.lang.Override public com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ref_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ref_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, title_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(default_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, default_); } if (readOnly_ != false) { output.writeBool(8, readOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(example_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, example_); } if (java.lang.Double.doubleToRawLongBits(multipleOf_) != 0) { output.writeDouble(10, multipleOf_); } if (java.lang.Double.doubleToRawLongBits(maximum_) != 0) { output.writeDouble(11, maximum_); } if (exclusiveMaximum_ != false) { output.writeBool(12, exclusiveMaximum_); } if (java.lang.Double.doubleToRawLongBits(minimum_) != 0) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pattern_)) { 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)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(format_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 36, format_); } for (int i = 0; i < enum_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 46, enum_.getRaw(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetExtensions(), ExtensionsDefaultEntryHolder.defaultEntry, 48); if (fieldConfiguration_ != null) { output.writeMessage(1001, getFieldConfiguration()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ref_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ref_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, title_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(default_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, default_); } if (readOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, readOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(example_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, example_); } if (java.lang.Double.doubleToRawLongBits(multipleOf_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(10, multipleOf_); } if (java.lang.Double.doubleToRawLongBits(maximum_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(11, maximum_); } if (exclusiveMaximum_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, exclusiveMaximum_); } if (java.lang.Double.doubleToRawLongBits(minimum_) != 0) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pattern_)) { 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; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(format_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, format_); } { int dataSize = 0; for (int i = 0; i < enum_.size(); i++) { dataSize += computeStringSizeNoTag(enum_.getRaw(i)); } size += dataSize; size += 2 * getEnumList().size(); } for (java.util.Map.Entry entry : internalGetExtensions().getMap().entrySet()) { com.google.protobuf.MapEntry extensions__ = ExtensionsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(48, extensions__); } if (fieldConfiguration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1001, getFieldConfiguration()); } size += getUnknownFields().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_openapiv2.options.Openapiv2.JSONSchema)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema other = (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema) obj; if (!getRef() .equals(other.getRef())) return false; if (!getTitle() .equals(other.getTitle())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getDefault() .equals(other.getDefault())) return false; if (getReadOnly() != other.getReadOnly()) return false; if (!getExample() .equals(other.getExample())) 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 (!getFormat() .equals(other.getFormat())) return false; if (!getEnumList() .equals(other.getEnumList())) return false; if (hasFieldConfiguration() != other.hasFieldConfiguration()) return false; if (hasFieldConfiguration()) { if (!getFieldConfiguration() .equals(other.getFieldConfiguration())) return false; } if (!internalGetExtensions().equals( other.internalGetExtensions())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REF_FIELD_NUMBER; hash = (53 * hash) + getRef().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) + READ_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReadOnly()); hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; hash = (53 * hash) + getExample().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 = (37 * hash) + FORMAT_FIELD_NUMBER; hash = (53 * hash) + getFormat().hashCode(); if (getEnumCount() > 0) { hash = (37 * hash) + ENUM_FIELD_NUMBER; hash = (53 * hash) + getEnumList().hashCode(); } if (hasFieldConfiguration()) { hash = (37 * hash) + FIELD_CONFIGURATION_FIELD_NUMBER; hash = (53 * hash) + getFieldConfiguration().hashCode(); } if (!internalGetExtensions().getMap().isEmpty()) { hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetExtensions().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.JSONSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.JSONSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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
     * Example:
     *  message SimpleMessage {
     *    option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
     *      json_schema: {
     *        title: "SimpleMessage"
     *        description: "A simple message."
     *        required: ["id"]
     *      }
     *    };
     *    // Id represents the message identifier.
     *    string id = 1; [
     *        (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
     *          description: "The unique identifier of the simple message."
     *        }];
     *  }
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.JSONSchema} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchemaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 48: return internalGetExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 48: return internalGetMutableExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ref_ = ""; title_ = ""; description_ = ""; default_ = ""; readOnly_ = false; example_ = ""; 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_ & ~0x00080000); array_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00100000); type_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00200000); format_ = ""; enum_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00800000); fieldConfiguration_ = null; if (fieldConfigurationBuilder_ != null) { fieldConfigurationBuilder_.dispose(); fieldConfigurationBuilder_ = null; } internalGetMutableExtensions().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema result) { if (((bitField0_ & 0x00080000) != 0)) { required_ = required_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00080000); } result.required_ = required_; if (((bitField0_ & 0x00100000) != 0)) { array_ = array_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00100000); } result.array_ = array_; if (((bitField0_ & 0x00200000) != 0)) { type_ = java.util.Collections.unmodifiableList(type_); bitField0_ = (bitField0_ & ~0x00200000); } result.type_ = type_; if (((bitField0_ & 0x00800000) != 0)) { enum_ = enum_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00800000); } result.enum_ = enum_; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ref_ = ref_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.title_ = title_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.default_ = default_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.readOnly_ = readOnly_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.example_ = example_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.multipleOf_ = multipleOf_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.maximum_ = maximum_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.exclusiveMaximum_ = exclusiveMaximum_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.minimum_ = minimum_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.exclusiveMinimum_ = exclusiveMinimum_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.maxLength_ = maxLength_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.minLength_ = minLength_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.pattern_ = pattern_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.maxItems_ = maxItems_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.minItems_ = minItems_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.uniqueItems_ = uniqueItems_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.maxProperties_ = maxProperties_; } if (((from_bitField0_ & 0x00040000) != 0)) { result.minProperties_ = minProperties_; } if (((from_bitField0_ & 0x00400000) != 0)) { result.format_ = format_; } if (((from_bitField0_ & 0x01000000) != 0)) { result.fieldConfiguration_ = fieldConfigurationBuilder_ == null ? fieldConfiguration_ : fieldConfigurationBuilder_.build(); } if (((from_bitField0_ & 0x02000000) != 0)) { result.extensions_ = internalGetExtensions(); result.extensions_.makeImmutable(); } } @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_openapiv2.options.Openapiv2.JSONSchema) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.getDefaultInstance()) return this; if (!other.getRef().isEmpty()) { ref_ = other.ref_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getTitle().isEmpty()) { title_ = other.title_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getDefault().isEmpty()) { default_ = other.default_; bitField0_ |= 0x00000008; onChanged(); } if (other.getReadOnly() != false) { setReadOnly(other.getReadOnly()); } if (!other.getExample().isEmpty()) { example_ = other.example_; bitField0_ |= 0x00000020; 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_; bitField0_ |= 0x00002000; 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_ & ~0x00080000); } else { ensureRequiredIsMutable(); required_.addAll(other.required_); } onChanged(); } if (!other.array_.isEmpty()) { if (array_.isEmpty()) { array_ = other.array_; bitField0_ = (bitField0_ & ~0x00100000); } else { ensureArrayIsMutable(); array_.addAll(other.array_); } onChanged(); } if (!other.type_.isEmpty()) { if (type_.isEmpty()) { type_ = other.type_; bitField0_ = (bitField0_ & ~0x00200000); } else { ensureTypeIsMutable(); type_.addAll(other.type_); } onChanged(); } if (!other.getFormat().isEmpty()) { format_ = other.format_; bitField0_ |= 0x00400000; onChanged(); } if (!other.enum_.isEmpty()) { if (enum_.isEmpty()) { enum_ = other.enum_; bitField0_ = (bitField0_ & ~0x00800000); } else { ensureEnumIsMutable(); enum_.addAll(other.enum_); } onChanged(); } if (other.hasFieldConfiguration()) { mergeFieldConfiguration(other.getFieldConfiguration()); } internalGetMutableExtensions().mergeFrom( other.internalGetExtensions()); bitField0_ |= 0x02000000; this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 26: { ref_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 26 case 42: { title_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 42 case 50: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 50 case 58: { default_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 58 case 64: { readOnly_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 64 case 74: { example_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 74 case 81: { multipleOf_ = input.readDouble(); bitField0_ |= 0x00000040; break; } // case 81 case 89: { maximum_ = input.readDouble(); bitField0_ |= 0x00000080; break; } // case 89 case 96: { exclusiveMaximum_ = input.readBool(); bitField0_ |= 0x00000100; break; } // case 96 case 105: { minimum_ = input.readDouble(); bitField0_ |= 0x00000200; break; } // case 105 case 112: { exclusiveMinimum_ = input.readBool(); bitField0_ |= 0x00000400; break; } // case 112 case 120: { maxLength_ = input.readUInt64(); bitField0_ |= 0x00000800; break; } // case 120 case 128: { minLength_ = input.readUInt64(); bitField0_ |= 0x00001000; break; } // case 128 case 138: { pattern_ = input.readStringRequireUtf8(); bitField0_ |= 0x00002000; break; } // case 138 case 160: { maxItems_ = input.readUInt64(); bitField0_ |= 0x00004000; break; } // case 160 case 168: { minItems_ = input.readUInt64(); bitField0_ |= 0x00008000; break; } // case 168 case 176: { uniqueItems_ = input.readBool(); bitField0_ |= 0x00010000; break; } // case 176 case 192: { maxProperties_ = input.readUInt64(); bitField0_ |= 0x00020000; break; } // case 192 case 200: { minProperties_ = input.readUInt64(); bitField0_ |= 0x00040000; break; } // case 200 case 210: { java.lang.String s = input.readStringRequireUtf8(); ensureRequiredIsMutable(); required_.add(s); break; } // case 210 case 274: { java.lang.String s = input.readStringRequireUtf8(); ensureArrayIsMutable(); array_.add(s); break; } // case 274 case 280: { int tmpRaw = input.readEnum(); ensureTypeIsMutable(); type_.add(tmpRaw); break; } // case 280 case 282: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureTypeIsMutable(); type_.add(tmpRaw); } input.popLimit(oldLimit); break; } // case 282 case 290: { format_ = input.readStringRequireUtf8(); bitField0_ |= 0x00400000; break; } // case 290 case 370: { java.lang.String s = input.readStringRequireUtf8(); ensureEnumIsMutable(); enum_.add(s); break; } // case 370 case 386: { com.google.protobuf.MapEntry extensions__ = input.readMessage( ExtensionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableExtensions().getMutableMap().put( extensions__.getKey(), extensions__.getValue()); bitField0_ |= 0x02000000; break; } // case 386 case 8010: { input.readMessage( getFieldConfigurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x01000000; break; } // case 8010 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object ref_ = ""; /** *
       * Ref is used to define an external reference to include in the message.
       * This could be a fully qualified proto message reference, and that type must
       * be imported into the protofile. If no message is identified, the Ref will
       * be used verbatim in the output.
       * For example:
       *  `ref: ".google.protobuf.Timestamp"`.
       * 
* * string ref = 3; * @return The ref. */ public java.lang.String getRef() { java.lang.Object ref = ref_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ref_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Ref is used to define an external reference to include in the message.
       * This could be a fully qualified proto message reference, and that type must
       * be imported into the protofile. If no message is identified, the Ref will
       * be used verbatim in the output.
       * For example:
       *  `ref: ".google.protobuf.Timestamp"`.
       * 
* * string ref = 3; * @return The bytes for ref. */ public com.google.protobuf.ByteString getRefBytes() { java.lang.Object ref = ref_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ref_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Ref is used to define an external reference to include in the message.
       * This could be a fully qualified proto message reference, and that type must
       * be imported into the protofile. If no message is identified, the Ref will
       * be used verbatim in the output.
       * For example:
       *  `ref: ".google.protobuf.Timestamp"`.
       * 
* * string ref = 3; * @param value The ref to set. * @return This builder for chaining. */ public Builder setRef( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ref_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Ref is used to define an external reference to include in the message.
       * This could be a fully qualified proto message reference, and that type must
       * be imported into the protofile. If no message is identified, the Ref will
       * be used verbatim in the output.
       * For example:
       *  `ref: ".google.protobuf.Timestamp"`.
       * 
* * string ref = 3; * @return This builder for chaining. */ public Builder clearRef() { ref_ = getDefaultInstance().getRef(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Ref is used to define an external reference to include in the message.
       * This could be a fully qualified proto message reference, and that type must
       * be imported into the protofile. If no message is identified, the Ref will
       * be used verbatim in the output.
       * For example:
       *  `ref: ".google.protobuf.Timestamp"`.
       * 
* * string ref = 3; * @param value The bytes for ref to set. * @return This builder for chaining. */ public Builder setRefBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ref_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object title_ = ""; /** *
       * The title of the schema.
       * 
* * string title = 5; * @return The title. */ 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; } } /** *
       * The title of the schema.
       * 
* * string title = 5; * @return The bytes for title. */ 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; } } /** *
       * The title of the schema.
       * 
* * string title = 5; * @param value The title to set. * @return This builder for chaining. */ public Builder setTitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } title_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The title of the schema.
       * 
* * string title = 5; * @return This builder for chaining. */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The title of the schema.
       * 
* * string title = 5; * @param value The bytes for title to set. * @return This builder for chaining. */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * A short description of the schema.
       * 
* * string description = 6; * @return The description. */ 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 of the schema.
       * 
* * string description = 6; * @return The bytes for description. */ 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 of the schema.
       * 
* * string description = 6; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * A short description of the schema.
       * 
* * string description = 6; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * A short description of the schema.
       * 
* * string description = 6; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object default_ = ""; /** * string default = 7; * @return The default. */ 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; * @return The bytes for default. */ 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; * @param value The default to set. * @return This builder for chaining. */ public Builder setDefault( java.lang.String value) { if (value == null) { throw new NullPointerException(); } default_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string default = 7; * @return This builder for chaining. */ public Builder clearDefault() { default_ = getDefaultInstance().getDefault(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string default = 7; * @param value The bytes for default to set. * @return This builder for chaining. */ public Builder setDefaultBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); default_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private boolean readOnly_ ; /** * bool read_only = 8; * @return The readOnly. */ @java.lang.Override public boolean getReadOnly() { return readOnly_; } /** * bool read_only = 8; * @param value The readOnly to set. * @return This builder for chaining. */ public Builder setReadOnly(boolean value) { readOnly_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * bool read_only = 8; * @return This builder for chaining. */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000010); readOnly_ = false; onChanged(); return this; } private java.lang.Object example_ = ""; /** *
       * A free-form property to include a JSON example of this field. This is copied
       * verbatim to the output swagger.json. Quotes must be escaped.
       * This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject  https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
       * 
* * string example = 9; * @return The example. */ public java.lang.String getExample() { java.lang.Object ref = example_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); example_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A free-form property to include a JSON example of this field. This is copied
       * verbatim to the output swagger.json. Quotes must be escaped.
       * This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject  https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
       * 
* * string example = 9; * @return The bytes for example. */ public com.google.protobuf.ByteString getExampleBytes() { java.lang.Object ref = example_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); example_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A free-form property to include a JSON example of this field. This is copied
       * verbatim to the output swagger.json. Quotes must be escaped.
       * This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject  https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
       * 
* * string example = 9; * @param value The example to set. * @return This builder for chaining. */ public Builder setExample( java.lang.String value) { if (value == null) { throw new NullPointerException(); } example_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * A free-form property to include a JSON example of this field. This is copied
       * verbatim to the output swagger.json. Quotes must be escaped.
       * This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject  https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
       * 
* * string example = 9; * @return This builder for chaining. */ public Builder clearExample() { example_ = getDefaultInstance().getExample(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
       * A free-form property to include a JSON example of this field. This is copied
       * verbatim to the output swagger.json. Quotes must be escaped.
       * This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject  https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
       * 
* * string example = 9; * @param value The bytes for example to set. * @return This builder for chaining. */ public Builder setExampleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); example_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private double multipleOf_ ; /** * double multiple_of = 10; * @return The multipleOf. */ @java.lang.Override public double getMultipleOf() { return multipleOf_; } /** * double multiple_of = 10; * @param value The multipleOf to set. * @return This builder for chaining. */ public Builder setMultipleOf(double value) { multipleOf_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * double multiple_of = 10; * @return This builder for chaining. */ public Builder clearMultipleOf() { bitField0_ = (bitField0_ & ~0x00000040); multipleOf_ = 0D; onChanged(); return this; } private double maximum_ ; /** *
       * Maximum represents an inclusive upper limit for a numeric instance. The
       * value of MUST be a number,
       * 
* * double maximum = 11; * @return The maximum. */ @java.lang.Override public double getMaximum() { return maximum_; } /** *
       * Maximum represents an inclusive upper limit for a numeric instance. The
       * value of MUST be a number,
       * 
* * double maximum = 11; * @param value The maximum to set. * @return This builder for chaining. */ public Builder setMaximum(double value) { maximum_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * Maximum represents an inclusive upper limit for a numeric instance. The
       * value of MUST be a number,
       * 
* * double maximum = 11; * @return This builder for chaining. */ public Builder clearMaximum() { bitField0_ = (bitField0_ & ~0x00000080); maximum_ = 0D; onChanged(); return this; } private boolean exclusiveMaximum_ ; /** * bool exclusive_maximum = 12; * @return The exclusiveMaximum. */ @java.lang.Override public boolean getExclusiveMaximum() { return exclusiveMaximum_; } /** * bool exclusive_maximum = 12; * @param value The exclusiveMaximum to set. * @return This builder for chaining. */ public Builder setExclusiveMaximum(boolean value) { exclusiveMaximum_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * bool exclusive_maximum = 12; * @return This builder for chaining. */ public Builder clearExclusiveMaximum() { bitField0_ = (bitField0_ & ~0x00000100); exclusiveMaximum_ = false; onChanged(); return this; } private double minimum_ ; /** *
       * minimum represents an inclusive lower limit for a numeric instance. The
       * value of MUST be a number,
       * 
* * double minimum = 13; * @return The minimum. */ @java.lang.Override public double getMinimum() { return minimum_; } /** *
       * minimum represents an inclusive lower limit for a numeric instance. The
       * value of MUST be a number,
       * 
* * double minimum = 13; * @param value The minimum to set. * @return This builder for chaining. */ public Builder setMinimum(double value) { minimum_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
       * minimum represents an inclusive lower limit for a numeric instance. The
       * value of MUST be a number,
       * 
* * double minimum = 13; * @return This builder for chaining. */ public Builder clearMinimum() { bitField0_ = (bitField0_ & ~0x00000200); minimum_ = 0D; onChanged(); return this; } private boolean exclusiveMinimum_ ; /** * bool exclusive_minimum = 14; * @return The exclusiveMinimum. */ @java.lang.Override public boolean getExclusiveMinimum() { return exclusiveMinimum_; } /** * bool exclusive_minimum = 14; * @param value The exclusiveMinimum to set. * @return This builder for chaining. */ public Builder setExclusiveMinimum(boolean value) { exclusiveMinimum_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * bool exclusive_minimum = 14; * @return This builder for chaining. */ public Builder clearExclusiveMinimum() { bitField0_ = (bitField0_ & ~0x00000400); exclusiveMinimum_ = false; onChanged(); return this; } private long maxLength_ ; /** * uint64 max_length = 15; * @return The maxLength. */ @java.lang.Override public long getMaxLength() { return maxLength_; } /** * uint64 max_length = 15; * @param value The maxLength to set. * @return This builder for chaining. */ public Builder setMaxLength(long value) { maxLength_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * uint64 max_length = 15; * @return This builder for chaining. */ public Builder clearMaxLength() { bitField0_ = (bitField0_ & ~0x00000800); maxLength_ = 0L; onChanged(); return this; } private long minLength_ ; /** * uint64 min_length = 16; * @return The minLength. */ @java.lang.Override public long getMinLength() { return minLength_; } /** * uint64 min_length = 16; * @param value The minLength to set. * @return This builder for chaining. */ public Builder setMinLength(long value) { minLength_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * uint64 min_length = 16; * @return This builder for chaining. */ public Builder clearMinLength() { bitField0_ = (bitField0_ & ~0x00001000); minLength_ = 0L; onChanged(); return this; } private java.lang.Object pattern_ = ""; /** * string pattern = 17; * @return The pattern. */ 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; * @return The bytes for pattern. */ 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; * @param value The pattern to set. * @return This builder for chaining. */ public Builder setPattern( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pattern_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** * string pattern = 17; * @return This builder for chaining. */ public Builder clearPattern() { pattern_ = getDefaultInstance().getPattern(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } /** * string pattern = 17; * @param value The bytes for pattern to set. * @return This builder for chaining. */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pattern_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } private long maxItems_ ; /** * uint64 max_items = 20; * @return The maxItems. */ @java.lang.Override public long getMaxItems() { return maxItems_; } /** * uint64 max_items = 20; * @param value The maxItems to set. * @return This builder for chaining. */ public Builder setMaxItems(long value) { maxItems_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** * uint64 max_items = 20; * @return This builder for chaining. */ public Builder clearMaxItems() { bitField0_ = (bitField0_ & ~0x00004000); maxItems_ = 0L; onChanged(); return this; } private long minItems_ ; /** * uint64 min_items = 21; * @return The minItems. */ @java.lang.Override public long getMinItems() { return minItems_; } /** * uint64 min_items = 21; * @param value The minItems to set. * @return This builder for chaining. */ public Builder setMinItems(long value) { minItems_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** * uint64 min_items = 21; * @return This builder for chaining. */ public Builder clearMinItems() { bitField0_ = (bitField0_ & ~0x00008000); minItems_ = 0L; onChanged(); return this; } private boolean uniqueItems_ ; /** * bool unique_items = 22; * @return The uniqueItems. */ @java.lang.Override public boolean getUniqueItems() { return uniqueItems_; } /** * bool unique_items = 22; * @param value The uniqueItems to set. * @return This builder for chaining. */ public Builder setUniqueItems(boolean value) { uniqueItems_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** * bool unique_items = 22; * @return This builder for chaining. */ public Builder clearUniqueItems() { bitField0_ = (bitField0_ & ~0x00010000); uniqueItems_ = false; onChanged(); return this; } private long maxProperties_ ; /** * uint64 max_properties = 24; * @return The maxProperties. */ @java.lang.Override public long getMaxProperties() { return maxProperties_; } /** * uint64 max_properties = 24; * @param value The maxProperties to set. * @return This builder for chaining. */ public Builder setMaxProperties(long value) { maxProperties_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** * uint64 max_properties = 24; * @return This builder for chaining. */ public Builder clearMaxProperties() { bitField0_ = (bitField0_ & ~0x00020000); maxProperties_ = 0L; onChanged(); return this; } private long minProperties_ ; /** * uint64 min_properties = 25; * @return The minProperties. */ @java.lang.Override public long getMinProperties() { return minProperties_; } /** * uint64 min_properties = 25; * @param value The minProperties to set. * @return This builder for chaining. */ public Builder setMinProperties(long value) { minProperties_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** * uint64 min_properties = 25; * @return This builder for chaining. */ public Builder clearMinProperties() { bitField0_ = (bitField0_ & ~0x00040000); minProperties_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringList required_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRequiredIsMutable() { if (!((bitField0_ & 0x00080000) != 0)) { required_ = new com.google.protobuf.LazyStringArrayList(required_); bitField0_ |= 0x00080000; } } /** * repeated string required = 26; * @return A list containing the required. */ public com.google.protobuf.ProtocolStringList getRequiredList() { return required_.getUnmodifiableView(); } /** * repeated string required = 26; * @return The count of required. */ public int getRequiredCount() { return required_.size(); } /** * repeated string required = 26; * @param index The index of the element to return. * @return The required at the given index. */ public java.lang.String getRequired(int index) { return required_.get(index); } /** * repeated string required = 26; * @param index The index of the value to return. * @return The bytes of the required at the given index. */ public com.google.protobuf.ByteString getRequiredBytes(int index) { return required_.getByteString(index); } /** * repeated string required = 26; * @param index The index to set the value at. * @param value The required to set. * @return This builder for chaining. */ 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; * @param value The required to add. * @return This builder for chaining. */ public Builder addRequired( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRequiredIsMutable(); required_.add(value); onChanged(); return this; } /** * repeated string required = 26; * @param values The required to add. * @return This builder for chaining. */ public Builder addAllRequired( java.lang.Iterable values) { ensureRequiredIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, required_); onChanged(); return this; } /** * repeated string required = 26; * @return This builder for chaining. */ public Builder clearRequired() { required_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } /** * repeated string required = 26; * @param value The bytes of the required to add. * @return This builder for chaining. */ 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_ & 0x00100000) != 0)) { array_ = new com.google.protobuf.LazyStringArrayList(array_); bitField0_ |= 0x00100000; } } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; * @return A list containing the array. */ public com.google.protobuf.ProtocolStringList getArrayList() { return array_.getUnmodifiableView(); } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; * @return The count of array. */ public int getArrayCount() { return array_.size(); } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; * @param index The index of the element to return. * @return The array at the given index. */ public java.lang.String getArray(int index) { return array_.get(index); } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; * @param index The index of the value to return. * @return The bytes of the array at the given index. */ public com.google.protobuf.ByteString getArrayBytes(int index) { return array_.getByteString(index); } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; * @param index The index to set the value at. * @param value The array to set. * @return This builder for chaining. */ 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; * @param value The array to add. * @return This builder for chaining. */ 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; * @param values The array to add. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearArray() { array_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } /** *
       * Items in 'array' must be unique.
       * 
* * repeated string array = 34; * @param value The bytes of the array to add. * @return This builder for chaining. */ 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_ & 0x00200000) != 0)) { type_ = new java.util.ArrayList(type_); bitField0_ |= 0x00200000; } } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @return A list containing the type. */ public java.util.List getTypeList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes>(type_, type_converter_); } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @return The count of type. */ public int getTypeCount() { return type_.size(); } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @param index The index of the element to return. * @return The type at the given index. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes getType(int index) { return type_converter_.convert(type_.get(index)); } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @param index The index to set the value at. * @param value The type to set. * @return This builder for chaining. */ public Builder setType( int index, grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @param value The type to add. * @return This builder for chaining. */ public Builder addType(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes value) { if (value == null) { throw new NullPointerException(); } ensureTypeIsMutable(); type_.add(value.getNumber()); onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @param values The type to add. * @return This builder for chaining. */ public Builder addAllType( java.lang.Iterable values) { ensureTypeIsMutable(); for (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes value : values) { type_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @return This builder for chaining. */ public Builder clearType() { type_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @return A list containing the enum numeric values on the wire for type. */ public java.util.List getTypeValueList() { return java.util.Collections.unmodifiableList(type_); } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @param index The index of the value to return. * @return The enum numeric value on the wire of type at the given index. */ public int getTypeValue(int index) { return type_.get(index); } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @param index The index to set the value at. * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue( int index, int value) { ensureTypeIsMutable(); type_.set(index, value); onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @param value The enum numeric value on the wire for type to add. * @return This builder for chaining. */ public Builder addTypeValue(int value) { ensureTypeIsMutable(); type_.add(value); onChanged(); return this; } /** * repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; * @param values The enum numeric values on the wire for type to add. * @return This builder for chaining. */ public Builder addAllTypeValue( java.lang.Iterable values) { ensureTypeIsMutable(); for (int value : values) { type_.add(value); } onChanged(); return this; } private java.lang.Object format_ = ""; /** *
       * `Format`
       * 
* * string format = 36; * @return The format. */ public java.lang.String getFormat() { java.lang.Object ref = format_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); format_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * `Format`
       * 
* * string format = 36; * @return The bytes for format. */ public com.google.protobuf.ByteString getFormatBytes() { java.lang.Object ref = format_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); format_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * `Format`
       * 
* * string format = 36; * @param value The format to set. * @return This builder for chaining. */ public Builder setFormat( java.lang.String value) { if (value == null) { throw new NullPointerException(); } format_ = value; bitField0_ |= 0x00400000; onChanged(); return this; } /** *
       * `Format`
       * 
* * string format = 36; * @return This builder for chaining. */ public Builder clearFormat() { format_ = getDefaultInstance().getFormat(); bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } /** *
       * `Format`
       * 
* * string format = 36; * @param value The bytes for format to set. * @return This builder for chaining. */ public Builder setFormatBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); format_ = value; bitField0_ |= 0x00400000; onChanged(); return this; } private com.google.protobuf.LazyStringList enum_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEnumIsMutable() { if (!((bitField0_ & 0x00800000) != 0)) { enum_ = new com.google.protobuf.LazyStringArrayList(enum_); bitField0_ |= 0x00800000; } } /** *
       * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
       * 
* * repeated string enum = 46; * @return A list containing the enum. */ public com.google.protobuf.ProtocolStringList getEnumList() { return enum_.getUnmodifiableView(); } /** *
       * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
       * 
* * repeated string enum = 46; * @return The count of enum. */ public int getEnumCount() { return enum_.size(); } /** *
       * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
       * 
* * repeated string enum = 46; * @param index The index of the element to return. * @return The enum at the given index. */ public java.lang.String getEnum(int index) { return enum_.get(index); } /** *
       * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
       * 
* * repeated string enum = 46; * @param index The index of the value to return. * @return The bytes of the enum at the given index. */ public com.google.protobuf.ByteString getEnumBytes(int index) { return enum_.getByteString(index); } /** *
       * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
       * 
* * repeated string enum = 46; * @param index The index to set the value at. * @param value The enum to set. * @return This builder for chaining. */ public Builder setEnum( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEnumIsMutable(); enum_.set(index, value); onChanged(); return this; } /** *
       * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
       * 
* * repeated string enum = 46; * @param value The enum to add. * @return This builder for chaining. */ public Builder addEnum( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEnumIsMutable(); enum_.add(value); onChanged(); return this; } /** *
       * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
       * 
* * repeated string enum = 46; * @param values The enum to add. * @return This builder for chaining. */ public Builder addAllEnum( java.lang.Iterable values) { ensureEnumIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, enum_); onChanged(); return this; } /** *
       * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
       * 
* * repeated string enum = 46; * @return This builder for chaining. */ public Builder clearEnum() { enum_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } /** *
       * Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
       * 
* * repeated string enum = 46; * @param value The bytes of the enum to add. * @return This builder for chaining. */ public Builder addEnumBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEnumIsMutable(); enum_.add(value); onChanged(); return this; } private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration fieldConfiguration_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfigurationOrBuilder> fieldConfigurationBuilder_; /** *
       * Additional field level properties used when generating the OpenAPI v2 file.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; * @return Whether the fieldConfiguration field is set. */ public boolean hasFieldConfiguration() { return ((bitField0_ & 0x01000000) != 0); } /** *
       * Additional field level properties used when generating the OpenAPI v2 file.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; * @return The fieldConfiguration. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration getFieldConfiguration() { if (fieldConfigurationBuilder_ == null) { return fieldConfiguration_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.getDefaultInstance() : fieldConfiguration_; } else { return fieldConfigurationBuilder_.getMessage(); } } /** *
       * Additional field level properties used when generating the OpenAPI v2 file.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; */ public Builder setFieldConfiguration(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration value) { if (fieldConfigurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fieldConfiguration_ = value; } else { fieldConfigurationBuilder_.setMessage(value); } bitField0_ |= 0x01000000; onChanged(); return this; } /** *
       * Additional field level properties used when generating the OpenAPI v2 file.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; */ public Builder setFieldConfiguration( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.Builder builderForValue) { if (fieldConfigurationBuilder_ == null) { fieldConfiguration_ = builderForValue.build(); } else { fieldConfigurationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x01000000; onChanged(); return this; } /** *
       * Additional field level properties used when generating the OpenAPI v2 file.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; */ public Builder mergeFieldConfiguration(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration value) { if (fieldConfigurationBuilder_ == null) { if (((bitField0_ & 0x01000000) != 0) && fieldConfiguration_ != null && fieldConfiguration_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.getDefaultInstance()) { getFieldConfigurationBuilder().mergeFrom(value); } else { fieldConfiguration_ = value; } } else { fieldConfigurationBuilder_.mergeFrom(value); } bitField0_ |= 0x01000000; onChanged(); return this; } /** *
       * Additional field level properties used when generating the OpenAPI v2 file.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; */ public Builder clearFieldConfiguration() { bitField0_ = (bitField0_ & ~0x01000000); fieldConfiguration_ = null; if (fieldConfigurationBuilder_ != null) { fieldConfigurationBuilder_.dispose(); fieldConfigurationBuilder_ = null; } onChanged(); return this; } /** *
       * Additional field level properties used when generating the OpenAPI v2 file.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.Builder getFieldConfigurationBuilder() { bitField0_ |= 0x01000000; onChanged(); return getFieldConfigurationFieldBuilder().getBuilder(); } /** *
       * Additional field level properties used when generating the OpenAPI v2 file.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfigurationOrBuilder getFieldConfigurationOrBuilder() { if (fieldConfigurationBuilder_ != null) { return fieldConfigurationBuilder_.getMessageOrBuilder(); } else { return fieldConfiguration_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.getDefaultInstance() : fieldConfiguration_; } } /** *
       * Additional field level properties used when generating the OpenAPI v2 file.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfigurationOrBuilder> getFieldConfigurationFieldBuilder() { if (fieldConfigurationBuilder_ == null) { fieldConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfigurationOrBuilder>( getFieldConfiguration(), getParentForChildren(), isClean()); fieldConfiguration_ = null; } return fieldConfigurationBuilder_; } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Value> extensions_; private com.google.protobuf.MapField internalGetExtensions() { if (extensions_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtensionsDefaultEntryHolder.defaultEntry); } return extensions_; } private com.google.protobuf.MapField internalGetMutableExtensions() { if (extensions_ == null) { extensions_ = com.google.protobuf.MapField.newMapField( ExtensionsDefaultEntryHolder.defaultEntry); } if (!extensions_.isMutable()) { extensions_ = extensions_.copy(); } bitField0_ |= 0x02000000; onChanged(); return extensions_; } public int getExtensionsCount() { return internalGetExtensions().getMap().size(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 48; */ @java.lang.Override public boolean containsExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtensions().getMap().containsKey(key); } /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtensions() { return getExtensionsMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 48; */ @java.lang.Override public java.util.Map getExtensionsMap() { return internalGetExtensions().getMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 48; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 48; */ @java.lang.Override public com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearExtensions() { bitField0_ = (bitField0_ & ~0x02000000); internalGetMutableExtensions().getMutableMap() .clear(); return this; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 48; */ public Builder removeExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExtensions().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableExtensions() { bitField0_ |= 0x02000000; return internalGetMutableExtensions().getMutableMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 48; */ public Builder putExtensions( java.lang.String key, com.google.protobuf.Value value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableExtensions().getMutableMap() .put(key, value); bitField0_ |= 0x02000000; return this; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 48; */ public Builder putAllExtensions( java.util.Map values) { internalGetMutableExtensions().getMutableMap() .putAll(values); bitField0_ |= 0x02000000; 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_openapiv2.options.JSONSchema) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema(); } public static grpc.gateway.protoc_gen_openapiv2.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.JSONSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TagOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.Tag) com.google.protobuf.MessageOrBuilder { /** *
     * The name of the tag. Use it to allow override of the name of a
     * global Tag object, then use that name to reference the tag throughout the
     * OpenAPI file.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * The name of the tag. Use it to allow override of the name of a
     * global Tag object, then use that name to reference the tag throughout the
     * OpenAPI file.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * A short description for the tag. GFM syntax can be used for rich text
     * representation.
     * 
* * string description = 2; * @return The description. */ java.lang.String getDescription(); /** *
     * A short description for the tag. GFM syntax can be used for rich text
     * representation.
     * 
* * string description = 2; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Additional external documentation for this tag.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; * @return Whether the externalDocs field is set. */ boolean hasExternalDocs(); /** *
     * Additional external documentation for this tag.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; * @return The externalDocs. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation getExternalDocs(); /** *
     * Additional external documentation for this tag.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 4; */ int getExtensionsCount(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 4; */ boolean containsExtensions( java.lang.String key); /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Deprecated java.util.Map getExtensions(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 4; */ java.util.Map getExtensionsMap(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 4; */ /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 4; */ com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key); } /** *
   * `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
   * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Tag} */ public static final class Tag extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.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() { name_ = ""; description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Tag(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * The name of the tag. Use it to allow override of the name of a
     * global Tag object, then use that name to reference the tag throughout the
     * OpenAPI file.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override 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; } } /** *
     * The name of the tag. Use it to allow override of the name of a
     * global Tag object, then use that name to reference the tag throughout the
     * OpenAPI file.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override 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 DESCRIPTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
     * A short description for the tag. GFM syntax can be used for rich text
     * representation.
     * 
* * string description = 2; * @return The description. */ @java.lang.Override 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 the tag. GFM syntax can be used for rich text
     * representation.
     * 
* * string description = 2; * @return The bytes for description. */ @java.lang.Override 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_openapiv2.options.Openapiv2.ExternalDocumentation externalDocs_; /** *
     * Additional external documentation for this tag.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; * @return Whether the externalDocs field is set. */ @java.lang.Override public boolean hasExternalDocs() { return externalDocs_ != null; } /** *
     * Additional external documentation for this tag.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; * @return The externalDocs. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation getExternalDocs() { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } /** *
     * Additional external documentation for this tag.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } public static final int EXTENSIONS_FIELD_NUMBER = 4; private static final class ExtensionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_ExtensionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.protobuf.Value.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Value> extensions_; private com.google.protobuf.MapField internalGetExtensions() { if (extensions_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtensionsDefaultEntryHolder.defaultEntry); } return extensions_; } public int getExtensionsCount() { return internalGetExtensions().getMap().size(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 4; */ @java.lang.Override public boolean containsExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtensions().getMap().containsKey(key); } /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtensions() { return getExtensionsMap(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 4; */ @java.lang.Override public java.util.Map getExtensionsMap() { return internalGetExtensions().getMap(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 4; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 4; */ @java.lang.Override public com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (externalDocs_ != null) { output.writeMessage(3, getExternalDocs()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetExtensions(), ExtensionsDefaultEntryHolder.defaultEntry, 4); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (externalDocs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getExternalDocs()); } for (java.util.Map.Entry entry : internalGetExtensions().getMap().entrySet()) { com.google.protobuf.MapEntry extensions__ = ExtensionsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, extensions__); } size += getUnknownFields().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_openapiv2.options.Openapiv2.Tag)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag other = (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag) obj; if (!getName() .equals(other.getName())) 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 (!internalGetExtensions().equals( other.internalGetExtensions())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasExternalDocs()) { hash = (37 * hash) + EXTERNAL_DOCS_FIELD_NUMBER; hash = (53 * hash) + getExternalDocs().hashCode(); } if (!internalGetExtensions().getMap().isEmpty()) { hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetExtensions().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.Tag parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.Tag parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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
     * 
* * Protobuf type {@code grpc.gateway.protoc_gen_openapiv2.options.Tag} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.Tag) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.TagOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 4: return internalGetMutableExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; description_ = ""; externalDocs_ = null; if (externalDocsBuilder_ != null) { externalDocsBuilder_.dispose(); externalDocsBuilder_ = null; } internalGetMutableExtensions().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.externalDocs_ = externalDocsBuilder_ == null ? externalDocs_ : externalDocsBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.extensions_ = internalGetExtensions(); result.extensions_.makeImmutable(); } } @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_openapiv2.options.Openapiv2.Tag) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasExternalDocs()) { mergeExternalDocs(other.getExternalDocs()); } internalGetMutableExtensions().mergeFrom( other.internalGetExtensions()); bitField0_ |= 0x00000008; this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getExternalDocsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.protobuf.MapEntry extensions__ = input.readMessage( ExtensionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableExtensions().getMutableMap().put( extensions__.getKey(), extensions__.getValue()); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * The name of the tag. Use it to allow override of the name of a
       * global Tag object, then use that name to reference the tag throughout the
       * OpenAPI file.
       * 
* * string name = 1; * @return The name. */ 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; } } /** *
       * The name of the tag. Use it to allow override of the name of a
       * global Tag object, then use that name to reference the tag throughout the
       * OpenAPI file.
       * 
* * string name = 1; * @return The bytes for name. */ 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; } } /** *
       * The name of the tag. Use it to allow override of the name of a
       * global Tag object, then use that name to reference the tag throughout the
       * OpenAPI file.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The name of the tag. Use it to allow override of the name of a
       * global Tag object, then use that name to reference the tag throughout the
       * OpenAPI file.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The name of the tag. Use it to allow override of the name of a
       * global Tag object, then use that name to reference the tag throughout the
       * OpenAPI file.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * A short description for the tag. GFM syntax can be used for rich text
       * representation.
       * 
* * string description = 2; * @return The description. */ 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 the tag. GFM syntax can be used for rich text
       * representation.
       * 
* * string description = 2; * @return The bytes for description. */ 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 the tag. GFM syntax can be used for rich text
       * representation.
       * 
* * string description = 2; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * A short description for the tag. GFM syntax can be used for rich text
       * representation.
       * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * A short description for the tag. GFM syntax can be used for rich text
       * representation.
       * 
* * string description = 2; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation externalDocs_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder> externalDocsBuilder_; /** *
       * Additional external documentation for this tag.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; * @return Whether the externalDocs field is set. */ public boolean hasExternalDocs() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Additional external documentation for this tag.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; * @return The externalDocs. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation getExternalDocs() { if (externalDocsBuilder_ == null) { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } else { return externalDocsBuilder_.getMessage(); } } /** *
       * Additional external documentation for this tag.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; */ public Builder setExternalDocs(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } externalDocs_ = value; } else { externalDocsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Additional external documentation for this tag.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; */ public Builder setExternalDocs( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder builderForValue) { if (externalDocsBuilder_ == null) { externalDocs_ = builderForValue.build(); } else { externalDocsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Additional external documentation for this tag.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; */ public Builder mergeExternalDocs(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation value) { if (externalDocsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && externalDocs_ != null && externalDocs_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance()) { getExternalDocsBuilder().mergeFrom(value); } else { externalDocs_ = value; } } else { externalDocsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Additional external documentation for this tag.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; */ public Builder clearExternalDocs() { bitField0_ = (bitField0_ & ~0x00000004); externalDocs_ = null; if (externalDocsBuilder_ != null) { externalDocsBuilder_.dispose(); externalDocsBuilder_ = null; } onChanged(); return this; } /** *
       * Additional external documentation for this tag.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder getExternalDocsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getExternalDocsFieldBuilder().getBuilder(); } /** *
       * Additional external documentation for this tag.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder() { if (externalDocsBuilder_ != null) { return externalDocsBuilder_.getMessageOrBuilder(); } else { return externalDocs_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.getDefaultInstance() : externalDocs_; } } /** *
       * Additional external documentation for this tag.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder> getExternalDocsFieldBuilder() { if (externalDocsBuilder_ == null) { externalDocsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentation.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ExternalDocumentationOrBuilder>( getExternalDocs(), getParentForChildren(), isClean()); externalDocs_ = null; } return externalDocsBuilder_; } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Value> extensions_; private com.google.protobuf.MapField internalGetExtensions() { if (extensions_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtensionsDefaultEntryHolder.defaultEntry); } return extensions_; } private com.google.protobuf.MapField internalGetMutableExtensions() { if (extensions_ == null) { extensions_ = com.google.protobuf.MapField.newMapField( ExtensionsDefaultEntryHolder.defaultEntry); } if (!extensions_.isMutable()) { extensions_ = extensions_.copy(); } bitField0_ |= 0x00000008; onChanged(); return extensions_; } public int getExtensionsCount() { return internalGetExtensions().getMap().size(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 4; */ @java.lang.Override public boolean containsExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtensions().getMap().containsKey(key); } /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtensions() { return getExtensionsMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 4; */ @java.lang.Override public java.util.Map getExtensionsMap() { return internalGetExtensions().getMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 4; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 4; */ @java.lang.Override public com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearExtensions() { bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableExtensions().getMutableMap() .clear(); return this; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 4; */ public Builder removeExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExtensions().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableExtensions() { bitField0_ |= 0x00000008; return internalGetMutableExtensions().getMutableMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 4; */ public Builder putExtensions( java.lang.String key, com.google.protobuf.Value value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableExtensions().getMutableMap() .put(key, value); bitField0_ |= 0x00000008; return this; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 4; */ public Builder putAllExtensions( java.util.Map values) { internalGetMutableExtensions().getMutableMap() .putAll(values); bitField0_ |= 0x00000008; 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_openapiv2.options.Tag) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Tag) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Tag(); } public static grpc.gateway.protoc_gen_openapiv2.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.Tag getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecurityDefinitionsOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.options.SecurityScheme> security = 1; */ /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme getSecurityOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme defaultValue); /** *
     * A single security scheme definition, mapping a "name" to the scheme it
     * defines.
     * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security = 1; */ grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.SecurityDefinitions} */ public static final class SecurityDefinitions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SecurityDefinitions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_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_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.class, grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.SecurityScheme> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_SecurityEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.SecurityScheme> security = 1; */ @java.lang.Override public boolean containsSecurity( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetSecurity().getMap().containsKey(key); } /** * Use {@link #getSecurityMap()} instead. */ @java.lang.Override @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_openapiv2.options.SecurityScheme> security = 1; */ @java.lang.Override 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_openapiv2.options.SecurityScheme> security = 1; */ @java.lang.Override public /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme getSecurityOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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_openapiv2.options.SecurityScheme> security = 1; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme getSecurityOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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); getUnknownFields().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 += getUnknownFields().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_openapiv2.options.Openapiv2.SecurityDefinitions)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions other = (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions) obj; if (!internalGetSecurity().equals( other.internalGetSecurity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.SecurityDefinitions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.SecurityDefinitions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.options.SecurityDefinitions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_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_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableSecurity().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.security_ = internalGetSecurity(); result.security_.makeImmutable(); } } @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_openapiv2.options.Openapiv2.SecurityDefinitions) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions.getDefaultInstance()) return this; internalGetMutableSecurity().mergeFrom( other.internalGetSecurity()); bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry security__ = input.readMessage( SecurityDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableSecurity().getMutableMap().put( security__.getKey(), security__.getValue()); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, grpc.gateway.protoc_gen_openapiv2.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() { if (security_ == null) { security_ = com.google.protobuf.MapField.newMapField( SecurityDefaultEntryHolder.defaultEntry); } if (!security_.isMutable()) { security_ = security_.copy(); } bitField0_ |= 0x00000001; onChanged(); 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_openapiv2.options.SecurityScheme> security = 1; */ @java.lang.Override public boolean containsSecurity( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetSecurity().getMap().containsKey(key); } /** * Use {@link #getSecurityMap()} instead. */ @java.lang.Override @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_openapiv2.options.SecurityScheme> security = 1; */ @java.lang.Override 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_openapiv2.options.SecurityScheme> security = 1; */ @java.lang.Override public /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme getSecurityOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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_openapiv2.options.SecurityScheme> security = 1; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme getSecurityOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetSecurity().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearSecurity() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableSecurity().getMutableMap() .clear(); return this; } /** *
       * A single security scheme definition, mapping a "name" to the scheme it
       * defines.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security = 1; */ public Builder removeSecurity( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableSecurity().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSecurity() { bitField0_ |= 0x00000001; return internalGetMutableSecurity().getMutableMap(); } /** *
       * A single security scheme definition, mapping a "name" to the scheme it
       * defines.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security = 1; */ public Builder putSecurity( java.lang.String key, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableSecurity().getMutableMap() .put(key, value); bitField0_ |= 0x00000001; return this; } /** *
       * A single security scheme definition, mapping a "name" to the scheme it
       * defines.
       * 
* * map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security = 1; */ public Builder putAllSecurity( java.util.Map values) { internalGetMutableSecurity().getMutableMap() .putAll(values); bitField0_ |= 0x00000001; 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_openapiv2.options.SecurityDefinitions) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityDefinitions(); } public static grpc.gateway.protoc_gen_openapiv2.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.SecurityDefinitions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecuritySchemeOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) com.google.protobuf.MessageOrBuilder { /** *
     * The type of the security scheme. Valid values are "basic",
     * "apiKey" or "oauth2".
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** *
     * The type of the security scheme. Valid values are "basic",
     * "apiKey" or "oauth2".
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; * @return The type. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Type getType(); /** *
     * A short description for security scheme.
     * 
* * string description = 2; * @return The description. */ java.lang.String getDescription(); /** *
     * A short description for security scheme.
     * 
* * string description = 2; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * The name of the header or query parameter to be used.
     * Valid for apiKey.
     * 
* * string name = 3; * @return The name. */ java.lang.String getName(); /** *
     * The name of the header or query parameter to be used.
     * Valid for apiKey.
     * 
* * string name = 3; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * The location of the API key. Valid values are "query" or
     * "header".
     * Valid for apiKey.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; * @return The enum numeric value on the wire for in. */ int getInValue(); /** *
     * The location of the API key. Valid values are "query" or
     * "header".
     * Valid for apiKey.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; * @return The in. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.In getIn(); /** *
     * The flow used by the OAuth2 security scheme. Valid values are
     * "implicit", "password", "application" or "accessCode".
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; * @return The enum numeric value on the wire for flow. */ int getFlowValue(); /** *
     * The flow used by the OAuth2 security scheme. Valid values are
     * "implicit", "password", "application" or "accessCode".
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; * @return The flow. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Flow getFlow(); /** *
     * 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; * @return The authorizationUrl. */ java.lang.String getAuthorizationUrl(); /** *
     * 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; * @return The bytes for authorizationUrl. */ com.google.protobuf.ByteString getAuthorizationUrlBytes(); /** *
     * 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; * @return The tokenUrl. */ java.lang.String getTokenUrl(); /** *
     * 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; * @return The bytes for tokenUrl. */ com.google.protobuf.ByteString getTokenUrlBytes(); /** *
     * The available scopes for the OAuth2 security scheme.
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; * @return Whether the scopes field is set. */ boolean hasScopes(); /** *
     * The available scopes for the OAuth2 security scheme.
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; * @return The scopes. */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes getScopes(); /** *
     * The available scopes for the OAuth2 security scheme.
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ScopesOrBuilder getScopesOrBuilder(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 9; */ int getExtensionsCount(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 9; */ boolean containsExtensions( java.lang.String key); /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Deprecated java.util.Map getExtensions(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 9; */ java.util.Map getExtensionsMap(); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 9; */ /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue); /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 9; */ com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key); } /** *
   * `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_openapiv2.options.SecurityScheme} */ public static final class SecurityScheme extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SecurityScheme(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 9: return internalGetExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Builder.class); } /** *
     * The type of the security scheme. Valid values are "basic",
     * "apiKey" or "oauth2".
     * 
* * Protobuf enum {@code grpc.gateway.protoc_gen_openapiv2.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; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire 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() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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_openapiv2.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_openapiv2.options.SecurityScheme.Type) } /** *
     * The location of the API key. Valid values are "query" or "header".
     * 
* * Protobuf enum {@code grpc.gateway.protoc_gen_openapiv2.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; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static In valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire 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() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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_openapiv2.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_openapiv2.options.SecurityScheme.In) } /** *
     * The flow used by the OAuth2 security scheme. Valid values are
     * "implicit", "password", "application" or "accessCode".
     * 
* * Protobuf enum {@code grpc.gateway.protoc_gen_openapiv2.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; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Flow valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire 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() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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_openapiv2.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_openapiv2.options.SecurityScheme.Flow) } public static final int TYPE_FIELD_NUMBER = 1; private int type_ = 0; /** *
     * The type of the security scheme. Valid values are "basic",
     * "apiKey" or "oauth2".
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * The type of the security scheme. Valid values are "basic",
     * "apiKey" or "oauth2".
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; * @return The type. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Type getType() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Type result = grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Type.forNumber(type_); return result == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Type.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
     * A short description for security scheme.
     * 
* * string description = 2; * @return The description. */ @java.lang.Override 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; * @return The bytes for description. */ @java.lang.Override 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; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * The name of the header or query parameter to be used.
     * Valid for apiKey.
     * 
* * string name = 3; * @return The name. */ @java.lang.Override 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; } } /** *
     * The name of the header or query parameter to be used.
     * Valid for apiKey.
     * 
* * string name = 3; * @return The bytes for name. */ @java.lang.Override 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_ = 0; /** *
     * The location of the API key. Valid values are "query" or
     * "header".
     * Valid for apiKey.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; * @return The enum numeric value on the wire for in. */ @java.lang.Override public int getInValue() { return in_; } /** *
     * The location of the API key. Valid values are "query" or
     * "header".
     * Valid for apiKey.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; * @return The in. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.In getIn() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.In result = grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.In.forNumber(in_); return result == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.In.UNRECOGNIZED : result; } public static final int FLOW_FIELD_NUMBER = 5; private int flow_ = 0; /** *
     * The flow used by the OAuth2 security scheme. Valid values are
     * "implicit", "password", "application" or "accessCode".
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; * @return The enum numeric value on the wire for flow. */ @java.lang.Override public int getFlowValue() { return flow_; } /** *
     * The flow used by the OAuth2 security scheme. Valid values are
     * "implicit", "password", "application" or "accessCode".
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; * @return The flow. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Flow getFlow() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Flow result = grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Flow.forNumber(flow_); return result == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Flow.UNRECOGNIZED : result; } public static final int AUTHORIZATION_URL_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object authorizationUrl_ = ""; /** *
     * 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; * @return The authorizationUrl. */ @java.lang.Override 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; } } /** *
     * 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; * @return The bytes for authorizationUrl. */ @java.lang.Override 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; @SuppressWarnings("serial") private volatile java.lang.Object tokenUrl_ = ""; /** *
     * 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; * @return The tokenUrl. */ @java.lang.Override 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; } } /** *
     * 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; * @return The bytes for tokenUrl. */ @java.lang.Override 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_openapiv2.options.Openapiv2.Scopes scopes_; /** *
     * The available scopes for the OAuth2 security scheme.
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; * @return Whether the scopes field is set. */ @java.lang.Override public boolean hasScopes() { return scopes_ != null; } /** *
     * The available scopes for the OAuth2 security scheme.
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; * @return The scopes. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes getScopes() { return scopes_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.getDefaultInstance() : scopes_; } /** *
     * The available scopes for the OAuth2 security scheme.
     * Valid for oauth2.
     * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ScopesOrBuilder getScopesOrBuilder() { return scopes_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.getDefaultInstance() : scopes_; } public static final int EXTENSIONS_FIELD_NUMBER = 9; private static final class ExtensionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_ExtensionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.protobuf.Value.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Value> extensions_; private com.google.protobuf.MapField internalGetExtensions() { if (extensions_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtensionsDefaultEntryHolder.defaultEntry); } return extensions_; } public int getExtensionsCount() { return internalGetExtensions().getMap().size(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 9; */ @java.lang.Override public boolean containsExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtensions().getMap().containsKey(key); } /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtensions() { return getExtensionsMap(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 9; */ @java.lang.Override public java.util.Map getExtensionsMap() { return internalGetExtensions().getMap(); } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 9; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Custom properties that start with "x-" such as "x-foo" used to describe
     * extra functionality that is not covered by the standard OpenAPI Specification.
     * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
     * 
* * map<string, .google.protobuf.Value> extensions = 9; */ @java.lang.Override public com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().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 { if (type_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Type.TYPE_INVALID.getNumber()) { output.writeEnum(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (in_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.In.IN_INVALID.getNumber()) { output.writeEnum(4, in_); } if (flow_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Flow.FLOW_INVALID.getNumber()) { output.writeEnum(5, flow_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizationUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, authorizationUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tokenUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tokenUrl_); } if (scopes_ != null) { output.writeMessage(8, getScopes()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetExtensions(), ExtensionsDefaultEntryHolder.defaultEntry, 9); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Type.TYPE_INVALID.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (in_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.In.IN_INVALID.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, in_); } if (flow_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Flow.FLOW_INVALID.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, flow_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authorizationUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, authorizationUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tokenUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tokenUrl_); } if (scopes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getScopes()); } for (java.util.Map.Entry entry : internalGetExtensions().getMap().entrySet()) { com.google.protobuf.MapEntry extensions__ = ExtensionsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, extensions__); } size += getUnknownFields().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_openapiv2.options.Openapiv2.SecurityScheme)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme other = (grpc.gateway.protoc_gen_openapiv2.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 (!internalGetExtensions().equals( other.internalGetExtensions())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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(); } if (!internalGetExtensions().getMap().isEmpty()) { hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetExtensions().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.SecurityScheme parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.SecurityScheme parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.options.SecurityScheme} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecuritySchemeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 9: return internalGetExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 9: return internalGetMutableExtensions(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 0; description_ = ""; name_ = ""; in_ = 0; flow_ = 0; authorizationUrl_ = ""; tokenUrl_ = ""; scopes_ = null; if (scopesBuilder_ != null) { scopesBuilder_.dispose(); scopesBuilder_ = null; } internalGetMutableExtensions().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.in_ = in_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.flow_ = flow_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.authorizationUrl_ = authorizationUrl_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.tokenUrl_ = tokenUrl_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.scopes_ = scopesBuilder_ == null ? scopes_ : scopesBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.extensions_ = internalGetExtensions(); result.extensions_.makeImmutable(); } } @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_openapiv2.options.Openapiv2.SecurityScheme) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000004; onChanged(); } if (other.in_ != 0) { setInValue(other.getInValue()); } if (other.flow_ != 0) { setFlowValue(other.getFlowValue()); } if (!other.getAuthorizationUrl().isEmpty()) { authorizationUrl_ = other.authorizationUrl_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getTokenUrl().isEmpty()) { tokenUrl_ = other.tokenUrl_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasScopes()) { mergeScopes(other.getScopes()); } internalGetMutableExtensions().mergeFrom( other.internalGetExtensions()); bitField0_ |= 0x00000100; this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { type_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { in_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { flow_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { authorizationUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { tokenUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage( getScopesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { com.google.protobuf.MapEntry extensions__ = input.readMessage( ExtensionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableExtensions().getMutableMap().put( extensions__.getKey(), extensions__.getValue()); bitField0_ |= 0x00000100; break; } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int type_ = 0; /** *
       * The type of the security scheme. Valid values are "basic",
       * "apiKey" or "oauth2".
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
       * The type of the security scheme. Valid values are "basic",
       * "apiKey" or "oauth2".
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The type of the security scheme. Valid values are "basic",
       * "apiKey" or "oauth2".
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; * @return The type. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Type getType() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Type result = grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Type.forNumber(type_); return result == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Type.UNRECOGNIZED : result; } /** *
       * The type of the security scheme. Valid values are "basic",
       * "apiKey" or "oauth2".
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** *
       * The type of the security scheme. Valid values are "basic",
       * "apiKey" or "oauth2".
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * A short description for security scheme.
       * 
* * string description = 2; * @return The description. */ 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; * @return The bytes for description. */ 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; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * A short description for security scheme.
       * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * A short description for security scheme.
       * 
* * string description = 2; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * The name of the header or query parameter to be used.
       * Valid for apiKey.
       * 
* * string name = 3; * @return The name. */ 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; } } /** *
       * The name of the header or query parameter to be used.
       * Valid for apiKey.
       * 
* * string name = 3; * @return The bytes for name. */ 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; } } /** *
       * The name of the header or query parameter to be used.
       * Valid for apiKey.
       * 
* * string name = 3; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The name of the header or query parameter to be used.
       * Valid for apiKey.
       * 
* * string name = 3; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * The name of the header or query parameter to be used.
       * Valid for apiKey.
       * 
* * string name = 3; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private int in_ = 0; /** *
       * The location of the API key. Valid values are "query" or
       * "header".
       * Valid for apiKey.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; * @return The enum numeric value on the wire for in. */ @java.lang.Override public int getInValue() { return in_; } /** *
       * The location of the API key. Valid values are "query" or
       * "header".
       * Valid for apiKey.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; * @param value The enum numeric value on the wire for in to set. * @return This builder for chaining. */ public Builder setInValue(int value) { in_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The location of the API key. Valid values are "query" or
       * "header".
       * Valid for apiKey.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; * @return The in. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.In getIn() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.In result = grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.In.forNumber(in_); return result == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.In.UNRECOGNIZED : result; } /** *
       * The location of the API key. Valid values are "query" or
       * "header".
       * Valid for apiKey.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; * @param value The in to set. * @return This builder for chaining. */ public Builder setIn(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.In value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; in_ = value.getNumber(); onChanged(); return this; } /** *
       * The location of the API key. Valid values are "query" or
       * "header".
       * Valid for apiKey.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; * @return This builder for chaining. */ public Builder clearIn() { bitField0_ = (bitField0_ & ~0x00000008); in_ = 0; onChanged(); return this; } private int flow_ = 0; /** *
       * The flow used by the OAuth2 security scheme. Valid values are
       * "implicit", "password", "application" or "accessCode".
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; * @return The enum numeric value on the wire for flow. */ @java.lang.Override public int getFlowValue() { return flow_; } /** *
       * The flow used by the OAuth2 security scheme. Valid values are
       * "implicit", "password", "application" or "accessCode".
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; * @param value The enum numeric value on the wire for flow to set. * @return This builder for chaining. */ public Builder setFlowValue(int value) { flow_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The flow used by the OAuth2 security scheme. Valid values are
       * "implicit", "password", "application" or "accessCode".
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; * @return The flow. */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Flow getFlow() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Flow result = grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Flow.forNumber(flow_); return result == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Flow.UNRECOGNIZED : result; } /** *
       * The flow used by the OAuth2 security scheme. Valid values are
       * "implicit", "password", "application" or "accessCode".
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; * @param value The flow to set. * @return This builder for chaining. */ public Builder setFlow(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Flow value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; flow_ = value.getNumber(); onChanged(); return this; } /** *
       * The flow used by the OAuth2 security scheme. Valid values are
       * "implicit", "password", "application" or "accessCode".
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; * @return This builder for chaining. */ public Builder clearFlow() { bitField0_ = (bitField0_ & ~0x00000010); flow_ = 0; onChanged(); return this; } private java.lang.Object authorizationUrl_ = ""; /** *
       * 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; * @return The authorizationUrl. */ 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; } } /** *
       * 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; * @return The bytes for authorizationUrl. */ 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; } } /** *
       * 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; * @param value The authorizationUrl to set. * @return This builder for chaining. */ public Builder setAuthorizationUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } authorizationUrl_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * 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; * @return This builder for chaining. */ public Builder clearAuthorizationUrl() { authorizationUrl_ = getDefaultInstance().getAuthorizationUrl(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
       * 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; * @param value The bytes for authorizationUrl to set. * @return This builder for chaining. */ public Builder setAuthorizationUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); authorizationUrl_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object tokenUrl_ = ""; /** *
       * 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; * @return The tokenUrl. */ 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; } } /** *
       * 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; * @return The bytes for tokenUrl. */ 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; } } /** *
       * 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; * @param value The tokenUrl to set. * @return This builder for chaining. */ public Builder setTokenUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tokenUrl_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * 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; * @return This builder for chaining. */ public Builder clearTokenUrl() { tokenUrl_ = getDefaultInstance().getTokenUrl(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
       * 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; * @param value The bytes for tokenUrl to set. * @return This builder for chaining. */ public Builder setTokenUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tokenUrl_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes scopes_; private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ScopesOrBuilder> scopesBuilder_; /** *
       * The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; * @return Whether the scopes field is set. */ public boolean hasScopes() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; * @return The scopes. */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes getScopes() { if (scopesBuilder_ == null) { return scopes_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.getDefaultInstance() : scopes_; } else { return scopesBuilder_.getMessage(); } } /** *
       * The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; */ public Builder setScopes(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes value) { if (scopesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scopes_ = value; } else { scopesBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; */ public Builder setScopes( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.Builder builderForValue) { if (scopesBuilder_ == null) { scopes_ = builderForValue.build(); } else { scopesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; */ public Builder mergeScopes(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes value) { if (scopesBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && scopes_ != null && scopes_ != grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.getDefaultInstance()) { getScopesBuilder().mergeFrom(value); } else { scopes_ = value; } } else { scopesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; */ public Builder clearScopes() { bitField0_ = (bitField0_ & ~0x00000080); scopes_ = null; if (scopesBuilder_ != null) { scopesBuilder_.dispose(); scopesBuilder_ = null; } onChanged(); return this; } /** *
       * The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.Builder getScopesBuilder() { bitField0_ |= 0x00000080; onChanged(); return getScopesFieldBuilder().getBuilder(); } /** *
       * The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; */ public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ScopesOrBuilder getScopesOrBuilder() { if (scopesBuilder_ != null) { return scopesBuilder_.getMessageOrBuilder(); } else { return scopes_ == null ? grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.getDefaultInstance() : scopes_; } } /** *
       * The available scopes for the OAuth2 security scheme.
       * Valid for oauth2.
       * 
* * .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ScopesOrBuilder> getScopesFieldBuilder() { if (scopesBuilder_ == null) { scopesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.Builder, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ScopesOrBuilder>( getScopes(), getParentForChildren(), isClean()); scopes_ = null; } return scopesBuilder_; } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.Value> extensions_; private com.google.protobuf.MapField internalGetExtensions() { if (extensions_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtensionsDefaultEntryHolder.defaultEntry); } return extensions_; } private com.google.protobuf.MapField internalGetMutableExtensions() { if (extensions_ == null) { extensions_ = com.google.protobuf.MapField.newMapField( ExtensionsDefaultEntryHolder.defaultEntry); } if (!extensions_.isMutable()) { extensions_ = extensions_.copy(); } bitField0_ |= 0x00000100; onChanged(); return extensions_; } public int getExtensionsCount() { return internalGetExtensions().getMap().size(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 9; */ @java.lang.Override public boolean containsExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtensions().getMap().containsKey(key); } /** * Use {@link #getExtensionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtensions() { return getExtensionsMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 9; */ @java.lang.Override public java.util.Map getExtensionsMap() { return internalGetExtensions().getMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 9; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getExtensionsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 9; */ @java.lang.Override public com.google.protobuf.Value getExtensionsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtensions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearExtensions() { bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableExtensions().getMutableMap() .clear(); return this; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 9; */ public Builder removeExtensions( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExtensions().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableExtensions() { bitField0_ |= 0x00000100; return internalGetMutableExtensions().getMutableMap(); } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 9; */ public Builder putExtensions( java.lang.String key, com.google.protobuf.Value value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableExtensions().getMutableMap() .put(key, value); bitField0_ |= 0x00000100; return this; } /** *
       * Custom properties that start with "x-" such as "x-foo" used to describe
       * extra functionality that is not covered by the standard OpenAPI Specification.
       * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       * 
* * map<string, .google.protobuf.Value> extensions = 9; */ public Builder putAllExtensions( java.util.Map values) { internalGetMutableExtensions().getMutableMap() .putAll(values); bitField0_ |= 0x00000100; 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_openapiv2.options.SecurityScheme) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme(); } public static grpc.gateway.protoc_gen_openapiv2.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.SecurityScheme getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecurityRequirementOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getSecurityRequirementOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.SecurityRequirement} */ public static final class SecurityRequirement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SecurityRequirement(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_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_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder.class); } public interface SecurityRequirementValueOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) com.google.protobuf.MessageOrBuilder { /** * repeated string scope = 1; * @return A list containing the scope. */ java.util.List getScopeList(); /** * repeated string scope = 1; * @return The count of scope. */ int getScopeCount(); /** * repeated string scope = 1; * @param index The index of the element to return. * @return The scope at the given index. */ java.lang.String getScope(int index); /** * repeated string scope = 1; * @param index The index of the value to return. * @return The bytes of the scope at the given index. */ 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_openapiv2.options.SecurityRequirement.SecurityRequirementValue} */ public static final class SecurityRequirementValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SecurityRequirementValue(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementValue_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringList scope_; /** * repeated string scope = 1; * @return A list containing the scope. */ public com.google.protobuf.ProtocolStringList getScopeList() { return scope_; } /** * repeated string scope = 1; * @return The count of scope. */ public int getScopeCount() { return scope_.size(); } /** * repeated string scope = 1; * @param index The index of the element to return. * @return The scope at the given index. */ public java.lang.String getScope(int index) { return scope_.get(index); } /** * repeated string scope = 1; * @param index The index of the value to return. * @return The bytes of the scope at the given index. */ 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)); } getUnknownFields().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 += getUnknownFields().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_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue other = (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue) obj; if (!getScopeList() .equals(other.getScopeList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.options.SecurityRequirement.SecurityRequirementValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementValue_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementValue_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue result) { if (((bitField0_ & 0x00000001) != 0)) { scope_ = scope_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.scope_ = scope_; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue result) { int from_bitField0_ = bitField0_; } @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_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue other) { if (other == grpc.gateway.protoc_gen_openapiv2.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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); ensureScopeIsMutable(); scope_.add(s); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; * @return A list containing the scope. */ public com.google.protobuf.ProtocolStringList getScopeList() { return scope_.getUnmodifiableView(); } /** * repeated string scope = 1; * @return The count of scope. */ public int getScopeCount() { return scope_.size(); } /** * repeated string scope = 1; * @param index The index of the element to return. * @return The scope at the given index. */ public java.lang.String getScope(int index) { return scope_.get(index); } /** * repeated string scope = 1; * @param index The index of the value to return. * @return The bytes of the scope at the given index. */ public com.google.protobuf.ByteString getScopeBytes(int index) { return scope_.getByteString(index); } /** * repeated string scope = 1; * @param index The index to set the value at. * @param value The scope to set. * @return This builder for chaining. */ 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; * @param value The scope to add. * @return This builder for chaining. */ public Builder addScope( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureScopeIsMutable(); scope_.add(value); onChanged(); return this; } /** * repeated string scope = 1; * @param values The scope to add. * @return This builder for chaining. */ public Builder addAllScope( java.lang.Iterable values) { ensureScopeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, scope_); onChanged(); return this; } /** * repeated string scope = 1; * @return This builder for chaining. */ public Builder clearScope() { scope_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string scope = 1; * @param value The bytes of the scope to add. * @return This builder for chaining. */ 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_openapiv2.options.SecurityRequirement.SecurityRequirementValue) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue(); } public static grpc.gateway.protoc_gen_openapiv2.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.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_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ @java.lang.Override public boolean containsSecurityRequirement( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetSecurityRequirement().getMap().containsKey(key); } /** * Use {@link #getSecurityRequirementMap()} instead. */ @java.lang.Override @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_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ @java.lang.Override 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_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ @java.lang.Override public /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getSecurityRequirementOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getSecurityRequirementOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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); getUnknownFields().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 += getUnknownFields().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_openapiv2.options.Openapiv2.SecurityRequirement)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement other = (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement) obj; if (!internalGetSecurityRequirement().equals( other.internalGetSecurityRequirement())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.SecurityRequirement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.SecurityRequirement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.options.SecurityRequirement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_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_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableSecurityRequirement().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.securityRequirement_ = internalGetSecurityRequirement(); result.securityRequirement_.makeImmutable(); } } @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_openapiv2.options.Openapiv2.SecurityRequirement) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.getDefaultInstance()) return this; internalGetMutableSecurityRequirement().mergeFrom( other.internalGetSecurityRequirement()); bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry securityRequirement__ = input.readMessage( SecurityRequirementDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableSecurityRequirement().getMutableMap().put( securityRequirement__.getKey(), securityRequirement__.getValue()); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, grpc.gateway.protoc_gen_openapiv2.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() { if (securityRequirement_ == null) { securityRequirement_ = com.google.protobuf.MapField.newMapField( SecurityRequirementDefaultEntryHolder.defaultEntry); } if (!securityRequirement_.isMutable()) { securityRequirement_ = securityRequirement_.copy(); } bitField0_ |= 0x00000001; onChanged(); 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_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ @java.lang.Override public boolean containsSecurityRequirement( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetSecurityRequirement().getMap().containsKey(key); } /** * Use {@link #getSecurityRequirementMap()} instead. */ @java.lang.Override @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_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ @java.lang.Override 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_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ @java.lang.Override public /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getSecurityRequirementOrDefault( java.lang.String key, /* nullable */ grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue getSecurityRequirementOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetSecurityRequirement().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearSecurityRequirement() { bitField0_ = (bitField0_ & ~0x00000001); 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_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public Builder removeSecurityRequirement( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableSecurityRequirement().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSecurityRequirement() { bitField0_ |= 0x00000001; 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_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public Builder putSecurityRequirement( java.lang.String key, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.SecurityRequirementValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableSecurityRequirement().getMutableMap() .put(key, value); bitField0_ |= 0x00000001; 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_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1; */ public Builder putAllSecurityRequirement( java.util.Map values) { internalGetMutableSecurityRequirement().getMutableMap() .putAll(values); bitField0_ |= 0x00000001; 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_openapiv2.options.SecurityRequirement) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement(); } public static grpc.gateway.protoc_gen_openapiv2.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.SecurityRequirement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScopesOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.gateway.protoc_gen_openapiv2.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; */ /* nullable */ java.lang.String getScopeOrDefault( java.lang.String key, /* nullable */ 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_openapiv2.options.Scopes} */ public static final class Scopes extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.gateway.protoc_gen_openapiv2.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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Scopes(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_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_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Scopes_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.class, grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Scopes_ScopeEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") 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; */ @java.lang.Override public boolean containsScope( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetScope().getMap().containsKey(key); } /** * Use {@link #getScopeMap()} instead. */ @java.lang.Override @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; */ @java.lang.Override 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; */ @java.lang.Override public /* nullable */ java.lang.String getScopeOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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; */ @java.lang.Override public java.lang.String getScopeOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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); getUnknownFields().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 += getUnknownFields().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_openapiv2.options.Openapiv2.Scopes)) { return super.equals(obj); } grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes other = (grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes) obj; if (!internalGetScope().equals( other.internalGetScope())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.Scopes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.options.Openapiv2.Scopes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.gateway.protoc_gen_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.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_openapiv2.options.Scopes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gateway.protoc_gen_openapiv2.options.Scopes) grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.ScopesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_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_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Scopes_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.class, grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.Builder.class); } // Construct using grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableScope().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.internal_static_grpc_gateway_protoc_gen_openapiv2_options_Scopes_descriptor; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes getDefaultInstanceForType() { return grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.getDefaultInstance(); } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes build() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes buildPartial() { grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes result = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.scope_ = internalGetScope(); result.scope_.makeImmutable(); } } @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_openapiv2.options.Openapiv2.Scopes) { return mergeFrom((grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes other) { if (other == grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes.getDefaultInstance()) return this; internalGetMutableScope().mergeFrom( other.internalGetScope()); bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry scope__ = input.readMessage( ScopeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableScope().getMutableMap().put( scope__.getKey(), scope__.getValue()); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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() { if (scope_ == null) { scope_ = com.google.protobuf.MapField.newMapField( ScopeDefaultEntryHolder.defaultEntry); } if (!scope_.isMutable()) { scope_ = scope_.copy(); } bitField0_ |= 0x00000001; onChanged(); 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; */ @java.lang.Override public boolean containsScope( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetScope().getMap().containsKey(key); } /** * Use {@link #getScopeMap()} instead. */ @java.lang.Override @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; */ @java.lang.Override 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; */ @java.lang.Override public /* nullable */ java.lang.String getScopeOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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; */ @java.lang.Override public java.lang.String getScopeOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetScope().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearScope() { bitField0_ = (bitField0_ & ~0x00000001); 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 NullPointerException("map key"); } internalGetMutableScope().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableScope() { bitField0_ |= 0x00000001; 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 NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableScope().getMutableMap() .put(key, value); bitField0_ |= 0x00000001; 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); bitField0_ |= 0x00000001; 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_openapiv2.options.Scopes) } // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Scopes) private static final grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Scopes(); } public static grpc.gateway.protoc_gen_openapiv2.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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_openapiv2.options.Openapiv2.Scopes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_ResponsesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_ResponsesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_ExtensionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_ExtensionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_ResponsesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_ResponsesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_ExtensionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_ExtensionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Parameters_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Parameters_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_HeaderParameter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_HeaderParameter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Header_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Header_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_HeadersEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_HeadersEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_ExamplesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_ExamplesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_ExtensionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_ExtensionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_ExtensionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_ExtensionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Contact_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Contact_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_License_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_License_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_ExternalDocumentation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_ExternalDocumentation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Schema_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Schema_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_FieldConfiguration_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_FieldConfiguration_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_ExtensionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_ExtensionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_ExtensionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_ExtensionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_SecurityEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_SecurityEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_ExtensionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_ExtensionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Scopes_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_options_Scopes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_grpc_gateway_protoc_gen_openapiv2_options_Scopes_ScopeEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_grpc_gateway_protoc_gen_openapiv2_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-openapiv2/options/openapiv2" + ".proto\022)grpc.gateway.protoc_gen_openapiv" + "2.options\032\034google/protobuf/struct.proto\"" + "\225\007\n\007Swagger\022\017\n\007swagger\030\001 \001(\t\022=\n\004info\030\002 \001" + "(\0132/.grpc.gateway.protoc_gen_openapiv2.o" + "ptions.Info\022\014\n\004host\030\003 \001(\t\022\021\n\tbase_path\030\004" + " \001(\t\022B\n\007schemes\030\005 \003(\01621.grpc.gateway.pro" + "toc_gen_openapiv2.options.Scheme\022\020\n\010cons" + "umes\030\006 \003(\t\022\020\n\010produces\030\007 \003(\t\022T\n\tresponse" + "s\030\n \003(\0132A.grpc.gateway.protoc_gen_openap" + "iv2.options.Swagger.ResponsesEntry\022\\\n\024se" + "curity_definitions\030\013 \001(\0132>.grpc.gateway." + "protoc_gen_openapiv2.options.SecurityDef" + "initions\022P\n\010security\030\014 \003(\0132>.grpc.gatewa" + "y.protoc_gen_openapiv2.options.SecurityR" + "equirement\022<\n\004tags\030\r \003(\0132..grpc.gateway." + "protoc_gen_openapiv2.options.Tag\022W\n\rexte" + "rnal_docs\030\016 \001(\[email protected]_ge" + "n_openapiv2.options.ExternalDocumentatio" + "n\022V\n\nextensions\030\017 \003(\0132B.grpc.gateway.pro" + "toc_gen_openapiv2.options.Swagger.Extens" + "ionsEntry\032e\n\016ResponsesEntry\022\013\n\003key\030\001 \001(\t" + "\022B\n\005value\030\002 \001(\01323.grpc.gateway.protoc_ge" + "n_openapiv2.options.Response:\0028\001\032I\n\017Exte" + "nsionsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132" + "\026.google.protobuf.Value:\0028\001J\004\010\010\020\tJ\004\010\t\020\n\"" + "\261\006\n\tOperation\022\014\n\004tags\030\001 \003(\t\022\017\n\007summary\030\002" + " \001(\t\022\023\n\013description\030\003 \001(\t\022W\n\rexternal_do" + "cs\030\004 \001(\[email protected]_gen_opena" + "piv2.options.ExternalDocumentation\022\024\n\014op" + "eration_id\030\005 \001(\t\022\020\n\010consumes\030\006 \003(\t\022\020\n\010pr" + "oduces\030\007 \003(\t\022V\n\tresponses\030\t \003(\0132C.grpc.g" + "ateway.protoc_gen_openapiv2.options.Oper" + "ation.ResponsesEntry\022B\n\007schemes\030\n \003(\01621." + "grpc.gateway.protoc_gen_openapiv2.option" + "s.Scheme\022\022\n\ndeprecated\030\013 \001(\010\022P\n\010security" + "\030\014 \003(\0132>.grpc.gateway.protoc_gen_openapi" + "v2.options.SecurityRequirement\022X\n\nextens" + "ions\030\r \003(\0132D.grpc.gateway.protoc_gen_ope" + "napiv2.options.Operation.ExtensionsEntry" + "\022I\n\nparameters\030\016 \001(\01325.grpc.gateway.prot" + "oc_gen_openapiv2.options.Parameters\032e\n\016R" + "esponsesEntry\022\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 \001(" + "\01323.grpc.gateway.protoc_gen_openapiv2.op" + "tions.Response:\0028\001\032I\n\017ExtensionsEntry\022\013\n" + "\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.proto" + "buf.Value:\0028\001J\004\010\010\020\t\"Y\n\nParameters\022K\n\007hea" + "ders\030\001 \003(\0132:.grpc.gateway.protoc_gen_ope" + "napiv2.options.HeaderParameter\"\370\001\n\017Heade" + "rParameter\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030" + "\002 \001(\t\022M\n\004type\030\003 \001(\0162?.grpc.gateway.proto" + "c_gen_openapiv2.options.HeaderParameter." + "Type\022\016\n\006format\030\004 \001(\t\022\020\n\010required\030\005 \001(\010\"E" + "\n\004Type\022\013\n\007UNKNOWN\020\000\022\n\n\006STRING\020\001\022\n\n\006NUMBE" + "R\020\002\022\013\n\007INTEGER\020\003\022\013\n\007BOOLEAN\020\004J\004\010\006\020\007J\004\010\007\020" + "\010\"\253\001\n\006Header\022\023\n\013description\030\001 \001(\t\022\014\n\004typ" + "e\030\002 \001(\t\022\016\n\006format\030\003 \001(\t\022\017\n\007default\030\006 \001(\t" + "\022\017\n\007pattern\030\r \001(\tJ\004\010\004\020\005J\004\010\005\020\006J\004\010\007\020\010J\004\010\010\020" + "\tJ\004\010\t\020\nJ\004\010\n\020\013J\004\010\013\020\014J\004\010\014\020\rJ\004\010\016\020\017J\004\010\017\020\020J\004\010" + "\020\020\021J\004\010\021\020\022J\004\010\022\020\023\"\302\004\n\010Response\022\023\n\013descript" + "ion\030\001 \001(\t\022A\n\006schema\030\002 \001(\01321.grpc.gateway" + ".protoc_gen_openapiv2.options.Schema\022Q\n\007" + "headers\030\003 \003(\[email protected]_gen_" + "openapiv2.options.Response.HeadersEntry\022" + "S\n\010examples\030\004 \003(\0132A.grpc.gateway.protoc_" + "gen_openapiv2.options.Response.ExamplesE" + "ntry\022W\n\nextensions\030\005 \003(\0132C.grpc.gateway." + "protoc_gen_openapiv2.options.Response.Ex" + "tensionsEntry\032a\n\014HeadersEntry\022\013\n\003key\030\001 \001" + "(\t\022@\n\005value\030\002 \001(\01321.grpc.gateway.protoc_" + "gen_openapiv2.options.Header:\0028\001\032/\n\rExam" + "plesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + "\001\032I\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005val" + "ue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"\377\002\n" + "\004Info\022\r\n\005title\030\001 \001(\t\022\023\n\013description\030\002 \001(" + "\t\022\030\n\020terms_of_service\030\003 \001(\t\022C\n\007contact\030\004" + " \001(\01322.grpc.gateway.protoc_gen_openapiv2" + ".options.Contact\022C\n\007license\030\005 \001(\01322.grpc" + ".gateway.protoc_gen_openapiv2.options.Li" + "cense\022\017\n\007version\030\006 \001(\t\022S\n\nextensions\030\007 \003" + "(\0132?.grpc.gateway.protoc_gen_openapiv2.o" + "ptions.Info.ExtensionsEntry\032I\n\017Extension" + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" + "gle.protobuf.Value:\0028\001\"3\n\007Contact\022\014\n\004nam" + "e\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\r\n\005email\030\003 \001(\t\"$\n\007L" + "icense\022\014\n\004name\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\"9\n\025Ext" + "ernalDocumentation\022\023\n\013description\030\001 \001(\t\022" + "\013\n\003url\030\002 \001(\t\"\356\001\n\006Schema\022J\n\013json_schema\030\001" + " \001(\01325.grpc.gateway.protoc_gen_openapiv2" + ".options.JSONSchema\022\025\n\rdiscriminator\030\002 \001" + "(\t\022\021\n\tread_only\030\003 \001(\010\022W\n\rexternal_docs\030\005" + " \001(\[email protected]_gen_openapiv2" + ".options.ExternalDocumentation\022\017\n\007exampl" + "e\030\006 \001(\tJ\004\010\004\020\005\"\242\010\n\nJSONSchema\022\013\n\003ref\030\003 \001(" + "\t\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\021\n\tread_only\030\010 \001(\010\022\017\n\007exa" + "mple\030\t \001(\t\022\023\n\013multiple_of\030\n \001(\001\022\017\n\007maxim" + "um\030\013 \001(\001\022\031\n\021exclusive_maximum\030\014 \001(\010\022\017\n\007m" + "inimum\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\007pattern\030\021 \001(\t\022\021\n\tmax_items\030\024 \001(\004\022\021\n\tm" + "in_items\030\025 \001(\004\022\024\n\014unique_items\030\026 \001(\010\022\026\n\016" + "max_properties\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\022Y\n" + "\004type\030# \003(\0162K.grpc.gateway.protoc_gen_op" + "enapiv2.options.JSONSchema.JSONSchemaSim" + "pleTypes\022\016\n\006format\030$ \001(\t\022\014\n\004enum\030. \003(\t\022f" + "\n\023field_configuration\030\351\007 \001(\0132H.grpc.gate" + "way.protoc_gen_openapiv2.options.JSONSch" + "ema.FieldConfiguration\022Y\n\nextensions\0300 \003" + "(\0132E.grpc.gateway.protoc_gen_openapiv2.o" + "ptions.JSONSchema.ExtensionsEntry\032-\n\022Fie" + "ldConfiguration\022\027\n\017path_param_name\030/ \001(\t" + "\032I\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005valu" + "e\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"w\n\025J" + "SONSchemaSimpleTypes\022\013\n\007UNKNOWN\020\000\022\t\n\005ARR" + "AY\020\001\022\013\n\007BOOLEAN\020\002\022\013\n\007INTEGER\020\003\022\010\n\004NULL\020\004" + "\022\n\n\006NUMBER\020\005\022\n\n\006OBJECT\020\006\022\n\n\006STRING\020\007J\004\010\001" + "\020\002J\004\010\002\020\003J\004\010\004\020\005J\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.\"\240\002\n\003T" + "ag\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022W\n" + "\rexternal_docs\030\003 \001(\[email protected]" + "oc_gen_openapiv2.options.ExternalDocumen" + "tation\022R\n\nextensions\030\004 \003(\0132>.grpc.gatewa" + "y.protoc_gen_openapiv2.options.Tag.Exten" + "sionsEntry\032I\n\017ExtensionsEntry\022\013\n\003key\030\001 \001" + "(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Valu" + "e:\0028\001\"\341\001\n\023SecurityDefinitions\022^\n\010securit" + "y\030\001 \003(\0132L.grpc.gateway.protoc_gen_openap" + "iv2.options.SecurityDefinitions.Security" + "Entry\032j\n\rSecurityEntry\022\013\n\003key\030\001 \001(\t\022H\n\005v" + "alue\030\002 \001(\01329.grpc.gateway.protoc_gen_ope" + "napiv2.options.SecurityScheme:\0028\001\"\240\006\n\016Se" + "curityScheme\022L\n\004type\030\001 \001(\0162>.grpc.gatewa" + "y.protoc_gen_openapiv2.options.SecurityS" + "cheme.Type\022\023\n\013description\030\002 \001(\t\022\014\n\004name\030" + "\003 \001(\t\022H\n\002in\030\004 \001(\0162<.grpc.gateway.protoc_" + "gen_openapiv2.options.SecurityScheme.In\022" + "L\n\004flow\030\005 \001(\0162>.grpc.gateway.protoc_gen_" + "openapiv2.options.SecurityScheme.Flow\022\031\n" + "\021authorization_url\030\006 \001(\t\022\021\n\ttoken_url\030\007 " + "\001(\t\022A\n\006scopes\030\010 \001(\01321.grpc.gateway.proto" + "c_gen_openapiv2.options.Scopes\022]\n\nextens" + "ions\030\t \003(\0132I.grpc.gateway.protoc_gen_ope" + "napiv2.options.SecurityScheme.Extensions" + "Entry\032I\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t\022%\n" + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001" + "\"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\rFL" + "OW_IMPLICIT\020\001\022\021\n\rFLOW_PASSWORD\020\002\022\024\n\020FLOW" + "_APPLICATION\020\003\022\024\n\020FLOW_ACCESS_CODE\020\004\"\315\002\n" + "\023SecurityRequirement\022u\n\024security_require" + "ment\030\001 \003(\0132W.grpc.gateway.protoc_gen_ope" + "napiv2.options.SecurityRequirement.Secur" + "ityRequirementEntry\032)\n\030SecurityRequireme" + "ntValue\022\r\n\005scope\030\001 \003(\t\032\223\001\n\030SecurityRequi" + "rementEntry\022\013\n\003key\030\001 \001(\t\022f\n\005value\030\002 \001(\0132" + "W.grpc.gateway.protoc_gen_openapiv2.opti" + "ons.SecurityRequirement.SecurityRequirem" + "entValue:\0028\001\"\203\001\n\006Scopes\022K\n\005scope\030\001 \003(\0132<" + ".grpc.gateway.protoc_gen_openapiv2.optio" + "ns.Scopes.ScopeEntry\032,\n\nScopeEntry\022\013\n\003ke" + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001*;\n\006Scheme\022\013\n\007" + "UNKNOWN\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\004BHZFgithub.com/grpc-ecosystem/grp" + "c-gateway/v2/protoc-gen-openapiv2/option" + "sb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.StructProto.getDescriptor(), }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_descriptor, new java.lang.String[] { "Swagger", "Info", "Host", "BasePath", "Schemes", "Consumes", "Produces", "Responses", "SecurityDefinitions", "Security", "Tags", "ExternalDocs", "Extensions", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_ResponsesEntry_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_descriptor.getNestedTypes().get(0); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_ResponsesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_ResponsesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_ExtensionsEntry_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_descriptor.getNestedTypes().get(1); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_ExtensionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Swagger_ExtensionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_descriptor, new java.lang.String[] { "Tags", "Summary", "Description", "ExternalDocs", "OperationId", "Consumes", "Produces", "Responses", "Schemes", "Deprecated", "Security", "Extensions", "Parameters", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_ResponsesEntry_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_descriptor.getNestedTypes().get(0); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_ResponsesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_ResponsesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_ExtensionsEntry_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_descriptor.getNestedTypes().get(1); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_ExtensionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Operation_ExtensionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Parameters_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Parameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Parameters_descriptor, new java.lang.String[] { "Headers", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_HeaderParameter_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_grpc_gateway_protoc_gen_openapiv2_options_HeaderParameter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_HeaderParameter_descriptor, new java.lang.String[] { "Name", "Description", "Type", "Format", "Required", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Header_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Header_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Header_descriptor, new java.lang.String[] { "Description", "Type", "Format", "Default", "Pattern", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_descriptor, new java.lang.String[] { "Description", "Schema", "Headers", "Examples", "Extensions", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_HeadersEntry_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_descriptor.getNestedTypes().get(0); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_HeadersEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_HeadersEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_ExamplesEntry_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_descriptor.getNestedTypes().get(1); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_ExamplesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_ExamplesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_ExtensionsEntry_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_descriptor.getNestedTypes().get(2); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_ExtensionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Response_ExtensionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_descriptor, new java.lang.String[] { "Title", "Description", "TermsOfService", "Contact", "License", "Version", "Extensions", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_ExtensionsEntry_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_descriptor.getNestedTypes().get(0); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_ExtensionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Info_ExtensionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Contact_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Contact_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Contact_descriptor, new java.lang.String[] { "Name", "Url", "Email", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_License_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_grpc_gateway_protoc_gen_openapiv2_options_License_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_License_descriptor, new java.lang.String[] { "Name", "Url", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_ExternalDocumentation_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_grpc_gateway_protoc_gen_openapiv2_options_ExternalDocumentation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_ExternalDocumentation_descriptor, new java.lang.String[] { "Description", "Url", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Schema_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Schema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Schema_descriptor, new java.lang.String[] { "JsonSchema", "Discriminator", "ReadOnly", "ExternalDocs", "Example", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_descriptor, new java.lang.String[] { "Ref", "Title", "Description", "Default", "ReadOnly", "Example", "MultipleOf", "Maximum", "ExclusiveMaximum", "Minimum", "ExclusiveMinimum", "MaxLength", "MinLength", "Pattern", "MaxItems", "MinItems", "UniqueItems", "MaxProperties", "MinProperties", "Required", "Array", "Type", "Format", "Enum", "FieldConfiguration", "Extensions", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_FieldConfiguration_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_descriptor.getNestedTypes().get(0); internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_FieldConfiguration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_FieldConfiguration_descriptor, new java.lang.String[] { "PathParamName", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_ExtensionsEntry_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_descriptor.getNestedTypes().get(1); internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_ExtensionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_JSONSchema_ExtensionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_descriptor, new java.lang.String[] { "Name", "Description", "ExternalDocs", "Extensions", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_ExtensionsEntry_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_descriptor.getNestedTypes().get(0); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_ExtensionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Tag_ExtensionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_descriptor, new java.lang.String[] { "Security", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_SecurityEntry_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_descriptor.getNestedTypes().get(0); internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_SecurityEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityDefinitions_SecurityEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_descriptor, new java.lang.String[] { "Type", "Description", "Name", "In", "Flow", "AuthorizationUrl", "TokenUrl", "Scopes", "Extensions", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_ExtensionsEntry_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_descriptor.getNestedTypes().get(0); internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_ExtensionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityScheme_ExtensionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_descriptor, new java.lang.String[] { "SecurityRequirement", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementValue_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_descriptor.getNestedTypes().get(0); internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementValue_descriptor, new java.lang.String[] { "Scope", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementEntry_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_descriptor.getNestedTypes().get(1); internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_SecurityRequirement_SecurityRequirementEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Scopes_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Scopes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Scopes_descriptor, new java.lang.String[] { "Scope", }); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Scopes_ScopeEntry_descriptor = internal_static_grpc_gateway_protoc_gen_openapiv2_options_Scopes_descriptor.getNestedTypes().get(0); internal_static_grpc_gateway_protoc_gen_openapiv2_options_Scopes_ScopeEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_grpc_gateway_protoc_gen_openapiv2_options_Scopes_ScopeEntry_descriptor, new java.lang.String[] { "Key", "Value", }); com.google.protobuf.StructProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy