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

io.envoyproxy.envoy.service.auth.v3.CheckResponse Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/service/auth/v3/external_auth.proto

package io.envoyproxy.envoy.service.auth.v3;

/**
 * 
 * Intended for gRPC and Network Authorization servers ``only``.
 * 
* * Protobuf type {@code envoy.service.auth.v3.CheckResponse} */ public final class CheckResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.auth.v3.CheckResponse) CheckResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CheckResponse.newBuilder() to construct. private CheckResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CheckResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CheckResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.rpc.Status.Builder subBuilder = null; if (status_ != null) { subBuilder = status_.toBuilder(); } status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(status_); status_ = subBuilder.buildPartial(); } break; } case 18: { io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.Builder subBuilder = null; if (httpResponseCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse) httpResponse_).toBuilder(); } httpResponse_ = input.readMessage(io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse) httpResponse_); httpResponse_ = subBuilder.buildPartial(); } httpResponseCase_ = 2; break; } case 26: { io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.Builder subBuilder = null; if (httpResponseCase_ == 3) { subBuilder = ((io.envoyproxy.envoy.service.auth.v3.OkHttpResponse) httpResponse_).toBuilder(); } httpResponse_ = input.readMessage(io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.auth.v3.OkHttpResponse) httpResponse_); httpResponse_ = subBuilder.buildPartial(); } httpResponseCase_ = 3; break; } case 34: { com.google.protobuf.Struct.Builder subBuilder = null; if (dynamicMetadata_ != null) { subBuilder = dynamicMetadata_.toBuilder(); } dynamicMetadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(dynamicMetadata_); dynamicMetadata_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.auth.v3.ExternalAuthProto.internal_static_envoy_service_auth_v3_CheckResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.auth.v3.ExternalAuthProto.internal_static_envoy_service_auth_v3_CheckResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.auth.v3.CheckResponse.class, io.envoyproxy.envoy.service.auth.v3.CheckResponse.Builder.class); } private int httpResponseCase_ = 0; private java.lang.Object httpResponse_; public enum HttpResponseCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DENIED_RESPONSE(2), OK_RESPONSE(3), HTTPRESPONSE_NOT_SET(0); private final int value; private HttpResponseCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static HttpResponseCase valueOf(int value) { return forNumber(value); } public static HttpResponseCase forNumber(int value) { switch (value) { case 2: return DENIED_RESPONSE; case 3: return OK_RESPONSE; case 0: return HTTPRESPONSE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public HttpResponseCase getHttpResponseCase() { return HttpResponseCase.forNumber( httpResponseCase_); } public static final int STATUS_FIELD_NUMBER = 1; private com.google.rpc.Status status_; /** *
   * Status ``OK`` allows the request. Any other status indicates the request should be denied, and
   * for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>`
   * Envoy sends ``403 Forbidden`` HTTP status code by default.
   * 
* * .google.rpc.Status status = 1; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return status_ != null; } /** *
   * Status ``OK`` allows the request. Any other status indicates the request should be denied, and
   * for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>`
   * Envoy sends ``403 Forbidden`` HTTP status code by default.
   * 
* * .google.rpc.Status status = 1; * @return The status. */ @java.lang.Override public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** *
   * Status ``OK`` allows the request. Any other status indicates the request should be denied, and
   * for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>`
   * Envoy sends ``403 Forbidden`` HTTP status code by default.
   * 
* * .google.rpc.Status status = 1; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { return getStatus(); } public static final int DENIED_RESPONSE_FIELD_NUMBER = 2; /** *
   * Supplies http attributes for a denied response.
   * 
* * .envoy.service.auth.v3.DeniedHttpResponse denied_response = 2; * @return Whether the deniedResponse field is set. */ @java.lang.Override public boolean hasDeniedResponse() { return httpResponseCase_ == 2; } /** *
   * Supplies http attributes for a denied response.
   * 
* * .envoy.service.auth.v3.DeniedHttpResponse denied_response = 2; * @return The deniedResponse. */ @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse getDeniedResponse() { if (httpResponseCase_ == 2) { return (io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.getDefaultInstance(); } /** *
   * Supplies http attributes for a denied response.
   * 
* * .envoy.service.auth.v3.DeniedHttpResponse denied_response = 2; */ @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponseOrBuilder getDeniedResponseOrBuilder() { if (httpResponseCase_ == 2) { return (io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.getDefaultInstance(); } public static final int OK_RESPONSE_FIELD_NUMBER = 3; /** *
   * Supplies http attributes for an ok response.
   * 
* * .envoy.service.auth.v3.OkHttpResponse ok_response = 3; * @return Whether the okResponse field is set. */ @java.lang.Override public boolean hasOkResponse() { return httpResponseCase_ == 3; } /** *
   * Supplies http attributes for an ok response.
   * 
* * .envoy.service.auth.v3.OkHttpResponse ok_response = 3; * @return The okResponse. */ @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.OkHttpResponse getOkResponse() { if (httpResponseCase_ == 3) { return (io.envoyproxy.envoy.service.auth.v3.OkHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.getDefaultInstance(); } /** *
   * Supplies http attributes for an ok response.
   * 
* * .envoy.service.auth.v3.OkHttpResponse ok_response = 3; */ @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.OkHttpResponseOrBuilder getOkResponseOrBuilder() { if (httpResponseCase_ == 3) { return (io.envoyproxy.envoy.service.auth.v3.OkHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.getDefaultInstance(); } public static final int DYNAMIC_METADATA_FIELD_NUMBER = 4; private com.google.protobuf.Struct dynamicMetadata_; /** *
   * Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
   * filter. This metadata lives in a namespace specified by the canonical name of extension filter
   * that requires it:
   * - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter.
   * - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
   * 
* * .google.protobuf.Struct dynamic_metadata = 4; * @return Whether the dynamicMetadata field is set. */ @java.lang.Override public boolean hasDynamicMetadata() { return dynamicMetadata_ != null; } /** *
   * Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
   * filter. This metadata lives in a namespace specified by the canonical name of extension filter
   * that requires it:
   * - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter.
   * - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
   * 
* * .google.protobuf.Struct dynamic_metadata = 4; * @return The dynamicMetadata. */ @java.lang.Override public com.google.protobuf.Struct getDynamicMetadata() { return dynamicMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : dynamicMetadata_; } /** *
   * Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
   * filter. This metadata lives in a namespace specified by the canonical name of extension filter
   * that requires it:
   * - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter.
   * - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
   * 
* * .google.protobuf.Struct dynamic_metadata = 4; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getDynamicMetadataOrBuilder() { return getDynamicMetadata(); } 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 (status_ != null) { output.writeMessage(1, getStatus()); } if (httpResponseCase_ == 2) { output.writeMessage(2, (io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse) httpResponse_); } if (httpResponseCase_ == 3) { output.writeMessage(3, (io.envoyproxy.envoy.service.auth.v3.OkHttpResponse) httpResponse_); } if (dynamicMetadata_ != null) { output.writeMessage(4, getDynamicMetadata()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStatus()); } if (httpResponseCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse) httpResponse_); } if (httpResponseCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.envoyproxy.envoy.service.auth.v3.OkHttpResponse) httpResponse_); } if (dynamicMetadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getDynamicMetadata()); } 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 io.envoyproxy.envoy.service.auth.v3.CheckResponse)) { return super.equals(obj); } io.envoyproxy.envoy.service.auth.v3.CheckResponse other = (io.envoyproxy.envoy.service.auth.v3.CheckResponse) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (hasDynamicMetadata() != other.hasDynamicMetadata()) return false; if (hasDynamicMetadata()) { if (!getDynamicMetadata() .equals(other.getDynamicMetadata())) return false; } if (!getHttpResponseCase().equals(other.getHttpResponseCase())) return false; switch (httpResponseCase_) { case 2: if (!getDeniedResponse() .equals(other.getDeniedResponse())) return false; break; case 3: if (!getOkResponse() .equals(other.getOkResponse())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasDynamicMetadata()) { hash = (37 * hash) + DYNAMIC_METADATA_FIELD_NUMBER; hash = (53 * hash) + getDynamicMetadata().hashCode(); } switch (httpResponseCase_) { case 2: hash = (37 * hash) + DENIED_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getDeniedResponse().hashCode(); break; case 3: hash = (37 * hash) + OK_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getOkResponse().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.auth.v3.CheckResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.auth.v3.CheckResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.auth.v3.CheckResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.auth.v3.CheckResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.auth.v3.CheckResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.auth.v3.CheckResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.auth.v3.CheckResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.auth.v3.CheckResponse 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 io.envoyproxy.envoy.service.auth.v3.CheckResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.auth.v3.CheckResponse 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 io.envoyproxy.envoy.service.auth.v3.CheckResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.auth.v3.CheckResponse 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(io.envoyproxy.envoy.service.auth.v3.CheckResponse 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; } /** *
   * Intended for gRPC and Network Authorization servers ``only``.
   * 
* * Protobuf type {@code envoy.service.auth.v3.CheckResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.auth.v3.CheckResponse) io.envoyproxy.envoy.service.auth.v3.CheckResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.auth.v3.ExternalAuthProto.internal_static_envoy_service_auth_v3_CheckResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.auth.v3.ExternalAuthProto.internal_static_envoy_service_auth_v3_CheckResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.auth.v3.CheckResponse.class, io.envoyproxy.envoy.service.auth.v3.CheckResponse.Builder.class); } // Construct using io.envoyproxy.envoy.service.auth.v3.CheckResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (statusBuilder_ == null) { status_ = null; } else { status_ = null; statusBuilder_ = null; } if (dynamicMetadataBuilder_ == null) { dynamicMetadata_ = null; } else { dynamicMetadata_ = null; dynamicMetadataBuilder_ = null; } httpResponseCase_ = 0; httpResponse_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.auth.v3.ExternalAuthProto.internal_static_envoy_service_auth_v3_CheckResponse_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.CheckResponse getDefaultInstanceForType() { return io.envoyproxy.envoy.service.auth.v3.CheckResponse.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.CheckResponse build() { io.envoyproxy.envoy.service.auth.v3.CheckResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.CheckResponse buildPartial() { io.envoyproxy.envoy.service.auth.v3.CheckResponse result = new io.envoyproxy.envoy.service.auth.v3.CheckResponse(this); if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } if (httpResponseCase_ == 2) { if (deniedResponseBuilder_ == null) { result.httpResponse_ = httpResponse_; } else { result.httpResponse_ = deniedResponseBuilder_.build(); } } if (httpResponseCase_ == 3) { if (okResponseBuilder_ == null) { result.httpResponse_ = httpResponse_; } else { result.httpResponse_ = okResponseBuilder_.build(); } } if (dynamicMetadataBuilder_ == null) { result.dynamicMetadata_ = dynamicMetadata_; } else { result.dynamicMetadata_ = dynamicMetadataBuilder_.build(); } result.httpResponseCase_ = httpResponseCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.service.auth.v3.CheckResponse) { return mergeFrom((io.envoyproxy.envoy.service.auth.v3.CheckResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.auth.v3.CheckResponse other) { if (other == io.envoyproxy.envoy.service.auth.v3.CheckResponse.getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (other.hasDynamicMetadata()) { mergeDynamicMetadata(other.getDynamicMetadata()); } switch (other.getHttpResponseCase()) { case DENIED_RESPONSE: { mergeDeniedResponse(other.getDeniedResponse()); break; } case OK_RESPONSE: { mergeOkResponse(other.getOkResponse()); break; } case HTTPRESPONSE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.service.auth.v3.CheckResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.auth.v3.CheckResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int httpResponseCase_ = 0; private java.lang.Object httpResponse_; public HttpResponseCase getHttpResponseCase() { return HttpResponseCase.forNumber( httpResponseCase_); } public Builder clearHttpResponse() { httpResponseCase_ = 0; httpResponse_ = null; onChanged(); return this; } private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; /** *
     * Status ``OK`` allows the request. Any other status indicates the request should be denied, and
     * for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>`
     * Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .google.rpc.Status status = 1; * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** *
     * Status ``OK`` allows the request. Any other status indicates the request should be denied, and
     * for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>`
     * Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .google.rpc.Status status = 1; * @return The status. */ public com.google.rpc.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** *
     * Status ``OK`` allows the request. Any other status indicates the request should be denied, and
     * for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>`
     * Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .google.rpc.Status status = 1; */ public Builder setStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } return this; } /** *
     * Status ``OK`` allows the request. Any other status indicates the request should be denied, and
     * for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>`
     * Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .google.rpc.Status status = 1; */ public Builder setStatus( com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Status ``OK`` allows the request. Any other status indicates the request should be denied, and
     * for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>`
     * Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .google.rpc.Status status = 1; */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } return this; } /** *
     * Status ``OK`` allows the request. Any other status indicates the request should be denied, and
     * for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>`
     * Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .google.rpc.Status status = 1; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { status_ = null; statusBuilder_ = null; } return this; } /** *
     * Status ``OK`` allows the request. Any other status indicates the request should be denied, and
     * for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>`
     * Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .google.rpc.Status status = 1; */ public com.google.rpc.Status.Builder getStatusBuilder() { onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
     * Status ``OK`` allows the request. Any other status indicates the request should be denied, and
     * for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>`
     * Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .google.rpc.Status status = 1; */ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** *
     * Status ``OK`` allows the request. Any other status indicates the request should be denied, and
     * for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>`
     * Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .google.rpc.Status status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse, io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.Builder, io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponseOrBuilder> deniedResponseBuilder_; /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3.DeniedHttpResponse denied_response = 2; * @return Whether the deniedResponse field is set. */ @java.lang.Override public boolean hasDeniedResponse() { return httpResponseCase_ == 2; } /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3.DeniedHttpResponse denied_response = 2; * @return The deniedResponse. */ @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse getDeniedResponse() { if (deniedResponseBuilder_ == null) { if (httpResponseCase_ == 2) { return (io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.getDefaultInstance(); } else { if (httpResponseCase_ == 2) { return deniedResponseBuilder_.getMessage(); } return io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.getDefaultInstance(); } } /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3.DeniedHttpResponse denied_response = 2; */ public Builder setDeniedResponse(io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse value) { if (deniedResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } httpResponse_ = value; onChanged(); } else { deniedResponseBuilder_.setMessage(value); } httpResponseCase_ = 2; return this; } /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3.DeniedHttpResponse denied_response = 2; */ public Builder setDeniedResponse( io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.Builder builderForValue) { if (deniedResponseBuilder_ == null) { httpResponse_ = builderForValue.build(); onChanged(); } else { deniedResponseBuilder_.setMessage(builderForValue.build()); } httpResponseCase_ = 2; return this; } /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3.DeniedHttpResponse denied_response = 2; */ public Builder mergeDeniedResponse(io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse value) { if (deniedResponseBuilder_ == null) { if (httpResponseCase_ == 2 && httpResponse_ != io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.getDefaultInstance()) { httpResponse_ = io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.newBuilder((io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse) httpResponse_) .mergeFrom(value).buildPartial(); } else { httpResponse_ = value; } onChanged(); } else { if (httpResponseCase_ == 2) { deniedResponseBuilder_.mergeFrom(value); } else { deniedResponseBuilder_.setMessage(value); } } httpResponseCase_ = 2; return this; } /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3.DeniedHttpResponse denied_response = 2; */ public Builder clearDeniedResponse() { if (deniedResponseBuilder_ == null) { if (httpResponseCase_ == 2) { httpResponseCase_ = 0; httpResponse_ = null; onChanged(); } } else { if (httpResponseCase_ == 2) { httpResponseCase_ = 0; httpResponse_ = null; } deniedResponseBuilder_.clear(); } return this; } /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3.DeniedHttpResponse denied_response = 2; */ public io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.Builder getDeniedResponseBuilder() { return getDeniedResponseFieldBuilder().getBuilder(); } /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3.DeniedHttpResponse denied_response = 2; */ @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponseOrBuilder getDeniedResponseOrBuilder() { if ((httpResponseCase_ == 2) && (deniedResponseBuilder_ != null)) { return deniedResponseBuilder_.getMessageOrBuilder(); } else { if (httpResponseCase_ == 2) { return (io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.getDefaultInstance(); } } /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3.DeniedHttpResponse denied_response = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse, io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.Builder, io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponseOrBuilder> getDeniedResponseFieldBuilder() { if (deniedResponseBuilder_ == null) { if (!(httpResponseCase_ == 2)) { httpResponse_ = io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.getDefaultInstance(); } deniedResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse, io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.Builder, io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponseOrBuilder>( (io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse) httpResponse_, getParentForChildren(), isClean()); httpResponse_ = null; } httpResponseCase_ = 2; onChanged();; return deniedResponseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.auth.v3.OkHttpResponse, io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.Builder, io.envoyproxy.envoy.service.auth.v3.OkHttpResponseOrBuilder> okResponseBuilder_; /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3.OkHttpResponse ok_response = 3; * @return Whether the okResponse field is set. */ @java.lang.Override public boolean hasOkResponse() { return httpResponseCase_ == 3; } /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3.OkHttpResponse ok_response = 3; * @return The okResponse. */ @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.OkHttpResponse getOkResponse() { if (okResponseBuilder_ == null) { if (httpResponseCase_ == 3) { return (io.envoyproxy.envoy.service.auth.v3.OkHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.getDefaultInstance(); } else { if (httpResponseCase_ == 3) { return okResponseBuilder_.getMessage(); } return io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.getDefaultInstance(); } } /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3.OkHttpResponse ok_response = 3; */ public Builder setOkResponse(io.envoyproxy.envoy.service.auth.v3.OkHttpResponse value) { if (okResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } httpResponse_ = value; onChanged(); } else { okResponseBuilder_.setMessage(value); } httpResponseCase_ = 3; return this; } /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3.OkHttpResponse ok_response = 3; */ public Builder setOkResponse( io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.Builder builderForValue) { if (okResponseBuilder_ == null) { httpResponse_ = builderForValue.build(); onChanged(); } else { okResponseBuilder_.setMessage(builderForValue.build()); } httpResponseCase_ = 3; return this; } /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3.OkHttpResponse ok_response = 3; */ public Builder mergeOkResponse(io.envoyproxy.envoy.service.auth.v3.OkHttpResponse value) { if (okResponseBuilder_ == null) { if (httpResponseCase_ == 3 && httpResponse_ != io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.getDefaultInstance()) { httpResponse_ = io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.newBuilder((io.envoyproxy.envoy.service.auth.v3.OkHttpResponse) httpResponse_) .mergeFrom(value).buildPartial(); } else { httpResponse_ = value; } onChanged(); } else { if (httpResponseCase_ == 3) { okResponseBuilder_.mergeFrom(value); } else { okResponseBuilder_.setMessage(value); } } httpResponseCase_ = 3; return this; } /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3.OkHttpResponse ok_response = 3; */ public Builder clearOkResponse() { if (okResponseBuilder_ == null) { if (httpResponseCase_ == 3) { httpResponseCase_ = 0; httpResponse_ = null; onChanged(); } } else { if (httpResponseCase_ == 3) { httpResponseCase_ = 0; httpResponse_ = null; } okResponseBuilder_.clear(); } return this; } /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3.OkHttpResponse ok_response = 3; */ public io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.Builder getOkResponseBuilder() { return getOkResponseFieldBuilder().getBuilder(); } /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3.OkHttpResponse ok_response = 3; */ @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.OkHttpResponseOrBuilder getOkResponseOrBuilder() { if ((httpResponseCase_ == 3) && (okResponseBuilder_ != null)) { return okResponseBuilder_.getMessageOrBuilder(); } else { if (httpResponseCase_ == 3) { return (io.envoyproxy.envoy.service.auth.v3.OkHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.getDefaultInstance(); } } /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3.OkHttpResponse ok_response = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.auth.v3.OkHttpResponse, io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.Builder, io.envoyproxy.envoy.service.auth.v3.OkHttpResponseOrBuilder> getOkResponseFieldBuilder() { if (okResponseBuilder_ == null) { if (!(httpResponseCase_ == 3)) { httpResponse_ = io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.getDefaultInstance(); } okResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.auth.v3.OkHttpResponse, io.envoyproxy.envoy.service.auth.v3.OkHttpResponse.Builder, io.envoyproxy.envoy.service.auth.v3.OkHttpResponseOrBuilder>( (io.envoyproxy.envoy.service.auth.v3.OkHttpResponse) httpResponse_, getParentForChildren(), isClean()); httpResponse_ = null; } httpResponseCase_ = 3; onChanged();; return okResponseBuilder_; } private com.google.protobuf.Struct dynamicMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> dynamicMetadataBuilder_; /** *
     * Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
     * filter. This metadata lives in a namespace specified by the canonical name of extension filter
     * that requires it:
     * - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter.
     * - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
     * 
* * .google.protobuf.Struct dynamic_metadata = 4; * @return Whether the dynamicMetadata field is set. */ public boolean hasDynamicMetadata() { return dynamicMetadataBuilder_ != null || dynamicMetadata_ != null; } /** *
     * Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
     * filter. This metadata lives in a namespace specified by the canonical name of extension filter
     * that requires it:
     * - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter.
     * - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
     * 
* * .google.protobuf.Struct dynamic_metadata = 4; * @return The dynamicMetadata. */ public com.google.protobuf.Struct getDynamicMetadata() { if (dynamicMetadataBuilder_ == null) { return dynamicMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : dynamicMetadata_; } else { return dynamicMetadataBuilder_.getMessage(); } } /** *
     * Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
     * filter. This metadata lives in a namespace specified by the canonical name of extension filter
     * that requires it:
     * - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter.
     * - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
     * 
* * .google.protobuf.Struct dynamic_metadata = 4; */ public Builder setDynamicMetadata(com.google.protobuf.Struct value) { if (dynamicMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dynamicMetadata_ = value; onChanged(); } else { dynamicMetadataBuilder_.setMessage(value); } return this; } /** *
     * Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
     * filter. This metadata lives in a namespace specified by the canonical name of extension filter
     * that requires it:
     * - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter.
     * - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
     * 
* * .google.protobuf.Struct dynamic_metadata = 4; */ public Builder setDynamicMetadata( com.google.protobuf.Struct.Builder builderForValue) { if (dynamicMetadataBuilder_ == null) { dynamicMetadata_ = builderForValue.build(); onChanged(); } else { dynamicMetadataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
     * filter. This metadata lives in a namespace specified by the canonical name of extension filter
     * that requires it:
     * - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter.
     * - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
     * 
* * .google.protobuf.Struct dynamic_metadata = 4; */ public Builder mergeDynamicMetadata(com.google.protobuf.Struct value) { if (dynamicMetadataBuilder_ == null) { if (dynamicMetadata_ != null) { dynamicMetadata_ = com.google.protobuf.Struct.newBuilder(dynamicMetadata_).mergeFrom(value).buildPartial(); } else { dynamicMetadata_ = value; } onChanged(); } else { dynamicMetadataBuilder_.mergeFrom(value); } return this; } /** *
     * Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
     * filter. This metadata lives in a namespace specified by the canonical name of extension filter
     * that requires it:
     * - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter.
     * - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
     * 
* * .google.protobuf.Struct dynamic_metadata = 4; */ public Builder clearDynamicMetadata() { if (dynamicMetadataBuilder_ == null) { dynamicMetadata_ = null; onChanged(); } else { dynamicMetadata_ = null; dynamicMetadataBuilder_ = null; } return this; } /** *
     * Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
     * filter. This metadata lives in a namespace specified by the canonical name of extension filter
     * that requires it:
     * - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter.
     * - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
     * 
* * .google.protobuf.Struct dynamic_metadata = 4; */ public com.google.protobuf.Struct.Builder getDynamicMetadataBuilder() { onChanged(); return getDynamicMetadataFieldBuilder().getBuilder(); } /** *
     * Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
     * filter. This metadata lives in a namespace specified by the canonical name of extension filter
     * that requires it:
     * - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter.
     * - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
     * 
* * .google.protobuf.Struct dynamic_metadata = 4; */ public com.google.protobuf.StructOrBuilder getDynamicMetadataOrBuilder() { if (dynamicMetadataBuilder_ != null) { return dynamicMetadataBuilder_.getMessageOrBuilder(); } else { return dynamicMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : dynamicMetadata_; } } /** *
     * Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
     * filter. This metadata lives in a namespace specified by the canonical name of extension filter
     * that requires it:
     * - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter.
     * - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
     * 
* * .google.protobuf.Struct dynamic_metadata = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getDynamicMetadataFieldBuilder() { if (dynamicMetadataBuilder_ == null) { dynamicMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getDynamicMetadata(), getParentForChildren(), isClean()); dynamicMetadata_ = null; } return dynamicMetadataBuilder_; } @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:envoy.service.auth.v3.CheckResponse) } // @@protoc_insertion_point(class_scope:envoy.service.auth.v3.CheckResponse) private static final io.envoyproxy.envoy.service.auth.v3.CheckResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.auth.v3.CheckResponse(); } public static io.envoyproxy.envoy.service.auth.v3.CheckResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CheckResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CheckResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.CheckResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy