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

com.google.api.services.servicecontrol.v2.model.CheckResponse Maven / Gradle / Ivy

/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.servicecontrol.v2.model;

/**
 * Response message for the Check method.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Service Control API. For a detailed explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class CheckResponse extends com.google.api.client.json.GenericJson { /** * Optional response metadata that will be emitted as dynamic metadata to be consumed by the * caller of ServiceController. For compatibility with the ext_authz interface. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map dynamicMetadata; /** * Returns a set of request contexts generated from the `CheckRequest`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map headers; /** * Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; * google.rpc.Status.details would contain additional details about the denial. * The value may be {@code null}. */ @com.google.api.client.util.Key private Status status; /** * Optional response metadata that will be emitted as dynamic metadata to be consumed by the * caller of ServiceController. For compatibility with the ext_authz interface. * @return value or {@code null} for none */ public java.util.Map getDynamicMetadata() { return dynamicMetadata; } /** * Optional response metadata that will be emitted as dynamic metadata to be consumed by the * caller of ServiceController. For compatibility with the ext_authz interface. * @param dynamicMetadata dynamicMetadata or {@code null} for none */ public CheckResponse setDynamicMetadata(java.util.Map dynamicMetadata) { this.dynamicMetadata = dynamicMetadata; return this; } /** * Returns a set of request contexts generated from the `CheckRequest`. * @return value or {@code null} for none */ public java.util.Map getHeaders() { return headers; } /** * Returns a set of request contexts generated from the `CheckRequest`. * @param headers headers or {@code null} for none */ public CheckResponse setHeaders(java.util.Map headers) { this.headers = headers; return this; } /** * Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; * google.rpc.Status.details would contain additional details about the denial. * @return value or {@code null} for none */ public Status getStatus() { return status; } /** * Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; * google.rpc.Status.details would contain additional details about the denial. * @param status status or {@code null} for none */ public CheckResponse setStatus(Status status) { this.status = status; return this; } @Override public CheckResponse set(String fieldName, Object value) { return (CheckResponse) super.set(fieldName, value); } @Override public CheckResponse clone() { return (CheckResponse) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy