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

io.envoyproxy.envoy.service.auth.v3alpha.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/v3alpha/external_auth.proto

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

/**
 * 
 * Intended for gRPC and Network Authorization servers `only`.
 * 
* * Protobuf type {@code envoy.service.auth.v3alpha.CheckResponse} */ public final class CheckResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.auth.v3alpha.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.v3alpha.DeniedHttpResponse.Builder subBuilder = null; if (httpResponseCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse) httpResponse_).toBuilder(); } httpResponse_ = input.readMessage(io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse) httpResponse_); httpResponse_ = subBuilder.buildPartial(); } httpResponseCase_ = 2; break; } case 26: { io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse.Builder subBuilder = null; if (httpResponseCase_ == 3) { subBuilder = ((io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse) httpResponse_).toBuilder(); } httpResponse_ = input.readMessage(io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse) httpResponse_); httpResponse_ = subBuilder.buildPartial(); } httpResponseCase_ = 3; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.auth.v3alpha.ExternalAuthProto.internal_static_envoy_service_auth_v3alpha_CheckResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.auth.v3alpha.ExternalAuthProto.internal_static_envoy_service_auth_v3alpha_CheckResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse.class, io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse.Builder.class); } private int httpResponseCase_ = 0; private java.lang.Object httpResponse_; public enum HttpResponseCase implements com.google.protobuf.Internal.EnumLite { DENIED_RESPONSE(2), OK_RESPONSE(3), HTTPRESPONSE_NOT_SET(0); private final int value; private HttpResponseCase(int value) { this.value = value; } /** * @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.
   * 
* * .google.rpc.Status status = 1; */ public boolean hasStatus() { return status_ != null; } /** *
   * Status `OK` allows the request. Any other status indicates the request should be denied.
   * 
* * .google.rpc.Status status = 1; */ 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.
   * 
* * .google.rpc.Status status = 1; */ 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.v3alpha.DeniedHttpResponse denied_response = 2; */ public boolean hasDeniedResponse() { return httpResponseCase_ == 2; } /** *
   * Supplies http attributes for a denied response.
   * 
* * .envoy.service.auth.v3alpha.DeniedHttpResponse denied_response = 2; */ public io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse getDeniedResponse() { if (httpResponseCase_ == 2) { return (io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse.getDefaultInstance(); } /** *
   * Supplies http attributes for a denied response.
   * 
* * .envoy.service.auth.v3alpha.DeniedHttpResponse denied_response = 2; */ public io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponseOrBuilder getDeniedResponseOrBuilder() { if (httpResponseCase_ == 2) { return (io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse.getDefaultInstance(); } public static final int OK_RESPONSE_FIELD_NUMBER = 3; /** *
   * Supplies http attributes for an ok response.
   * 
* * .envoy.service.auth.v3alpha.OkHttpResponse ok_response = 3; */ public boolean hasOkResponse() { return httpResponseCase_ == 3; } /** *
   * Supplies http attributes for an ok response.
   * 
* * .envoy.service.auth.v3alpha.OkHttpResponse ok_response = 3; */ public io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse getOkResponse() { if (httpResponseCase_ == 3) { return (io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse.getDefaultInstance(); } /** *
   * Supplies http attributes for an ok response.
   * 
* * .envoy.service.auth.v3alpha.OkHttpResponse ok_response = 3; */ public io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponseOrBuilder getOkResponseOrBuilder() { if (httpResponseCase_ == 3) { return (io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse.getDefaultInstance(); } 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.v3alpha.DeniedHttpResponse) httpResponse_); } if (httpResponseCase_ == 3) { output.writeMessage(3, (io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse) httpResponse_); } 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.v3alpha.DeniedHttpResponse) httpResponse_); } if (httpResponseCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse) httpResponse_); } 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.v3alpha.CheckResponse)) { return super.equals(obj); } io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse other = (io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) 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(); } 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.v3alpha.CheckResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.auth.v3alpha.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.v3alpha.CheckResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.auth.v3alpha.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.v3alpha.CheckResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.auth.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.CheckResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.auth.v3alpha.CheckResponse) io.envoyproxy.envoy.service.auth.v3alpha.CheckResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.auth.v3alpha.ExternalAuthProto.internal_static_envoy_service_auth_v3alpha_CheckResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.auth.v3alpha.ExternalAuthProto.internal_static_envoy_service_auth_v3alpha_CheckResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse.class, io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse.Builder.class); } // Construct using io.envoyproxy.envoy.service.auth.v3alpha.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; } httpResponseCase_ = 0; httpResponse_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.auth.v3alpha.ExternalAuthProto.internal_static_envoy_service_auth_v3alpha_CheckResponse_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse getDefaultInstanceForType() { return io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse build() { io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse buildPartial() { io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse result = new io.envoyproxy.envoy.service.auth.v3alpha.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(); } } 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.v3alpha.CheckResponse) { return mergeFrom((io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse other) { if (other == io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse.getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } 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.v3alpha.CheckResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.auth.v3alpha.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.
     * 
* * .google.rpc.Status status = 1; */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** *
     * Status `OK` allows the request. Any other status indicates the request should be denied.
     * 
* * .google.rpc.Status status = 1; */ 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.
     * 
* * .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.
     * 
* * .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.
     * 
* * .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.
     * 
* * .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.
     * 
* * .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.
     * 
* * .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.
     * 
* * .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.v3alpha.DeniedHttpResponse, io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse.Builder, io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponseOrBuilder> deniedResponseBuilder_; /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3alpha.DeniedHttpResponse denied_response = 2; */ public boolean hasDeniedResponse() { return httpResponseCase_ == 2; } /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3alpha.DeniedHttpResponse denied_response = 2; */ public io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse getDeniedResponse() { if (deniedResponseBuilder_ == null) { if (httpResponseCase_ == 2) { return (io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse.getDefaultInstance(); } else { if (httpResponseCase_ == 2) { return deniedResponseBuilder_.getMessage(); } return io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse.getDefaultInstance(); } } /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3alpha.DeniedHttpResponse denied_response = 2; */ public Builder setDeniedResponse(io.envoyproxy.envoy.service.auth.v3alpha.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.v3alpha.DeniedHttpResponse denied_response = 2; */ public Builder setDeniedResponse( io.envoyproxy.envoy.service.auth.v3alpha.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.v3alpha.DeniedHttpResponse denied_response = 2; */ public Builder mergeDeniedResponse(io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse value) { if (deniedResponseBuilder_ == null) { if (httpResponseCase_ == 2 && httpResponse_ != io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse.getDefaultInstance()) { httpResponse_ = io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse.newBuilder((io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse) httpResponse_) .mergeFrom(value).buildPartial(); } else { httpResponse_ = value; } onChanged(); } else { if (httpResponseCase_ == 2) { deniedResponseBuilder_.mergeFrom(value); } deniedResponseBuilder_.setMessage(value); } httpResponseCase_ = 2; return this; } /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3alpha.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.v3alpha.DeniedHttpResponse denied_response = 2; */ public io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse.Builder getDeniedResponseBuilder() { return getDeniedResponseFieldBuilder().getBuilder(); } /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3alpha.DeniedHttpResponse denied_response = 2; */ public io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponseOrBuilder getDeniedResponseOrBuilder() { if ((httpResponseCase_ == 2) && (deniedResponseBuilder_ != null)) { return deniedResponseBuilder_.getMessageOrBuilder(); } else { if (httpResponseCase_ == 2) { return (io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse.getDefaultInstance(); } } /** *
     * Supplies http attributes for a denied response.
     * 
* * .envoy.service.auth.v3alpha.DeniedHttpResponse denied_response = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse, io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse.Builder, io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponseOrBuilder> getDeniedResponseFieldBuilder() { if (deniedResponseBuilder_ == null) { if (!(httpResponseCase_ == 2)) { httpResponse_ = io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse.getDefaultInstance(); } deniedResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse, io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse.Builder, io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponseOrBuilder>( (io.envoyproxy.envoy.service.auth.v3alpha.DeniedHttpResponse) httpResponse_, getParentForChildren(), isClean()); httpResponse_ = null; } httpResponseCase_ = 2; onChanged();; return deniedResponseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse, io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse.Builder, io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponseOrBuilder> okResponseBuilder_; /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3alpha.OkHttpResponse ok_response = 3; */ public boolean hasOkResponse() { return httpResponseCase_ == 3; } /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3alpha.OkHttpResponse ok_response = 3; */ public io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse getOkResponse() { if (okResponseBuilder_ == null) { if (httpResponseCase_ == 3) { return (io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse.getDefaultInstance(); } else { if (httpResponseCase_ == 3) { return okResponseBuilder_.getMessage(); } return io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse.getDefaultInstance(); } } /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3alpha.OkHttpResponse ok_response = 3; */ public Builder setOkResponse(io.envoyproxy.envoy.service.auth.v3alpha.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.v3alpha.OkHttpResponse ok_response = 3; */ public Builder setOkResponse( io.envoyproxy.envoy.service.auth.v3alpha.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.v3alpha.OkHttpResponse ok_response = 3; */ public Builder mergeOkResponse(io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse value) { if (okResponseBuilder_ == null) { if (httpResponseCase_ == 3 && httpResponse_ != io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse.getDefaultInstance()) { httpResponse_ = io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse.newBuilder((io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse) httpResponse_) .mergeFrom(value).buildPartial(); } else { httpResponse_ = value; } onChanged(); } else { if (httpResponseCase_ == 3) { okResponseBuilder_.mergeFrom(value); } okResponseBuilder_.setMessage(value); } httpResponseCase_ = 3; return this; } /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3alpha.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.v3alpha.OkHttpResponse ok_response = 3; */ public io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse.Builder getOkResponseBuilder() { return getOkResponseFieldBuilder().getBuilder(); } /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3alpha.OkHttpResponse ok_response = 3; */ public io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponseOrBuilder getOkResponseOrBuilder() { if ((httpResponseCase_ == 3) && (okResponseBuilder_ != null)) { return okResponseBuilder_.getMessageOrBuilder(); } else { if (httpResponseCase_ == 3) { return (io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse) httpResponse_; } return io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse.getDefaultInstance(); } } /** *
     * Supplies http attributes for an ok response.
     * 
* * .envoy.service.auth.v3alpha.OkHttpResponse ok_response = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse, io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse.Builder, io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponseOrBuilder> getOkResponseFieldBuilder() { if (okResponseBuilder_ == null) { if (!(httpResponseCase_ == 3)) { httpResponse_ = io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse.getDefaultInstance(); } okResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse, io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse.Builder, io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponseOrBuilder>( (io.envoyproxy.envoy.service.auth.v3alpha.OkHttpResponse) httpResponse_, getParentForChildren(), isClean()); httpResponse_ = null; } httpResponseCase_ = 3; onChanged();; return okResponseBuilder_; } @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.v3alpha.CheckResponse) } // @@protoc_insertion_point(class_scope:envoy.service.auth.v3alpha.CheckResponse) private static final io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.auth.v3alpha.CheckResponse(); } public static io.envoyproxy.envoy.service.auth.v3alpha.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.v3alpha.CheckResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy