类 VirtualServiceOuterClass.CorsPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
istio.networking.v1alpha3.VirtualServiceOuterClass.CorsPolicy.Builder
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,VirtualServiceOuterClass.CorsPolicyOrBuilder,Cloneable
public static final class VirtualServiceOuterClass.CorsPolicy.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
implements VirtualServiceOuterClass.CorsPolicyOrBuilder
Describes the Cross-Origin Resource Sharing (CORS) policy, for a given
service. Refer to [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS)
for further details about cross origin resource sharing. For example,
the following rule restricts cross origin requests to those originating
from example.com domain using HTTP POST/GET, and sets the
`Access-Control-Allow-Credentials` header to false. In addition, it only
exposes `X-Foo-bar` header and sets an expiry period of 1 day.
{{<tabset category-name="example">}}
{{<tab name="v1alpha3" category-value="v1alpha3">}}
```yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: ratings-route
spec:
hosts:
- ratings.prod.svc.cluster.local
http:
- route:
- destination:
host: ratings.prod.svc.cluster.local
subset: v1
corsPolicy:
allowOrigins:
- exact: https://example.com
allowMethods:
- POST
- GET
allowCredentials: false
allowHeaders:
- X-Foo-Bar
maxAge: "24h"
```
{{</tab>}}
{{<tab name="v1beta1" category-value="v1beta1">}}
```yaml
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: ratings-route
spec:
hosts:
- ratings.prod.svc.cluster.local
http:
- route:
- destination:
host: ratings.prod.svc.cluster.local
subset: v1
corsPolicy:
allowOrigins:
- exact: https://example.com
allowMethods:
- POST
- GET
allowCredentials: false
allowHeaders:
- X-Foo-Bar
maxAge: "24h"
```
{{</tab>}}
{{</tabset>}}
Protobuf type istio.networking.v1alpha3.CorsPolicy-
方法概要
修饰符和类型方法说明addAllAllowHeaders(Iterable<String> values) List of HTTP headers that can be used when requesting the resource.addAllAllowMethods(Iterable<String> values) List of HTTP methods allowed to access the resource.addAllAllowOrigin(Iterable<String> values) 已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.addAllAllowOrigins(Iterable<? extends VirtualServiceOuterClass.StringMatch> values) String patterns that match allowed origins.addAllExposeHeaders(Iterable<String> values) A list of HTTP headers that the browsers are allowed to access.addAllowHeaders(String value) List of HTTP headers that can be used when requesting the resource.addAllowHeadersBytes(com.google.protobuf.ByteString value) List of HTTP headers that can be used when requesting the resource.addAllowMethods(String value) List of HTTP methods allowed to access the resource.addAllowMethodsBytes(com.google.protobuf.ByteString value) List of HTTP methods allowed to access the resource.addAllowOrigin(String value) 已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.addAllowOriginBytes(com.google.protobuf.ByteString value) 已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.addAllowOrigins(int index, VirtualServiceOuterClass.StringMatch value) String patterns that match allowed origins.addAllowOrigins(int index, VirtualServiceOuterClass.StringMatch.Builder builderForValue) String patterns that match allowed origins.String patterns that match allowed origins.addAllowOrigins(VirtualServiceOuterClass.StringMatch.Builder builderForValue) String patterns that match allowed origins.String patterns that match allowed origins.addAllowOriginsBuilder(int index) String patterns that match allowed origins.addExposeHeaders(String value) A list of HTTP headers that the browsers are allowed to access.addExposeHeadersBytes(com.google.protobuf.ByteString value) A list of HTTP headers that the browsers are allowed to access.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials.List of HTTP headers that can be used when requesting the resource.List of HTTP methods allowed to access the resource.已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.String patterns that match allowed origins.A list of HTTP headers that the browsers are allowed to access.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Specifies how long the results of a preflight request can be cached.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()com.google.protobuf.BoolValueIndicates whether the caller is allowed to send the actual request (not the preflight) using credentials.com.google.protobuf.BoolValue.BuilderIndicates whether the caller is allowed to send the actual request (not the preflight) using credentials.com.google.protobuf.BoolValueOrBuilderIndicates whether the caller is allowed to send the actual request (not the preflight) using credentials.getAllowHeaders(int index) List of HTTP headers that can be used when requesting the resource.com.google.protobuf.ByteStringgetAllowHeadersBytes(int index) List of HTTP headers that can be used when requesting the resource.intList of HTTP headers that can be used when requesting the resource.com.google.protobuf.ProtocolStringListList of HTTP headers that can be used when requesting the resource.getAllowMethods(int index) List of HTTP methods allowed to access the resource.com.google.protobuf.ByteStringgetAllowMethodsBytes(int index) List of HTTP methods allowed to access the resource.intList of HTTP methods allowed to access the resource.com.google.protobuf.ProtocolStringListList of HTTP methods allowed to access the resource.getAllowOrigin(int index) 已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.com.google.protobuf.ByteStringgetAllowOriginBytes(int index) 已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.int已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.com.google.protobuf.ProtocolStringList已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.getAllowOrigins(int index) String patterns that match allowed origins.getAllowOriginsBuilder(int index) String patterns that match allowed origins.String patterns that match allowed origins.intString patterns that match allowed origins.String patterns that match allowed origins.getAllowOriginsOrBuilder(int index) String patterns that match allowed origins.String patterns that match allowed origins.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExposeHeaders(int index) A list of HTTP headers that the browsers are allowed to access.com.google.protobuf.ByteStringgetExposeHeadersBytes(int index) A list of HTTP headers that the browsers are allowed to access.intA list of HTTP headers that the browsers are allowed to access.com.google.protobuf.ProtocolStringListA list of HTTP headers that the browsers are allowed to access.com.google.protobuf.DurationSpecifies how long the results of a preflight request can be cached.com.google.protobuf.Duration.BuilderSpecifies how long the results of a preflight request can be cached.com.google.protobuf.DurationOrBuilderSpecifies how long the results of a preflight request can be cached.booleanIndicates whether the caller is allowed to send the actual request (not the preflight) using credentials.booleanSpecifies how long the results of a preflight request can be cached.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeAllowCredentials(com.google.protobuf.BoolValue value) Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMaxAge(com.google.protobuf.Duration value) Specifies how long the results of a preflight request can be cached.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAllowOrigins(int index) String patterns that match allowed origins.setAllowCredentials(com.google.protobuf.BoolValue value) Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials.setAllowCredentials(com.google.protobuf.BoolValue.Builder builderForValue) Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials.setAllowHeaders(int index, String value) List of HTTP headers that can be used when requesting the resource.setAllowMethods(int index, String value) List of HTTP methods allowed to access the resource.setAllowOrigin(int index, String value) 已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.setAllowOrigins(int index, VirtualServiceOuterClass.StringMatch value) String patterns that match allowed origins.setAllowOrigins(int index, VirtualServiceOuterClass.StringMatch.Builder builderForValue) String patterns that match allowed origins.setExposeHeaders(int index, String value) A list of HTTP headers that the browsers are allowed to access.setMaxAge(com.google.protobuf.Duration value) Specifies how long the results of a preflight request can be cached.setMaxAge(com.google.protobuf.Duration.Builder builderForValue) Specifies how long the results of a preflight request can be cached.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException从接口继承的方法 com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom从接口继承的方法 com.google.protobuf.MessageLite.Builder
mergeFrom从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
-
clear
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- 指定者:
getDescriptorForType在接口中com.google.protobuf.Message.Builder- 指定者:
getDescriptorForType在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getDescriptorForType在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
-
getDefaultInstanceForType
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
clone
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
-
setField
public VirtualServiceOuterClass.CorsPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
-
clearField
public VirtualServiceOuterClass.CorsPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
-
clearOneof
public VirtualServiceOuterClass.CorsPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
-
setRepeatedField
public VirtualServiceOuterClass.CorsPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
-
addRepeatedField
public VirtualServiceOuterClass.CorsPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
-
mergeFrom
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
-
mergeFrom
public VirtualServiceOuterClass.CorsPolicy.Builder mergeFrom(VirtualServiceOuterClass.CorsPolicy other) -
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
-
mergeFrom
public VirtualServiceOuterClass.CorsPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>- 抛出:
IOException
-
getAllowOriginList
已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];- 指定者:
getAllowOriginList在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 返回:
- A list containing the allowOrigin.
-
getAllowOriginCount
已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];- 指定者:
getAllowOriginCount在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 返回:
- The count of allowOrigin.
-
getAllowOrigin
已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];- 指定者:
getAllowOrigin在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 参数:
index- The index of the element to return.- 返回:
- The allowOrigin at the given index.
-
getAllowOriginBytes
已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];- 指定者:
getAllowOriginBytes在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 参数:
index- The index of the value to return.- 返回:
- The bytes of the allowOrigin at the given index.
-
setAllowOrigin
@Deprecated public VirtualServiceOuterClass.CorsPolicy.Builder setAllowOrigin(int index, String value) 已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];- 参数:
index- The index to set the value at.value- The allowOrigin to set.- 返回:
- This builder for chaining.
-
addAllowOrigin
已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];- 参数:
value- The allowOrigin to add.- 返回:
- This builder for chaining.
-
addAllAllowOrigin
@Deprecated public VirtualServiceOuterClass.CorsPolicy.Builder addAllAllowOrigin(Iterable<String> values) 已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];- 参数:
values- The allowOrigin to add.- 返回:
- This builder for chaining.
-
clearAllowOrigin
已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];- 返回:
- This builder for chaining.
-
addAllowOriginBytes
@Deprecated public VirtualServiceOuterClass.CorsPolicy.Builder addAllowOriginBytes(com.google.protobuf.ByteString value) 已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];- 参数:
value- The bytes of the allowOrigin to add.- 返回:
- This builder for chaining.
-
getAllowOriginsList
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
getAllowOriginsCount
public int getAllowOriginsCount()String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
getAllowOrigins
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
setAllowOrigins
public VirtualServiceOuterClass.CorsPolicy.Builder setAllowOrigins(int index, VirtualServiceOuterClass.StringMatch value) String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
setAllowOrigins
public VirtualServiceOuterClass.CorsPolicy.Builder setAllowOrigins(int index, VirtualServiceOuterClass.StringMatch.Builder builderForValue) String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
addAllowOrigins
public VirtualServiceOuterClass.CorsPolicy.Builder addAllowOrigins(VirtualServiceOuterClass.StringMatch value) String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
addAllowOrigins
public VirtualServiceOuterClass.CorsPolicy.Builder addAllowOrigins(int index, VirtualServiceOuterClass.StringMatch value) String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
addAllowOrigins
public VirtualServiceOuterClass.CorsPolicy.Builder addAllowOrigins(VirtualServiceOuterClass.StringMatch.Builder builderForValue) String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
addAllowOrigins
public VirtualServiceOuterClass.CorsPolicy.Builder addAllowOrigins(int index, VirtualServiceOuterClass.StringMatch.Builder builderForValue) String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
addAllAllowOrigins
public VirtualServiceOuterClass.CorsPolicy.Builder addAllAllowOrigins(Iterable<? extends VirtualServiceOuterClass.StringMatch> values) String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
clearAllowOrigins
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
removeAllowOrigins
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
getAllowOriginsBuilder
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
getAllowOriginsOrBuilder
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
getAllowOriginsOrBuilderList
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
addAllowOriginsBuilder
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
addAllowOriginsBuilder
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
getAllowOriginsBuilderList
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7; -
getAllowMethodsList
public com.google.protobuf.ProtocolStringList getAllowMethodsList()List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;- 指定者:
getAllowMethodsList在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 返回:
- A list containing the allowMethods.
-
getAllowMethodsCount
public int getAllowMethodsCount()List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;- 指定者:
getAllowMethodsCount在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 返回:
- The count of allowMethods.
-
getAllowMethods
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;- 指定者:
getAllowMethods在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 参数:
index- The index of the element to return.- 返回:
- The allowMethods at the given index.
-
getAllowMethodsBytes
public com.google.protobuf.ByteString getAllowMethodsBytes(int index) List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;- 指定者:
getAllowMethodsBytes在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 参数:
index- The index of the value to return.- 返回:
- The bytes of the allowMethods at the given index.
-
setAllowMethods
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;- 参数:
index- The index to set the value at.value- The allowMethods to set.- 返回:
- This builder for chaining.
-
addAllowMethods
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;- 参数:
value- The allowMethods to add.- 返回:
- This builder for chaining.
-
addAllAllowMethods
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;- 参数:
values- The allowMethods to add.- 返回:
- This builder for chaining.
-
clearAllowMethods
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;- 返回:
- This builder for chaining.
-
addAllowMethodsBytes
public VirtualServiceOuterClass.CorsPolicy.Builder addAllowMethodsBytes(com.google.protobuf.ByteString value) List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;- 参数:
value- The bytes of the allowMethods to add.- 返回:
- This builder for chaining.
-
getAllowHeadersList
public com.google.protobuf.ProtocolStringList getAllowHeadersList()List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;- 指定者:
getAllowHeadersList在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 返回:
- A list containing the allowHeaders.
-
getAllowHeadersCount
public int getAllowHeadersCount()List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;- 指定者:
getAllowHeadersCount在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 返回:
- The count of allowHeaders.
-
getAllowHeaders
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;- 指定者:
getAllowHeaders在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 参数:
index- The index of the element to return.- 返回:
- The allowHeaders at the given index.
-
getAllowHeadersBytes
public com.google.protobuf.ByteString getAllowHeadersBytes(int index) List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;- 指定者:
getAllowHeadersBytes在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 参数:
index- The index of the value to return.- 返回:
- The bytes of the allowHeaders at the given index.
-
setAllowHeaders
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;- 参数:
index- The index to set the value at.value- The allowHeaders to set.- 返回:
- This builder for chaining.
-
addAllowHeaders
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;- 参数:
value- The allowHeaders to add.- 返回:
- This builder for chaining.
-
addAllAllowHeaders
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;- 参数:
values- The allowHeaders to add.- 返回:
- This builder for chaining.
-
clearAllowHeaders
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;- 返回:
- This builder for chaining.
-
addAllowHeadersBytes
public VirtualServiceOuterClass.CorsPolicy.Builder addAllowHeadersBytes(com.google.protobuf.ByteString value) List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;- 参数:
value- The bytes of the allowHeaders to add.- 返回:
- This builder for chaining.
-
getExposeHeadersList
public com.google.protobuf.ProtocolStringList getExposeHeadersList()A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;- 指定者:
getExposeHeadersList在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 返回:
- A list containing the exposeHeaders.
-
getExposeHeadersCount
public int getExposeHeadersCount()A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;- 指定者:
getExposeHeadersCount在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 返回:
- The count of exposeHeaders.
-
getExposeHeaders
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;- 指定者:
getExposeHeaders在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 参数:
index- The index of the element to return.- 返回:
- The exposeHeaders at the given index.
-
getExposeHeadersBytes
public com.google.protobuf.ByteString getExposeHeadersBytes(int index) A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;- 指定者:
getExposeHeadersBytes在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 参数:
index- The index of the value to return.- 返回:
- The bytes of the exposeHeaders at the given index.
-
setExposeHeaders
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;- 参数:
index- The index to set the value at.value- The exposeHeaders to set.- 返回:
- This builder for chaining.
-
addExposeHeaders
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;- 参数:
value- The exposeHeaders to add.- 返回:
- This builder for chaining.
-
addAllExposeHeaders
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;- 参数:
values- The exposeHeaders to add.- 返回:
- This builder for chaining.
-
clearExposeHeaders
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;- 返回:
- This builder for chaining.
-
addExposeHeadersBytes
public VirtualServiceOuterClass.CorsPolicy.Builder addExposeHeadersBytes(com.google.protobuf.ByteString value) A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;- 参数:
value- The bytes of the exposeHeaders to add.- 返回:
- This builder for chaining.
-
hasMaxAge
public boolean hasMaxAge()Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5;- 指定者:
hasMaxAge在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 返回:
- Whether the maxAge field is set.
-
getMaxAge
public com.google.protobuf.Duration getMaxAge()Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5;- 指定者:
getMaxAge在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 返回:
- The maxAge.
-
setMaxAge
Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5; -
setMaxAge
public VirtualServiceOuterClass.CorsPolicy.Builder setMaxAge(com.google.protobuf.Duration.Builder builderForValue) Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5; -
mergeMaxAge
Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5; -
clearMaxAge
Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5; -
getMaxAgeBuilder
public com.google.protobuf.Duration.Builder getMaxAgeBuilder()Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5; -
getMaxAgeOrBuilder
public com.google.protobuf.DurationOrBuilder getMaxAgeOrBuilder()Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5; -
hasAllowCredentials
public boolean hasAllowCredentials()Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6;- 指定者:
hasAllowCredentials在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 返回:
- Whether the allowCredentials field is set.
-
getAllowCredentials
public com.google.protobuf.BoolValue getAllowCredentials()Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6;- 指定者:
getAllowCredentials在接口中VirtualServiceOuterClass.CorsPolicyOrBuilder- 返回:
- The allowCredentials.
-
setAllowCredentials
public VirtualServiceOuterClass.CorsPolicy.Builder setAllowCredentials(com.google.protobuf.BoolValue value) Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6; -
setAllowCredentials
public VirtualServiceOuterClass.CorsPolicy.Builder setAllowCredentials(com.google.protobuf.BoolValue.Builder builderForValue) Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6; -
mergeAllowCredentials
public VirtualServiceOuterClass.CorsPolicy.Builder mergeAllowCredentials(com.google.protobuf.BoolValue value) Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6; -
clearAllowCredentials
Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6; -
getAllowCredentialsBuilder
public com.google.protobuf.BoolValue.Builder getAllowCredentialsBuilder()Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6; -
getAllowCredentialsOrBuilder
public com.google.protobuf.BoolValueOrBuilder getAllowCredentialsOrBuilder()Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6; -
setUnknownFields
public final VirtualServiceOuterClass.CorsPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
-
mergeUnknownFields
public final VirtualServiceOuterClass.CorsPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.CorsPolicy.Builder>
-