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

nl.topicus.jdbc.shaded.com.google.api.HttpRule Maven / Gradle / Ivy

There is a newer version: 1.1.6
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/api/http.proto

package nl.topicus.jdbc.shaded.com.google.api;

/**
 * 
 * `HttpRule` defines the mapping of an RPC method to one or more HTTP
 * REST API methods. The mapping specifies how different portions of the RPC
 * request message are mapped to URL path, URL query parameters, and
 * HTTP request body. The mapping is typically specified as an
 * `google.api.http` annotation on the RPC method,
 * see "google/api/annotations.proto" for details.
 * The mapping consists of a field specifying the path template and
 * method kind.  The path template can refer to fields in the request
 * message, as in the example below which describes a REST GET
 * operation on a resource collection of messages:
 *     service Messaging {
 *       rpc GetMessage(GetMessageRequest) returns (Message) {
 *         option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}";
 *       }
 *     }
 *     message GetMessageRequest {
 *       message SubMessage {
 *         string subfield = 1;
 *       }
 *       string message_id = 1; // mapped to the URL
 *       SubMessage sub = 2;    // `sub.subfield` is url-mapped
 *     }
 *     message Message {
 *       string text = 1; // content of the resource
 *     }
 * The same http annotation can alternatively be expressed inside the
 * `GRPC API Configuration` YAML file.
 *     http:
 *       rules:
 *         - selector: <proto_package_name>.Messaging.GetMessage
 *           get: /v1/messages/{message_id}/{sub.subfield}
 * This definition enables an automatic, bidrectional mapping of HTTP
 * JSON to RPC. Example:
 * HTTP | RPC
 * -----|-----
 * `GET /v1/messages/123456/foo`  | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))`
 * In general, not only fields but also field paths can be referenced
 * from a path pattern. Fields mapped to the path pattern cannot be
 * repeated and must have a primitive (non-message) type.
 * Any fields in the request message which are not bound by the path
 * pattern automatically become (optional) HTTP query
 * parameters. Assume the following definition of the request message:
 *     service Messaging {
 *       rpc GetMessage(GetMessageRequest) returns (Message) {
 *         option (google.api.http).get = "/v1/messages/{message_id}";
 *       }
 *     }
 *     message GetMessageRequest {
 *       message SubMessage {
 *         string subfield = 1;
 *       }
 *       string message_id = 1; // mapped to the URL
 *       int64 revision = 2;    // becomes a parameter
 *       SubMessage sub = 3;    // `sub.subfield` becomes a parameter
 *     }
 * This enables a HTTP JSON to RPC mapping as below:
 * HTTP | RPC
 * -----|-----
 * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))`
 * Note that fields which are mapped to HTTP parameters must have a
 * primitive type or a repeated primitive type. Message types are not
 * allowed. In the case of a repeated type, the parameter can be
 * repeated in the URL, as in `...?param=A&param=B`.
 * For HTTP method kinds which allow a request body, the `body` field
 * specifies the mapping. Consider a REST update method on the
 * message resource collection:
 *     service Messaging {
 *       rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
 *         option (google.api.http) = {
 *           put: "/v1/messages/{message_id}"
 *           body: "message"
 *         };
 *       }
 *     }
 *     message UpdateMessageRequest {
 *       string message_id = 1; // mapped to the URL
 *       Message message = 2;   // mapped to the body
 *     }
 * The following HTTP JSON to RPC mapping is enabled, where the
 * representation of the JSON in the request body is determined by
 * protos JSON encoding:
 * HTTP | RPC
 * -----|-----
 * `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
 * The special name `*` can be used in the body mapping to define that
 * every field not bound by the path template should be mapped to the
 * request body.  This enables the following alternative definition of
 * the update method:
 *     service Messaging {
 *       rpc UpdateMessage(Message) returns (Message) {
 *         option (google.api.http) = {
 *           put: "/v1/messages/{message_id}"
 *           body: "*"
 *         };
 *       }
 *     }
 *     message Message {
 *       string message_id = 1;
 *       string text = 2;
 *     }
 * The following HTTP JSON to RPC mapping is enabled:
 * HTTP | RPC
 * -----|-----
 * `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")`
 * Note that when using `*` in the body mapping, it is not possible to
 * have HTTP parameters, as all fields not bound by the path end in
 * the body. This makes this option more rarely used in practice of
 * defining REST APIs. The common usage of `*` is in custom methods
 * which don't use the URL at all for transferring data.
 * It is possible to define multiple HTTP methods for one RPC by using
 * the `additional_bindings` option. Example:
 *     service Messaging {
 *       rpc GetMessage(GetMessageRequest) returns (Message) {
 *         option (google.api.http) = {
 *           get: "/v1/messages/{message_id}"
 *           additional_bindings {
 *             get: "/v1/users/{user_id}/messages/{message_id}"
 *           }
 *         };
 *       }
 *     }
 *     message GetMessageRequest {
 *       string message_id = 1;
 *       string user_id = 2;
 *     }
 * This enables the following two alternative HTTP JSON to RPC
 * mappings:
 * HTTP | RPC
 * -----|-----
 * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
 * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")`
 * # Rules for HTTP mapping
 * The rules for mapping HTTP path, query parameters, and body fields
 * to the request message are as follows:
 * 1. The `body` field specifies either `*` or a field path, or is
 *    omitted. If omitted, it indicates there is no HTTP request body.
 * 2. Leaf fields (recursive expansion of nested messages in the
 *    request) can be classified into three types:
 *     (a) Matched in the URL template.
 *     (b) Covered by body (if body is `*`, everything except (a) fields;
 *         else everything under the body field)
 *     (c) All other fields.
 * 3. URL query parameters found in the HTTP request are mapped to (c) fields.
 * 4. Any body sent with an HTTP request can contain only (b) fields.
 * The syntax of the path template is as follows:
 *     Template = "/" Segments [ Verb ] ;
 *     Segments = Segment { "/" Segment } ;
 *     Segment  = "*" | "**" | LITERAL | Variable ;
 *     Variable = "{" FieldPath [ "=" Segments ] "}" ;
 *     FieldPath = IDENT { "." IDENT } ;
 *     Verb     = ":" LITERAL ;
 * The syntax `*` matches a single path segment. The syntax `**` matches zero
 * or more path segments, which must be the last part of the path except the
 * `Verb`. The syntax `LITERAL` matches literal text in the path.
 * The syntax `Variable` matches part of the URL path as specified by its
 * template. A variable template must not contain other variables. If a variable
 * matches a single path segment, its template may be omitted, e.g. `{var}`
 * is equivalent to `{var=*}`.
 * If a variable contains exactly one path segment, such as `"{var}"` or
 * `"{var=*}"`, when such a variable is expanded into a URL path, all characters
 * except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the
 * Discovery Document as `{var}`.
 * If a variable contains one or more path segments, such as `"{var=foo/*}"`
 * or `"{var=**}"`, when such a variable is expanded into a URL path, all
 * characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables
 * show up in the Discovery Document as `{+var}`.
 * NOTE: While the single segment variable matches the semantics of
 * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
 * Simple String Expansion, the multi segment variable **does not** match
 * RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion
 * does not expand special characters like `?` and `#`, which would lead
 * to invalid URLs.
 * NOTE: the field paths in variables and in the `body` must not refer to
 * repeated fields or map fields.
 * 
* * Protobuf type {@code google.api.HttpRule} */ public final class HttpRule extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.HttpRule) HttpRuleOrBuilder { private static final long serialVersionUID = 0L; // Use HttpRule.newBuilder() to construct. private HttpRule(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HttpRule() { selector_ = ""; body_ = ""; additionalBindings_ = java.util.Collections.emptyList(); } @java.lang.Override public final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HttpRule( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); selector_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); patternCase_ = 2; pattern_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); patternCase_ = 3; pattern_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); patternCase_ = 4; pattern_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); patternCase_ = 5; pattern_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); patternCase_ = 6; pattern_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); body_ = s; break; } case 66: { nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.Builder subBuilder = null; if (patternCase_ == 8) { subBuilder = ((nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern) pattern_).toBuilder(); } pattern_ = input.readMessage(nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern) pattern_); pattern_ = subBuilder.buildPartial(); } patternCase_ = 8; break; } case 90: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { additionalBindings_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } additionalBindings_.add( input.readMessage(nl.topicus.jdbc.shaded.com.google.api.HttpRule.parser(), extensionRegistry)); break; } } } } catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { additionalBindings_ = java.util.Collections.unmodifiableList(additionalBindings_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.api.HttpProto.internal_static_google_api_HttpRule_descriptor; } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.api.HttpProto.internal_static_google_api_HttpRule_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.api.HttpRule.class, nl.topicus.jdbc.shaded.com.google.api.HttpRule.Builder.class); } private int bitField0_; private int patternCase_ = 0; private java.lang.Object pattern_; public enum PatternCase implements nl.topicus.jdbc.shaded.com.google.protobuf.Internal.EnumLite { GET(2), PUT(3), POST(4), DELETE(5), PATCH(6), CUSTOM(8), PATTERN_NOT_SET(0); private final int value; private PatternCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PatternCase valueOf(int value) { return forNumber(value); } public static PatternCase forNumber(int value) { switch (value) { case 2: return GET; case 3: return PUT; case 4: return POST; case 5: return DELETE; case 6: return PATCH; case 8: return CUSTOM; case 0: return PATTERN_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PatternCase getPatternCase() { return PatternCase.forNumber( patternCase_); } public static final int SELECTOR_FIELD_NUMBER = 1; private volatile java.lang.Object selector_; /** *
   * Selects methods to which this rule applies.
   * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
   * 
* * string selector = 1; */ public java.lang.String getSelector() { java.lang.Object ref = selector_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } } /** *
   * Selects methods to which this rule applies.
   * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
   * 
* * string selector = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getSelectorBytes() { java.lang.Object ref = selector_; if (ref instanceof java.lang.String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); selector_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } public static final int GET_FIELD_NUMBER = 2; /** *
   * Used for listing and getting information about resources.
   * 
* * string get = 2; */ public java.lang.String getGet() { java.lang.Object ref = ""; if (patternCase_ == 2) { ref = pattern_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 2) { pattern_ = s; } return s; } } /** *
   * Used for listing and getting information about resources.
   * 
* * string get = 2; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getGetBytes() { java.lang.Object ref = ""; if (patternCase_ == 2) { ref = pattern_; } if (ref instanceof java.lang.String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (patternCase_ == 2) { pattern_ = b; } return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } public static final int PUT_FIELD_NUMBER = 3; /** *
   * Used for updating a resource.
   * 
* * string put = 3; */ public java.lang.String getPut() { java.lang.Object ref = ""; if (patternCase_ == 3) { ref = pattern_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 3) { pattern_ = s; } return s; } } /** *
   * Used for updating a resource.
   * 
* * string put = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getPutBytes() { java.lang.Object ref = ""; if (patternCase_ == 3) { ref = pattern_; } if (ref instanceof java.lang.String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (patternCase_ == 3) { pattern_ = b; } return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } public static final int POST_FIELD_NUMBER = 4; /** *
   * Used for creating a resource.
   * 
* * string post = 4; */ public java.lang.String getPost() { java.lang.Object ref = ""; if (patternCase_ == 4) { ref = pattern_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 4) { pattern_ = s; } return s; } } /** *
   * Used for creating a resource.
   * 
* * string post = 4; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getPostBytes() { java.lang.Object ref = ""; if (patternCase_ == 4) { ref = pattern_; } if (ref instanceof java.lang.String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (patternCase_ == 4) { pattern_ = b; } return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } public static final int DELETE_FIELD_NUMBER = 5; /** *
   * Used for deleting a resource.
   * 
* * string delete = 5; */ public java.lang.String getDelete() { java.lang.Object ref = ""; if (patternCase_ == 5) { ref = pattern_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 5) { pattern_ = s; } return s; } } /** *
   * Used for deleting a resource.
   * 
* * string delete = 5; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getDeleteBytes() { java.lang.Object ref = ""; if (patternCase_ == 5) { ref = pattern_; } if (ref instanceof java.lang.String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (patternCase_ == 5) { pattern_ = b; } return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } public static final int PATCH_FIELD_NUMBER = 6; /** *
   * Used for updating a resource.
   * 
* * string patch = 6; */ public java.lang.String getPatch() { java.lang.Object ref = ""; if (patternCase_ == 6) { ref = pattern_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 6) { pattern_ = s; } return s; } } /** *
   * Used for updating a resource.
   * 
* * string patch = 6; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getPatchBytes() { java.lang.Object ref = ""; if (patternCase_ == 6) { ref = pattern_; } if (ref instanceof java.lang.String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (patternCase_ == 6) { pattern_ = b; } return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } public static final int CUSTOM_FIELD_NUMBER = 8; /** *
   * The custom pattern is used for specifying an HTTP method that is not
   * included in the `pattern` field, such as HEAD, or "*" to leave the
   * HTTP method unspecified for this rule. The wild-card rule is useful
   * for services that provide content to Web (HTML) clients.
   * 
* * .google.api.CustomHttpPattern custom = 8; */ public boolean hasCustom() { return patternCase_ == 8; } /** *
   * The custom pattern is used for specifying an HTTP method that is not
   * included in the `pattern` field, such as HEAD, or "*" to leave the
   * HTTP method unspecified for this rule. The wild-card rule is useful
   * for services that provide content to Web (HTML) clients.
   * 
* * .google.api.CustomHttpPattern custom = 8; */ public nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern getCustom() { if (patternCase_ == 8) { return (nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern) pattern_; } return nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.getDefaultInstance(); } /** *
   * The custom pattern is used for specifying an HTTP method that is not
   * included in the `pattern` field, such as HEAD, or "*" to leave the
   * HTTP method unspecified for this rule. The wild-card rule is useful
   * for services that provide content to Web (HTML) clients.
   * 
* * .google.api.CustomHttpPattern custom = 8; */ public nl.topicus.jdbc.shaded.com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() { if (patternCase_ == 8) { return (nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern) pattern_; } return nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.getDefaultInstance(); } public static final int BODY_FIELD_NUMBER = 7; private volatile java.lang.Object body_; /** *
   * The name of the request field whose value is mapped to the HTTP body, or
   * `*` for mapping all fields not captured by the path pattern to the HTTP
   * body. NOTE: the referred field must not be a repeated field and must be
   * present at the top-level of request message type.
   * 
* * string body = 7; */ public java.lang.String getBody() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** *
   * The name of the request field whose value is mapped to the HTTP body, or
   * `*` for mapping all fields not captured by the path pattern to the HTTP
   * body. NOTE: the referred field must not be a repeated field and must be
   * present at the top-level of request message type.
   * 
* * string body = 7; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); body_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } public static final int ADDITIONAL_BINDINGS_FIELD_NUMBER = 11; private java.util.List additionalBindings_; /** *
   * Additional HTTP bindings for the selector. Nested bindings must
   * not contain an `additional_bindings` field themselves (that is,
   * the nesting may only be one level deep).
   * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public java.util.List getAdditionalBindingsList() { return additionalBindings_; } /** *
   * Additional HTTP bindings for the selector. Nested bindings must
   * not contain an `additional_bindings` field themselves (that is,
   * the nesting may only be one level deep).
   * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public java.util.List getAdditionalBindingsOrBuilderList() { return additionalBindings_; } /** *
   * Additional HTTP bindings for the selector. Nested bindings must
   * not contain an `additional_bindings` field themselves (that is,
   * the nesting may only be one level deep).
   * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public int getAdditionalBindingsCount() { return additionalBindings_.size(); } /** *
   * Additional HTTP bindings for the selector. Nested bindings must
   * not contain an `additional_bindings` field themselves (that is,
   * the nesting may only be one level deep).
   * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public nl.topicus.jdbc.shaded.com.google.api.HttpRule getAdditionalBindings(int index) { return additionalBindings_.get(index); } /** *
   * Additional HTTP bindings for the selector. Nested bindings must
   * not contain an `additional_bindings` field themselves (that is,
   * the nesting may only be one level deep).
   * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public nl.topicus.jdbc.shaded.com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder( int index) { return additionalBindings_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSelectorBytes().isEmpty()) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_); } if (patternCase_ == 2) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pattern_); } if (patternCase_ == 3) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pattern_); } if (patternCase_ == 4) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pattern_); } if (patternCase_ == 5) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pattern_); } if (patternCase_ == 6) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pattern_); } if (!getBodyBytes().isEmpty()) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 7, body_); } if (patternCase_ == 8) { output.writeMessage(8, (nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern) pattern_); } for (int i = 0; i < additionalBindings_.size(); i++) { output.writeMessage(11, additionalBindings_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getSelectorBytes().isEmpty()) { size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_); } if (patternCase_ == 2) { size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pattern_); } if (patternCase_ == 3) { size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pattern_); } if (patternCase_ == 4) { size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pattern_); } if (patternCase_ == 5) { size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pattern_); } if (patternCase_ == 6) { size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pattern_); } if (!getBodyBytes().isEmpty()) { size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(7, body_); } if (patternCase_ == 8) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .computeMessageSize(8, (nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern) pattern_); } for (int i = 0; i < additionalBindings_.size(); i++) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .computeMessageSize(11, additionalBindings_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof nl.topicus.jdbc.shaded.com.google.api.HttpRule)) { return super.equals(obj); } nl.topicus.jdbc.shaded.com.google.api.HttpRule other = (nl.topicus.jdbc.shaded.com.google.api.HttpRule) obj; boolean result = true; result = result && getSelector() .equals(other.getSelector()); result = result && getBody() .equals(other.getBody()); result = result && getAdditionalBindingsList() .equals(other.getAdditionalBindingsList()); result = result && getPatternCase().equals( other.getPatternCase()); if (!result) return false; switch (patternCase_) { case 2: result = result && getGet() .equals(other.getGet()); break; case 3: result = result && getPut() .equals(other.getPut()); break; case 4: result = result && getPost() .equals(other.getPost()); break; case 5: result = result && getDelete() .equals(other.getDelete()); break; case 6: result = result && getPatch() .equals(other.getPatch()); break; case 8: result = result && getCustom() .equals(other.getCustom()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SELECTOR_FIELD_NUMBER; hash = (53 * hash) + getSelector().hashCode(); hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); if (getAdditionalBindingsCount() > 0) { hash = (37 * hash) + ADDITIONAL_BINDINGS_FIELD_NUMBER; hash = (53 * hash) + getAdditionalBindingsList().hashCode(); } switch (patternCase_) { case 2: hash = (37 * hash) + GET_FIELD_NUMBER; hash = (53 * hash) + getGet().hashCode(); break; case 3: hash = (37 * hash) + PUT_FIELD_NUMBER; hash = (53 * hash) + getPut().hashCode(); break; case 4: hash = (37 * hash) + POST_FIELD_NUMBER; hash = (53 * hash) + getPost().hashCode(); break; case 5: hash = (37 * hash) + DELETE_FIELD_NUMBER; hash = (53 * hash) + getDelete().hashCode(); break; case 6: hash = (37 * hash) + PATCH_FIELD_NUMBER; hash = (53 * hash) + getPatch().hashCode(); break; case 8: hash = (37 * hash) + CUSTOM_FIELD_NUMBER; hash = (53 * hash) + getCustom().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static nl.topicus.jdbc.shaded.com.google.api.HttpRule parseFrom( java.nio.ByteBuffer data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.api.HttpRule parseFrom( java.nio.ByteBuffer data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.api.HttpRule parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.api.HttpRule parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.api.HttpRule parseFrom(byte[] data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.api.HttpRule parseFrom( byte[] data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.api.HttpRule parseFrom(java.io.InputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.api.HttpRule parseFrom( java.io.InputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.api.HttpRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.api.HttpRule parseDelimitedFrom( java.io.InputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.api.HttpRule parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.api.HttpRule parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(nl.topicus.jdbc.shaded.com.google.api.HttpRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * `HttpRule` defines the mapping of an RPC method to one or more HTTP
   * REST API methods. The mapping specifies how different portions of the RPC
   * request message are mapped to URL path, URL query parameters, and
   * HTTP request body. The mapping is typically specified as an
   * `google.api.http` annotation on the RPC method,
   * see "google/api/annotations.proto" for details.
   * The mapping consists of a field specifying the path template and
   * method kind.  The path template can refer to fields in the request
   * message, as in the example below which describes a REST GET
   * operation on a resource collection of messages:
   *     service Messaging {
   *       rpc GetMessage(GetMessageRequest) returns (Message) {
   *         option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}";
   *       }
   *     }
   *     message GetMessageRequest {
   *       message SubMessage {
   *         string subfield = 1;
   *       }
   *       string message_id = 1; // mapped to the URL
   *       SubMessage sub = 2;    // `sub.subfield` is url-mapped
   *     }
   *     message Message {
   *       string text = 1; // content of the resource
   *     }
   * The same http annotation can alternatively be expressed inside the
   * `GRPC API Configuration` YAML file.
   *     http:
   *       rules:
   *         - selector: <proto_package_name>.Messaging.GetMessage
   *           get: /v1/messages/{message_id}/{sub.subfield}
   * This definition enables an automatic, bidrectional mapping of HTTP
   * JSON to RPC. Example:
   * HTTP | RPC
   * -----|-----
   * `GET /v1/messages/123456/foo`  | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))`
   * In general, not only fields but also field paths can be referenced
   * from a path pattern. Fields mapped to the path pattern cannot be
   * repeated and must have a primitive (non-message) type.
   * Any fields in the request message which are not bound by the path
   * pattern automatically become (optional) HTTP query
   * parameters. Assume the following definition of the request message:
   *     service Messaging {
   *       rpc GetMessage(GetMessageRequest) returns (Message) {
   *         option (google.api.http).get = "/v1/messages/{message_id}";
   *       }
   *     }
   *     message GetMessageRequest {
   *       message SubMessage {
   *         string subfield = 1;
   *       }
   *       string message_id = 1; // mapped to the URL
   *       int64 revision = 2;    // becomes a parameter
   *       SubMessage sub = 3;    // `sub.subfield` becomes a parameter
   *     }
   * This enables a HTTP JSON to RPC mapping as below:
   * HTTP | RPC
   * -----|-----
   * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))`
   * Note that fields which are mapped to HTTP parameters must have a
   * primitive type or a repeated primitive type. Message types are not
   * allowed. In the case of a repeated type, the parameter can be
   * repeated in the URL, as in `...?param=A&param=B`.
   * For HTTP method kinds which allow a request body, the `body` field
   * specifies the mapping. Consider a REST update method on the
   * message resource collection:
   *     service Messaging {
   *       rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
   *         option (google.api.http) = {
   *           put: "/v1/messages/{message_id}"
   *           body: "message"
   *         };
   *       }
   *     }
   *     message UpdateMessageRequest {
   *       string message_id = 1; // mapped to the URL
   *       Message message = 2;   // mapped to the body
   *     }
   * The following HTTP JSON to RPC mapping is enabled, where the
   * representation of the JSON in the request body is determined by
   * protos JSON encoding:
   * HTTP | RPC
   * -----|-----
   * `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
   * The special name `*` can be used in the body mapping to define that
   * every field not bound by the path template should be mapped to the
   * request body.  This enables the following alternative definition of
   * the update method:
   *     service Messaging {
   *       rpc UpdateMessage(Message) returns (Message) {
   *         option (google.api.http) = {
   *           put: "/v1/messages/{message_id}"
   *           body: "*"
   *         };
   *       }
   *     }
   *     message Message {
   *       string message_id = 1;
   *       string text = 2;
   *     }
   * The following HTTP JSON to RPC mapping is enabled:
   * HTTP | RPC
   * -----|-----
   * `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")`
   * Note that when using `*` in the body mapping, it is not possible to
   * have HTTP parameters, as all fields not bound by the path end in
   * the body. This makes this option more rarely used in practice of
   * defining REST APIs. The common usage of `*` is in custom methods
   * which don't use the URL at all for transferring data.
   * It is possible to define multiple HTTP methods for one RPC by using
   * the `additional_bindings` option. Example:
   *     service Messaging {
   *       rpc GetMessage(GetMessageRequest) returns (Message) {
   *         option (google.api.http) = {
   *           get: "/v1/messages/{message_id}"
   *           additional_bindings {
   *             get: "/v1/users/{user_id}/messages/{message_id}"
   *           }
   *         };
   *       }
   *     }
   *     message GetMessageRequest {
   *       string message_id = 1;
   *       string user_id = 2;
   *     }
   * This enables the following two alternative HTTP JSON to RPC
   * mappings:
   * HTTP | RPC
   * -----|-----
   * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
   * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")`
   * # Rules for HTTP mapping
   * The rules for mapping HTTP path, query parameters, and body fields
   * to the request message are as follows:
   * 1. The `body` field specifies either `*` or a field path, or is
   *    omitted. If omitted, it indicates there is no HTTP request body.
   * 2. Leaf fields (recursive expansion of nested messages in the
   *    request) can be classified into three types:
   *     (a) Matched in the URL template.
   *     (b) Covered by body (if body is `*`, everything except (a) fields;
   *         else everything under the body field)
   *     (c) All other fields.
   * 3. URL query parameters found in the HTTP request are mapped to (c) fields.
   * 4. Any body sent with an HTTP request can contain only (b) fields.
   * The syntax of the path template is as follows:
   *     Template = "/" Segments [ Verb ] ;
   *     Segments = Segment { "/" Segment } ;
   *     Segment  = "*" | "**" | LITERAL | Variable ;
   *     Variable = "{" FieldPath [ "=" Segments ] "}" ;
   *     FieldPath = IDENT { "." IDENT } ;
   *     Verb     = ":" LITERAL ;
   * The syntax `*` matches a single path segment. The syntax `**` matches zero
   * or more path segments, which must be the last part of the path except the
   * `Verb`. The syntax `LITERAL` matches literal text in the path.
   * The syntax `Variable` matches part of the URL path as specified by its
   * template. A variable template must not contain other variables. If a variable
   * matches a single path segment, its template may be omitted, e.g. `{var}`
   * is equivalent to `{var=*}`.
   * If a variable contains exactly one path segment, such as `"{var}"` or
   * `"{var=*}"`, when such a variable is expanded into a URL path, all characters
   * except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the
   * Discovery Document as `{var}`.
   * If a variable contains one or more path segments, such as `"{var=foo/*}"`
   * or `"{var=**}"`, when such a variable is expanded into a URL path, all
   * characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables
   * show up in the Discovery Document as `{+var}`.
   * NOTE: While the single segment variable matches the semantics of
   * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
   * Simple String Expansion, the multi segment variable **does not** match
   * RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion
   * does not expand special characters like `?` and `#`, which would lead
   * to invalid URLs.
   * NOTE: the field paths in variables and in the `body` must not refer to
   * repeated fields or map fields.
   * 
* * Protobuf type {@code google.api.HttpRule} */ public static final class Builder extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.HttpRule) nl.topicus.jdbc.shaded.com.google.api.HttpRuleOrBuilder { public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.api.HttpProto.internal_static_google_api_HttpRule_descriptor; } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.api.HttpProto.internal_static_google_api_HttpRule_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.api.HttpRule.class, nl.topicus.jdbc.shaded.com.google.api.HttpRule.Builder.class); } // Construct using nl.topicus.jdbc.shaded.com.google.api.HttpRule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAdditionalBindingsFieldBuilder(); } } public Builder clear() { super.clear(); selector_ = ""; body_ = ""; if (additionalBindingsBuilder_ == null) { additionalBindings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { additionalBindingsBuilder_.clear(); } patternCase_ = 0; pattern_ = null; return this; } public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return nl.topicus.jdbc.shaded.com.google.api.HttpProto.internal_static_google_api_HttpRule_descriptor; } public nl.topicus.jdbc.shaded.com.google.api.HttpRule getDefaultInstanceForType() { return nl.topicus.jdbc.shaded.com.google.api.HttpRule.getDefaultInstance(); } public nl.topicus.jdbc.shaded.com.google.api.HttpRule build() { nl.topicus.jdbc.shaded.com.google.api.HttpRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public nl.topicus.jdbc.shaded.com.google.api.HttpRule buildPartial() { nl.topicus.jdbc.shaded.com.google.api.HttpRule result = new nl.topicus.jdbc.shaded.com.google.api.HttpRule(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.selector_ = selector_; if (patternCase_ == 2) { result.pattern_ = pattern_; } if (patternCase_ == 3) { result.pattern_ = pattern_; } if (patternCase_ == 4) { result.pattern_ = pattern_; } if (patternCase_ == 5) { result.pattern_ = pattern_; } if (patternCase_ == 6) { result.pattern_ = pattern_; } if (patternCase_ == 8) { if (customBuilder_ == null) { result.pattern_ = pattern_; } else { result.pattern_ = customBuilder_.build(); } } result.body_ = body_; if (additionalBindingsBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100)) { additionalBindings_ = java.util.Collections.unmodifiableList(additionalBindings_); bitField0_ = (bitField0_ & ~0x00000100); } result.additionalBindings_ = additionalBindings_; } else { result.additionalBindings_ = additionalBindingsBuilder_.build(); } result.bitField0_ = to_bitField0_; result.patternCase_ = patternCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.protobuf.Message other) { if (other instanceof nl.topicus.jdbc.shaded.com.google.api.HttpRule) { return mergeFrom((nl.topicus.jdbc.shaded.com.google.api.HttpRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.api.HttpRule other) { if (other == nl.topicus.jdbc.shaded.com.google.api.HttpRule.getDefaultInstance()) return this; if (!other.getSelector().isEmpty()) { selector_ = other.selector_; onChanged(); } if (!other.getBody().isEmpty()) { body_ = other.body_; onChanged(); } if (additionalBindingsBuilder_ == null) { if (!other.additionalBindings_.isEmpty()) { if (additionalBindings_.isEmpty()) { additionalBindings_ = other.additionalBindings_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureAdditionalBindingsIsMutable(); additionalBindings_.addAll(other.additionalBindings_); } onChanged(); } } else { if (!other.additionalBindings_.isEmpty()) { if (additionalBindingsBuilder_.isEmpty()) { additionalBindingsBuilder_.dispose(); additionalBindingsBuilder_ = null; additionalBindings_ = other.additionalBindings_; bitField0_ = (bitField0_ & ~0x00000100); additionalBindingsBuilder_ = nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAdditionalBindingsFieldBuilder() : null; } else { additionalBindingsBuilder_.addAllMessages(other.additionalBindings_); } } } switch (other.getPatternCase()) { case GET: { patternCase_ = 2; pattern_ = other.pattern_; onChanged(); break; } case PUT: { patternCase_ = 3; pattern_ = other.pattern_; onChanged(); break; } case POST: { patternCase_ = 4; pattern_ = other.pattern_; onChanged(); break; } case DELETE: { patternCase_ = 5; pattern_ = other.pattern_; onChanged(); break; } case PATCH: { patternCase_ = 6; pattern_ = other.pattern_; onChanged(); break; } case CUSTOM: { mergeCustom(other.getCustom()); break; } case PATTERN_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { nl.topicus.jdbc.shaded.com.google.api.HttpRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (nl.topicus.jdbc.shaded.com.google.api.HttpRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int patternCase_ = 0; private java.lang.Object pattern_; public PatternCase getPatternCase() { return PatternCase.forNumber( patternCase_); } public Builder clearPattern() { patternCase_ = 0; pattern_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object selector_ = ""; /** *
     * Selects methods to which this rule applies.
     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
     * 
* * string selector = 1; */ public java.lang.String getSelector() { java.lang.Object ref = selector_; if (!(ref instanceof java.lang.String)) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Selects methods to which this rule applies.
     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
     * 
* * string selector = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getSelectorBytes() { java.lang.Object ref = selector_; if (ref instanceof String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); selector_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } /** *
     * Selects methods to which this rule applies.
     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
     * 
* * string selector = 1; */ public Builder setSelector( java.lang.String value) { if (value == null) { throw new NullPointerException(); } selector_ = value; onChanged(); return this; } /** *
     * Selects methods to which this rule applies.
     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
     * 
* * string selector = 1; */ public Builder clearSelector() { selector_ = getDefaultInstance().getSelector(); onChanged(); return this; } /** *
     * Selects methods to which this rule applies.
     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
     * 
* * string selector = 1; */ public Builder setSelectorBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); selector_ = value; onChanged(); return this; } /** *
     * Used for listing and getting information about resources.
     * 
* * string get = 2; */ public java.lang.String getGet() { java.lang.Object ref = ""; if (patternCase_ == 2) { ref = pattern_; } if (!(ref instanceof java.lang.String)) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 2) { pattern_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Used for listing and getting information about resources.
     * 
* * string get = 2; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getGetBytes() { java.lang.Object ref = ""; if (patternCase_ == 2) { ref = pattern_; } if (ref instanceof String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (patternCase_ == 2) { pattern_ = b; } return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } /** *
     * Used for listing and getting information about resources.
     * 
* * string get = 2; */ public Builder setGet( java.lang.String value) { if (value == null) { throw new NullPointerException(); } patternCase_ = 2; pattern_ = value; onChanged(); return this; } /** *
     * Used for listing and getting information about resources.
     * 
* * string get = 2; */ public Builder clearGet() { if (patternCase_ == 2) { patternCase_ = 0; pattern_ = null; onChanged(); } return this; } /** *
     * Used for listing and getting information about resources.
     * 
* * string get = 2; */ public Builder setGetBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); patternCase_ = 2; pattern_ = value; onChanged(); return this; } /** *
     * Used for updating a resource.
     * 
* * string put = 3; */ public java.lang.String getPut() { java.lang.Object ref = ""; if (patternCase_ == 3) { ref = pattern_; } if (!(ref instanceof java.lang.String)) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 3) { pattern_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Used for updating a resource.
     * 
* * string put = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getPutBytes() { java.lang.Object ref = ""; if (patternCase_ == 3) { ref = pattern_; } if (ref instanceof String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (patternCase_ == 3) { pattern_ = b; } return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } /** *
     * Used for updating a resource.
     * 
* * string put = 3; */ public Builder setPut( java.lang.String value) { if (value == null) { throw new NullPointerException(); } patternCase_ = 3; pattern_ = value; onChanged(); return this; } /** *
     * Used for updating a resource.
     * 
* * string put = 3; */ public Builder clearPut() { if (patternCase_ == 3) { patternCase_ = 0; pattern_ = null; onChanged(); } return this; } /** *
     * Used for updating a resource.
     * 
* * string put = 3; */ public Builder setPutBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); patternCase_ = 3; pattern_ = value; onChanged(); return this; } /** *
     * Used for creating a resource.
     * 
* * string post = 4; */ public java.lang.String getPost() { java.lang.Object ref = ""; if (patternCase_ == 4) { ref = pattern_; } if (!(ref instanceof java.lang.String)) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 4) { pattern_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Used for creating a resource.
     * 
* * string post = 4; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getPostBytes() { java.lang.Object ref = ""; if (patternCase_ == 4) { ref = pattern_; } if (ref instanceof String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (patternCase_ == 4) { pattern_ = b; } return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } /** *
     * Used for creating a resource.
     * 
* * string post = 4; */ public Builder setPost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } patternCase_ = 4; pattern_ = value; onChanged(); return this; } /** *
     * Used for creating a resource.
     * 
* * string post = 4; */ public Builder clearPost() { if (patternCase_ == 4) { patternCase_ = 0; pattern_ = null; onChanged(); } return this; } /** *
     * Used for creating a resource.
     * 
* * string post = 4; */ public Builder setPostBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); patternCase_ = 4; pattern_ = value; onChanged(); return this; } /** *
     * Used for deleting a resource.
     * 
* * string delete = 5; */ public java.lang.String getDelete() { java.lang.Object ref = ""; if (patternCase_ == 5) { ref = pattern_; } if (!(ref instanceof java.lang.String)) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 5) { pattern_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Used for deleting a resource.
     * 
* * string delete = 5; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getDeleteBytes() { java.lang.Object ref = ""; if (patternCase_ == 5) { ref = pattern_; } if (ref instanceof String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (patternCase_ == 5) { pattern_ = b; } return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } /** *
     * Used for deleting a resource.
     * 
* * string delete = 5; */ public Builder setDelete( java.lang.String value) { if (value == null) { throw new NullPointerException(); } patternCase_ = 5; pattern_ = value; onChanged(); return this; } /** *
     * Used for deleting a resource.
     * 
* * string delete = 5; */ public Builder clearDelete() { if (patternCase_ == 5) { patternCase_ = 0; pattern_ = null; onChanged(); } return this; } /** *
     * Used for deleting a resource.
     * 
* * string delete = 5; */ public Builder setDeleteBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); patternCase_ = 5; pattern_ = value; onChanged(); return this; } /** *
     * Used for updating a resource.
     * 
* * string patch = 6; */ public java.lang.String getPatch() { java.lang.Object ref = ""; if (patternCase_ == 6) { ref = pattern_; } if (!(ref instanceof java.lang.String)) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (patternCase_ == 6) { pattern_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Used for updating a resource.
     * 
* * string patch = 6; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getPatchBytes() { java.lang.Object ref = ""; if (patternCase_ == 6) { ref = pattern_; } if (ref instanceof String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (patternCase_ == 6) { pattern_ = b; } return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } /** *
     * Used for updating a resource.
     * 
* * string patch = 6; */ public Builder setPatch( java.lang.String value) { if (value == null) { throw new NullPointerException(); } patternCase_ = 6; pattern_ = value; onChanged(); return this; } /** *
     * Used for updating a resource.
     * 
* * string patch = 6; */ public Builder clearPatch() { if (patternCase_ == 6) { patternCase_ = 0; pattern_ = null; onChanged(); } return this; } /** *
     * Used for updating a resource.
     * 
* * string patch = 6; */ public Builder setPatchBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); patternCase_ = 6; pattern_ = value; onChanged(); return this; } private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern, nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.Builder, nl.topicus.jdbc.shaded.com.google.api.CustomHttpPatternOrBuilder> customBuilder_; /** *
     * The custom pattern is used for specifying an HTTP method that is not
     * included in the `pattern` field, such as HEAD, or "*" to leave the
     * HTTP method unspecified for this rule. The wild-card rule is useful
     * for services that provide content to Web (HTML) clients.
     * 
* * .google.api.CustomHttpPattern custom = 8; */ public boolean hasCustom() { return patternCase_ == 8; } /** *
     * The custom pattern is used for specifying an HTTP method that is not
     * included in the `pattern` field, such as HEAD, or "*" to leave the
     * HTTP method unspecified for this rule. The wild-card rule is useful
     * for services that provide content to Web (HTML) clients.
     * 
* * .google.api.CustomHttpPattern custom = 8; */ public nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern getCustom() { if (customBuilder_ == null) { if (patternCase_ == 8) { return (nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern) pattern_; } return nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.getDefaultInstance(); } else { if (patternCase_ == 8) { return customBuilder_.getMessage(); } return nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.getDefaultInstance(); } } /** *
     * The custom pattern is used for specifying an HTTP method that is not
     * included in the `pattern` field, such as HEAD, or "*" to leave the
     * HTTP method unspecified for this rule. The wild-card rule is useful
     * for services that provide content to Web (HTML) clients.
     * 
* * .google.api.CustomHttpPattern custom = 8; */ public Builder setCustom(nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern value) { if (customBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pattern_ = value; onChanged(); } else { customBuilder_.setMessage(value); } patternCase_ = 8; return this; } /** *
     * The custom pattern is used for specifying an HTTP method that is not
     * included in the `pattern` field, such as HEAD, or "*" to leave the
     * HTTP method unspecified for this rule. The wild-card rule is useful
     * for services that provide content to Web (HTML) clients.
     * 
* * .google.api.CustomHttpPattern custom = 8; */ public Builder setCustom( nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.Builder builderForValue) { if (customBuilder_ == null) { pattern_ = builderForValue.build(); onChanged(); } else { customBuilder_.setMessage(builderForValue.build()); } patternCase_ = 8; return this; } /** *
     * The custom pattern is used for specifying an HTTP method that is not
     * included in the `pattern` field, such as HEAD, or "*" to leave the
     * HTTP method unspecified for this rule. The wild-card rule is useful
     * for services that provide content to Web (HTML) clients.
     * 
* * .google.api.CustomHttpPattern custom = 8; */ public Builder mergeCustom(nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern value) { if (customBuilder_ == null) { if (patternCase_ == 8 && pattern_ != nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.getDefaultInstance()) { pattern_ = nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.newBuilder((nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern) pattern_) .mergeFrom(value).buildPartial(); } else { pattern_ = value; } onChanged(); } else { if (patternCase_ == 8) { customBuilder_.mergeFrom(value); } customBuilder_.setMessage(value); } patternCase_ = 8; return this; } /** *
     * The custom pattern is used for specifying an HTTP method that is not
     * included in the `pattern` field, such as HEAD, or "*" to leave the
     * HTTP method unspecified for this rule. The wild-card rule is useful
     * for services that provide content to Web (HTML) clients.
     * 
* * .google.api.CustomHttpPattern custom = 8; */ public Builder clearCustom() { if (customBuilder_ == null) { if (patternCase_ == 8) { patternCase_ = 0; pattern_ = null; onChanged(); } } else { if (patternCase_ == 8) { patternCase_ = 0; pattern_ = null; } customBuilder_.clear(); } return this; } /** *
     * The custom pattern is used for specifying an HTTP method that is not
     * included in the `pattern` field, such as HEAD, or "*" to leave the
     * HTTP method unspecified for this rule. The wild-card rule is useful
     * for services that provide content to Web (HTML) clients.
     * 
* * .google.api.CustomHttpPattern custom = 8; */ public nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.Builder getCustomBuilder() { return getCustomFieldBuilder().getBuilder(); } /** *
     * The custom pattern is used for specifying an HTTP method that is not
     * included in the `pattern` field, such as HEAD, or "*" to leave the
     * HTTP method unspecified for this rule. The wild-card rule is useful
     * for services that provide content to Web (HTML) clients.
     * 
* * .google.api.CustomHttpPattern custom = 8; */ public nl.topicus.jdbc.shaded.com.google.api.CustomHttpPatternOrBuilder getCustomOrBuilder() { if ((patternCase_ == 8) && (customBuilder_ != null)) { return customBuilder_.getMessageOrBuilder(); } else { if (patternCase_ == 8) { return (nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern) pattern_; } return nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.getDefaultInstance(); } } /** *
     * The custom pattern is used for specifying an HTTP method that is not
     * included in the `pattern` field, such as HEAD, or "*" to leave the
     * HTTP method unspecified for this rule. The wild-card rule is useful
     * for services that provide content to Web (HTML) clients.
     * 
* * .google.api.CustomHttpPattern custom = 8; */ private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern, nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.Builder, nl.topicus.jdbc.shaded.com.google.api.CustomHttpPatternOrBuilder> getCustomFieldBuilder() { if (customBuilder_ == null) { if (!(patternCase_ == 8)) { pattern_ = nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.getDefaultInstance(); } customBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern, nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern.Builder, nl.topicus.jdbc.shaded.com.google.api.CustomHttpPatternOrBuilder>( (nl.topicus.jdbc.shaded.com.google.api.CustomHttpPattern) pattern_, getParentForChildren(), isClean()); pattern_ = null; } patternCase_ = 8; onChanged();; return customBuilder_; } private java.lang.Object body_ = ""; /** *
     * The name of the request field whose value is mapped to the HTTP body, or
     * `*` for mapping all fields not captured by the path pattern to the HTTP
     * body. NOTE: the referred field must not be a repeated field and must be
     * present at the top-level of request message type.
     * 
* * string body = 7; */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name of the request field whose value is mapped to the HTTP body, or
     * `*` for mapping all fields not captured by the path pattern to the HTTP
     * body. NOTE: the referred field must not be a repeated field and must be
     * present at the top-level of request message type.
     * 
* * string body = 7; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); body_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } /** *
     * The name of the request field whose value is mapped to the HTTP body, or
     * `*` for mapping all fields not captured by the path pattern to the HTTP
     * body. NOTE: the referred field must not be a repeated field and must be
     * present at the top-level of request message type.
     * 
* * string body = 7; */ public Builder setBody( java.lang.String value) { if (value == null) { throw new NullPointerException(); } body_ = value; onChanged(); return this; } /** *
     * The name of the request field whose value is mapped to the HTTP body, or
     * `*` for mapping all fields not captured by the path pattern to the HTTP
     * body. NOTE: the referred field must not be a repeated field and must be
     * present at the top-level of request message type.
     * 
* * string body = 7; */ public Builder clearBody() { body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** *
     * The name of the request field whose value is mapped to the HTTP body, or
     * `*` for mapping all fields not captured by the path pattern to the HTTP
     * body. NOTE: the referred field must not be a repeated field and must be
     * present at the top-level of request message type.
     * 
* * string body = 7; */ public Builder setBodyBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); body_ = value; onChanged(); return this; } private java.util.List additionalBindings_ = java.util.Collections.emptyList(); private void ensureAdditionalBindingsIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { additionalBindings_ = new java.util.ArrayList(additionalBindings_); bitField0_ |= 0x00000100; } } private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.api.HttpRule, nl.topicus.jdbc.shaded.com.google.api.HttpRule.Builder, nl.topicus.jdbc.shaded.com.google.api.HttpRuleOrBuilder> additionalBindingsBuilder_; /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public java.util.List getAdditionalBindingsList() { if (additionalBindingsBuilder_ == null) { return java.util.Collections.unmodifiableList(additionalBindings_); } else { return additionalBindingsBuilder_.getMessageList(); } } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public int getAdditionalBindingsCount() { if (additionalBindingsBuilder_ == null) { return additionalBindings_.size(); } else { return additionalBindingsBuilder_.getCount(); } } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public nl.topicus.jdbc.shaded.com.google.api.HttpRule getAdditionalBindings(int index) { if (additionalBindingsBuilder_ == null) { return additionalBindings_.get(index); } else { return additionalBindingsBuilder_.getMessage(index); } } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public Builder setAdditionalBindings( int index, nl.topicus.jdbc.shaded.com.google.api.HttpRule value) { if (additionalBindingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAdditionalBindingsIsMutable(); additionalBindings_.set(index, value); onChanged(); } else { additionalBindingsBuilder_.setMessage(index, value); } return this; } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public Builder setAdditionalBindings( int index, nl.topicus.jdbc.shaded.com.google.api.HttpRule.Builder builderForValue) { if (additionalBindingsBuilder_ == null) { ensureAdditionalBindingsIsMutable(); additionalBindings_.set(index, builderForValue.build()); onChanged(); } else { additionalBindingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public Builder addAdditionalBindings(nl.topicus.jdbc.shaded.com.google.api.HttpRule value) { if (additionalBindingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAdditionalBindingsIsMutable(); additionalBindings_.add(value); onChanged(); } else { additionalBindingsBuilder_.addMessage(value); } return this; } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public Builder addAdditionalBindings( int index, nl.topicus.jdbc.shaded.com.google.api.HttpRule value) { if (additionalBindingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAdditionalBindingsIsMutable(); additionalBindings_.add(index, value); onChanged(); } else { additionalBindingsBuilder_.addMessage(index, value); } return this; } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public Builder addAdditionalBindings( nl.topicus.jdbc.shaded.com.google.api.HttpRule.Builder builderForValue) { if (additionalBindingsBuilder_ == null) { ensureAdditionalBindingsIsMutable(); additionalBindings_.add(builderForValue.build()); onChanged(); } else { additionalBindingsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public Builder addAdditionalBindings( int index, nl.topicus.jdbc.shaded.com.google.api.HttpRule.Builder builderForValue) { if (additionalBindingsBuilder_ == null) { ensureAdditionalBindingsIsMutable(); additionalBindings_.add(index, builderForValue.build()); onChanged(); } else { additionalBindingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public Builder addAllAdditionalBindings( java.lang.Iterable values) { if (additionalBindingsBuilder_ == null) { ensureAdditionalBindingsIsMutable(); nl.topicus.jdbc.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll( values, additionalBindings_); onChanged(); } else { additionalBindingsBuilder_.addAllMessages(values); } return this; } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public Builder clearAdditionalBindings() { if (additionalBindingsBuilder_ == null) { additionalBindings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { additionalBindingsBuilder_.clear(); } return this; } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public Builder removeAdditionalBindings(int index) { if (additionalBindingsBuilder_ == null) { ensureAdditionalBindingsIsMutable(); additionalBindings_.remove(index); onChanged(); } else { additionalBindingsBuilder_.remove(index); } return this; } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public nl.topicus.jdbc.shaded.com.google.api.HttpRule.Builder getAdditionalBindingsBuilder( int index) { return getAdditionalBindingsFieldBuilder().getBuilder(index); } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public nl.topicus.jdbc.shaded.com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder( int index) { if (additionalBindingsBuilder_ == null) { return additionalBindings_.get(index); } else { return additionalBindingsBuilder_.getMessageOrBuilder(index); } } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public java.util.List getAdditionalBindingsOrBuilderList() { if (additionalBindingsBuilder_ != null) { return additionalBindingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(additionalBindings_); } } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public nl.topicus.jdbc.shaded.com.google.api.HttpRule.Builder addAdditionalBindingsBuilder() { return getAdditionalBindingsFieldBuilder().addBuilder( nl.topicus.jdbc.shaded.com.google.api.HttpRule.getDefaultInstance()); } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public nl.topicus.jdbc.shaded.com.google.api.HttpRule.Builder addAdditionalBindingsBuilder( int index) { return getAdditionalBindingsFieldBuilder().addBuilder( index, nl.topicus.jdbc.shaded.com.google.api.HttpRule.getDefaultInstance()); } /** *
     * Additional HTTP bindings for the selector. Nested bindings must
     * not contain an `additional_bindings` field themselves (that is,
     * the nesting may only be one level deep).
     * 
* * repeated .google.api.HttpRule additional_bindings = 11; */ public java.util.List getAdditionalBindingsBuilderList() { return getAdditionalBindingsFieldBuilder().getBuilderList(); } private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.api.HttpRule, nl.topicus.jdbc.shaded.com.google.api.HttpRule.Builder, nl.topicus.jdbc.shaded.com.google.api.HttpRuleOrBuilder> getAdditionalBindingsFieldBuilder() { if (additionalBindingsBuilder_ == null) { additionalBindingsBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.api.HttpRule, nl.topicus.jdbc.shaded.com.google.api.HttpRule.Builder, nl.topicus.jdbc.shaded.com.google.api.HttpRuleOrBuilder>( additionalBindings_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); additionalBindings_ = null; } return additionalBindingsBuilder_; } public final Builder setUnknownFields( final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.HttpRule) } // @@protoc_insertion_point(class_scope:google.api.HttpRule) private static final nl.topicus.jdbc.shaded.com.google.api.HttpRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.api.HttpRule(); } public static nl.topicus.jdbc.shaded.com.google.api.HttpRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final nl.topicus.jdbc.shaded.com.google.protobuf.Parser PARSER = new nl.topicus.jdbc.shaded.com.google.protobuf.AbstractParser() { public HttpRule parsePartialFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return new HttpRule(input, extensionRegistry); } }; public static nl.topicus.jdbc.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public nl.topicus.jdbc.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } public nl.topicus.jdbc.shaded.com.google.api.HttpRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy