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

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

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

// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.service.auth.v3;

/**
 * 
 * HTTP attributes for a denied response.
 * 
* * Protobuf type {@code envoy.service.auth.v3.DeniedHttpResponse} */ public final class DeniedHttpResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.auth.v3.DeniedHttpResponse) DeniedHttpResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DeniedHttpResponse.newBuilder() to construct. private DeniedHttpResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeniedHttpResponse() { headers_ = java.util.Collections.emptyList(); body_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeniedHttpResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.auth.v3.ExternalAuthProto.internal_static_envoy_service_auth_v3_DeniedHttpResponse_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_DeniedHttpResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.class, io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.Builder.class); } private int bitField0_; public static final int STATUS_FIELD_NUMBER = 1; private io.envoyproxy.envoy.type.v3.HttpStatus status_; /** *
   * This field allows the authorization service to send an HTTP response status code to the
   * downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
   * 
* * .envoy.type.v3.HttpStatus status = 1; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * This field allows the authorization service to send an HTTP response status code to the
   * downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
   * 
* * .envoy.type.v3.HttpStatus status = 1; * @return The status. */ @java.lang.Override public io.envoyproxy.envoy.type.v3.HttpStatus getStatus() { return status_ == null ? io.envoyproxy.envoy.type.v3.HttpStatus.getDefaultInstance() : status_; } /** *
   * This field allows the authorization service to send an HTTP response status code to the
   * downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
   * 
* * .envoy.type.v3.HttpStatus status = 1; */ @java.lang.Override public io.envoyproxy.envoy.type.v3.HttpStatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.envoyproxy.envoy.type.v3.HttpStatus.getDefaultInstance() : status_; } public static final int HEADERS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List headers_; /** *
   * This field allows the authorization service to send HTTP response headers
   * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
   * false when used in this message.
   * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ @java.lang.Override public java.util.List getHeadersList() { return headers_; } /** *
   * This field allows the authorization service to send HTTP response headers
   * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
   * false when used in this message.
   * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ @java.lang.Override public java.util.List getHeadersOrBuilderList() { return headers_; } /** *
   * This field allows the authorization service to send HTTP response headers
   * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
   * false when used in this message.
   * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ @java.lang.Override public int getHeadersCount() { return headers_.size(); } /** *
   * This field allows the authorization service to send HTTP response headers
   * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
   * false when used in this message.
   * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.HeaderValueOption getHeaders(int index) { return headers_.get(index); } /** *
   * This field allows the authorization service to send HTTP response headers
   * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
   * false when used in this message.
   * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder getHeadersOrBuilder( int index) { return headers_.get(index); } public static final int BODY_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object body_ = ""; /** *
   * This field allows the authorization service to send a response body data
   * to the downstream client.
   * 
* * string body = 3; * @return The body. */ @java.lang.Override public java.lang.String getBody() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** *
   * This field allows the authorization service to send a response body data
   * to the downstream client.
   * 
* * string body = 3; * @return The bytes for body. */ @java.lang.Override public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); body_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStatus()); } for (int i = 0; i < headers_.size(); i++) { output.writeMessage(2, headers_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, body_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStatus()); } for (int i = 0; i < headers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, headers_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, body_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse)) { return super.equals(obj); } io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse other = (io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (!getHeadersList() .equals(other.getHeadersList())) return false; if (!getBody() .equals(other.getBody())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (getHeadersCount() > 0) { hash = (37 * hash) + HEADERS_FIELD_NUMBER; hash = (53 * hash) + getHeadersList().hashCode(); } hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse 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.DeniedHttpResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse 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.DeniedHttpResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse 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.DeniedHttpResponse 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.DeniedHttpResponse 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.DeniedHttpResponse 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.DeniedHttpResponse 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.DeniedHttpResponse 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.DeniedHttpResponse 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.DeniedHttpResponse 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; } /** *
   * HTTP attributes for a denied response.
   * 
* * Protobuf type {@code envoy.service.auth.v3.DeniedHttpResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.auth.v3.DeniedHttpResponse) io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.auth.v3.ExternalAuthProto.internal_static_envoy_service_auth_v3_DeniedHttpResponse_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_DeniedHttpResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.class, io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.Builder.class); } // Construct using io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStatusFieldBuilder(); getHeadersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } if (headersBuilder_ == null) { headers_ = java.util.Collections.emptyList(); } else { headers_ = null; headersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); body_ = ""; 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_DeniedHttpResponse_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse getDefaultInstanceForType() { return io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse build() { io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse buildPartial() { io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse result = new io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse result) { if (headersBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); bitField0_ = (bitField0_ & ~0x00000002); } result.headers_ = headers_; } else { result.headers_ = headersBuilder_.build(); } } private void buildPartial0(io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.body_ = body_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse) { return mergeFrom((io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse other) { if (other == io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (headersBuilder_ == null) { if (!other.headers_.isEmpty()) { if (headers_.isEmpty()) { headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureHeadersIsMutable(); headers_.addAll(other.headers_); } onChanged(); } } else { if (!other.headers_.isEmpty()) { if (headersBuilder_.isEmpty()) { headersBuilder_.dispose(); headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000002); headersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHeadersFieldBuilder() : null; } else { headersBuilder_.addAllMessages(other.headers_); } } } if (!other.getBody().isEmpty()) { body_ = other.body_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getStatusFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { io.envoyproxy.envoy.config.core.v3.HeaderValueOption m = input.readMessage( io.envoyproxy.envoy.config.core.v3.HeaderValueOption.parser(), extensionRegistry); if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(m); } else { headersBuilder_.addMessage(m); } break; } // case 18 case 26: { body_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private io.envoyproxy.envoy.type.v3.HttpStatus status_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.HttpStatus, io.envoyproxy.envoy.type.v3.HttpStatus.Builder, io.envoyproxy.envoy.type.v3.HttpStatusOrBuilder> statusBuilder_; /** *
     * This field allows the authorization service to send an HTTP response status code to the
     * downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .envoy.type.v3.HttpStatus status = 1; * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * This field allows the authorization service to send an HTTP response status code to the
     * downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .envoy.type.v3.HttpStatus status = 1; * @return The status. */ public io.envoyproxy.envoy.type.v3.HttpStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.envoyproxy.envoy.type.v3.HttpStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** *
     * This field allows the authorization service to send an HTTP response status code to the
     * downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .envoy.type.v3.HttpStatus status = 1; */ public Builder setStatus(io.envoyproxy.envoy.type.v3.HttpStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * This field allows the authorization service to send an HTTP response status code to the
     * downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .envoy.type.v3.HttpStatus status = 1; */ public Builder setStatus( io.envoyproxy.envoy.type.v3.HttpStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * This field allows the authorization service to send an HTTP response status code to the
     * downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .envoy.type.v3.HttpStatus status = 1; */ public Builder mergeStatus(io.envoyproxy.envoy.type.v3.HttpStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && status_ != null && status_ != io.envoyproxy.envoy.type.v3.HttpStatus.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; } } else { statusBuilder_.mergeFrom(value); } if (status_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * This field allows the authorization service to send an HTTP response status code to the
     * downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .envoy.type.v3.HttpStatus status = 1; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } onChanged(); return this; } /** *
     * This field allows the authorization service to send an HTTP response status code to the
     * downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .envoy.type.v3.HttpStatus status = 1; */ public io.envoyproxy.envoy.type.v3.HttpStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
     * This field allows the authorization service to send an HTTP response status code to the
     * downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .envoy.type.v3.HttpStatus status = 1; */ public io.envoyproxy.envoy.type.v3.HttpStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.envoyproxy.envoy.type.v3.HttpStatus.getDefaultInstance() : status_; } } /** *
     * This field allows the authorization service to send an HTTP response status code to the
     * downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
     * 
* * .envoy.type.v3.HttpStatus status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.HttpStatus, io.envoyproxy.envoy.type.v3.HttpStatus.Builder, io.envoyproxy.envoy.type.v3.HttpStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.HttpStatus, io.envoyproxy.envoy.type.v3.HttpStatus.Builder, io.envoyproxy.envoy.type.v3.HttpStatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private java.util.List headers_ = java.util.Collections.emptyList(); private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { headers_ = new java.util.ArrayList(headers_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.HeaderValueOption, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder> headersBuilder_; /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public java.util.List getHeadersList() { if (headersBuilder_ == null) { return java.util.Collections.unmodifiableList(headers_); } else { return headersBuilder_.getMessageList(); } } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public int getHeadersCount() { if (headersBuilder_ == null) { return headers_.size(); } else { return headersBuilder_.getCount(); } } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public io.envoyproxy.envoy.config.core.v3.HeaderValueOption getHeaders(int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { return headersBuilder_.getMessage(index); } } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public Builder setHeaders( int index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.set(index, value); onChanged(); } else { headersBuilder_.setMessage(index, value); } return this; } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public Builder setHeaders( int index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.set(index, builderForValue.build()); onChanged(); } else { headersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public Builder addHeaders(io.envoyproxy.envoy.config.core.v3.HeaderValueOption value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.add(value); onChanged(); } else { headersBuilder_.addMessage(value); } return this; } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public Builder addHeaders( int index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.add(index, value); onChanged(); } else { headersBuilder_.addMessage(index, value); } return this; } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public Builder addHeaders( io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); onChanged(); } else { headersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public Builder addHeaders( int index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(index, builderForValue.build()); onChanged(); } else { headersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public Builder addAllHeaders( java.lang.Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); } return this; } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public Builder clearHeaders() { if (headersBuilder_ == null) { headers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { headersBuilder_.clear(); } return this; } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public Builder removeHeaders(int index) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.remove(index); onChanged(); } else { headersBuilder_.remove(index); } return this; } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder getHeadersBuilder( int index) { return getHeadersFieldBuilder().getBuilder(index); } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder getHeadersOrBuilder( int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { return headersBuilder_.getMessageOrBuilder(index); } } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public java.util.List getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(headers_); } } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder addHeadersBuilder() { return getHeadersFieldBuilder().addBuilder( io.envoyproxy.envoy.config.core.v3.HeaderValueOption.getDefaultInstance()); } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder addHeadersBuilder( int index) { return getHeadersFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.getDefaultInstance()); } /** *
     * This field allows the authorization service to send HTTP response headers
     * to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
     * false when used in this message.
     * 
* * repeated .envoy.config.core.v3.HeaderValueOption headers = 2; */ public java.util.List getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.HeaderValueOption, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.HeaderValueOption, io.envoyproxy.envoy.config.core.v3.HeaderValueOption.Builder, io.envoyproxy.envoy.config.core.v3.HeaderValueOptionOrBuilder>( headers_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); headers_ = null; } return headersBuilder_; } private java.lang.Object body_ = ""; /** *
     * This field allows the authorization service to send a response body data
     * to the downstream client.
     * 
* * string body = 3; * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * This field allows the authorization service to send a response body data
     * to the downstream client.
     * 
* * string body = 3; * @return The bytes for body. */ public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); body_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * This field allows the authorization service to send a response body data
     * to the downstream client.
     * 
* * string body = 3; * @param value The body to set. * @return This builder for chaining. */ public Builder setBody( java.lang.String value) { if (value == null) { throw new NullPointerException(); } body_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * This field allows the authorization service to send a response body data
     * to the downstream client.
     * 
* * string body = 3; * @return This builder for chaining. */ public Builder clearBody() { body_ = getDefaultInstance().getBody(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * This field allows the authorization service to send a response body data
     * to the downstream client.
     * 
* * string body = 3; * @param value The bytes for body to set. * @return This builder for chaining. */ public Builder setBodyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); body_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.service.auth.v3.DeniedHttpResponse) } // @@protoc_insertion_point(class_scope:envoy.service.auth.v3.DeniedHttpResponse) private static final io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse(); } public static io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeniedHttpResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy