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;
}
}