com.google.cloud.compute.v1.CorsPolicyOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-compute-v1 Show documentation
Show all versions of proto-google-cloud-compute-v1 Show documentation
Proto library for google-cloud-compute
/*
* Copyright 2024 Google LLC
*
* 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
*
* https://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.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/compute/v1/compute.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.compute.v1;
public interface CorsPolicyOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.CorsPolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
*
*
* optional bool allow_credentials = 481263366;
*
* @return Whether the allowCredentials field is set.
*/
boolean hasAllowCredentials();
/**
*
*
*
* In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false.
*
*
* optional bool allow_credentials = 481263366;
*
* @return The allowCredentials.
*/
boolean getAllowCredentials();
/**
*
*
*
* Specifies the content for the Access-Control-Allow-Headers header.
*
*
* repeated string allow_headers = 45179024;
*
* @return A list containing the allowHeaders.
*/
java.util.List getAllowHeadersList();
/**
*
*
*
* Specifies the content for the Access-Control-Allow-Headers header.
*
*
* repeated string allow_headers = 45179024;
*
* @return The count of allowHeaders.
*/
int getAllowHeadersCount();
/**
*
*
*
* Specifies the content for the Access-Control-Allow-Headers header.
*
*
* repeated string allow_headers = 45179024;
*
* @param index The index of the element to return.
* @return The allowHeaders at the given index.
*/
java.lang.String getAllowHeaders(int index);
/**
*
*
*
* Specifies the content for the Access-Control-Allow-Headers header.
*
*
* repeated string allow_headers = 45179024;
*
* @param index The index of the value to return.
* @return The bytes of the allowHeaders at the given index.
*/
com.google.protobuf.ByteString getAllowHeadersBytes(int index);
/**
*
*
*
* Specifies the content for the Access-Control-Allow-Methods header.
*
*
* repeated string allow_methods = 205405372;
*
* @return A list containing the allowMethods.
*/
java.util.List getAllowMethodsList();
/**
*
*
*
* Specifies the content for the Access-Control-Allow-Methods header.
*
*
* repeated string allow_methods = 205405372;
*
* @return The count of allowMethods.
*/
int getAllowMethodsCount();
/**
*
*
*
* Specifies the content for the Access-Control-Allow-Methods header.
*
*
* repeated string allow_methods = 205405372;
*
* @param index The index of the element to return.
* @return The allowMethods at the given index.
*/
java.lang.String getAllowMethods(int index);
/**
*
*
*
* Specifies the content for the Access-Control-Allow-Methods header.
*
*
* repeated string allow_methods = 205405372;
*
* @param index The index of the value to return.
* @return The bytes of the allowMethods at the given index.
*/
com.google.protobuf.ByteString getAllowMethodsBytes(int index);
/**
*
*
*
* Specifies a regular expression that matches allowed origins. For more information, see regular expression syntax . An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
*
*
* repeated string allow_origin_regexes = 215385810;
*
* @return A list containing the allowOriginRegexes.
*/
java.util.List getAllowOriginRegexesList();
/**
*
*
*
* Specifies a regular expression that matches allowed origins. For more information, see regular expression syntax . An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
*
*
* repeated string allow_origin_regexes = 215385810;
*
* @return The count of allowOriginRegexes.
*/
int getAllowOriginRegexesCount();
/**
*
*
*
* Specifies a regular expression that matches allowed origins. For more information, see regular expression syntax . An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
*
*
* repeated string allow_origin_regexes = 215385810;
*
* @param index The index of the element to return.
* @return The allowOriginRegexes at the given index.
*/
java.lang.String getAllowOriginRegexes(int index);
/**
*
*
*
* Specifies a regular expression that matches allowed origins. For more information, see regular expression syntax . An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
*
*
* repeated string allow_origin_regexes = 215385810;
*
* @param index The index of the value to return.
* @return The bytes of the allowOriginRegexes at the given index.
*/
com.google.protobuf.ByteString getAllowOriginRegexesBytes(int index);
/**
*
*
*
* Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
*
*
* repeated string allow_origins = 194914071;
*
* @return A list containing the allowOrigins.
*/
java.util.List getAllowOriginsList();
/**
*
*
*
* Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
*
*
* repeated string allow_origins = 194914071;
*
* @return The count of allowOrigins.
*/
int getAllowOriginsCount();
/**
*
*
*
* Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
*
*
* repeated string allow_origins = 194914071;
*
* @param index The index of the element to return.
* @return The allowOrigins at the given index.
*/
java.lang.String getAllowOrigins(int index);
/**
*
*
*
* Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
*
*
* repeated string allow_origins = 194914071;
*
* @param index The index of the value to return.
* @return The bytes of the allowOrigins at the given index.
*/
com.google.protobuf.ByteString getAllowOriginsBytes(int index);
/**
*
*
*
* If true, disables the CORS policy. The default value is false, which indicates that the CORS policy is in effect.
*
*
* optional bool disabled = 270940796;
*
* @return Whether the disabled field is set.
*/
boolean hasDisabled();
/**
*
*
*
* If true, disables the CORS policy. The default value is false, which indicates that the CORS policy is in effect.
*
*
* optional bool disabled = 270940796;
*
* @return The disabled.
*/
boolean getDisabled();
/**
*
*
*
* Specifies the content for the Access-Control-Expose-Headers header.
*
*
* repeated string expose_headers = 247604747;
*
* @return A list containing the exposeHeaders.
*/
java.util.List getExposeHeadersList();
/**
*
*
*
* Specifies the content for the Access-Control-Expose-Headers header.
*
*
* repeated string expose_headers = 247604747;
*
* @return The count of exposeHeaders.
*/
int getExposeHeadersCount();
/**
*
*
*
* Specifies the content for the Access-Control-Expose-Headers header.
*
*
* repeated string expose_headers = 247604747;
*
* @param index The index of the element to return.
* @return The exposeHeaders at the given index.
*/
java.lang.String getExposeHeaders(int index);
/**
*
*
*
* Specifies the content for the Access-Control-Expose-Headers header.
*
*
* repeated string expose_headers = 247604747;
*
* @param index The index of the value to return.
* @return The bytes of the exposeHeaders at the given index.
*/
com.google.protobuf.ByteString getExposeHeadersBytes(int index);
/**
*
*
*
* Specifies how long results of a preflight request can be cached in seconds. This field translates to the Access-Control-Max-Age header.
*
*
* optional int32 max_age = 307559332;
*
* @return Whether the maxAge field is set.
*/
boolean hasMaxAge();
/**
*
*
*
* Specifies how long results of a preflight request can be cached in seconds. This field translates to the Access-Control-Max-Age header.
*
*
* optional int32 max_age = 307559332;
*
* @return The maxAge.
*/
int getMaxAge();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy