public static final class VirtualServiceOuterClass.CorsPolicy extends com.google.protobuf.GeneratedMessageV3 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| 限定符和类型 | 类和说明 |
|---|---|
static class |
VirtualServiceOuterClass.CorsPolicy.Builder
Describes the Cross-Origin Resource Sharing (CORS) policy, for a given
service.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ALLOW_CREDENTIALS_FIELD_NUMBER |
static int |
ALLOW_HEADERS_FIELD_NUMBER |
static int |
ALLOW_METHODS_FIELD_NUMBER |
static int |
ALLOW_ORIGIN_FIELD_NUMBER |
static int |
ALLOW_ORIGINS_FIELD_NUMBER |
static int |
EXPOSE_HEADERS_FIELD_NUMBER |
static int |
MAX_AGE_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.BoolValue |
getAllowCredentials()
Indicates whether the caller is allowed to send the actual request
(not the preflight) using credentials.
|
com.google.protobuf.BoolValueOrBuilder |
getAllowCredentialsOrBuilder()
Indicates whether the caller is allowed to send the actual request
(not the preflight) using credentials.
|
String |
getAllowHeaders(int index)
List of HTTP headers that can be used when requesting the
resource.
|
com.google.protobuf.ByteString |
getAllowHeadersBytes(int index)
List of HTTP headers that can be used when requesting the
resource.
|
int |
getAllowHeadersCount()
List of HTTP headers that can be used when requesting the
resource.
|
com.google.protobuf.ProtocolStringList |
getAllowHeadersList()
List of HTTP headers that can be used when requesting the
resource.
|
String |
getAllowMethods(int index)
List of HTTP methods allowed to access the resource.
|
com.google.protobuf.ByteString |
getAllowMethodsBytes(int index)
List of HTTP methods allowed to access the resource.
|
int |
getAllowMethodsCount()
List of HTTP methods allowed to access the resource.
|
com.google.protobuf.ProtocolStringList |
getAllowMethodsList()
List of HTTP methods allowed to access the resource.
|
String |
getAllowOrigin(int index)
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
com.google.protobuf.ByteString |
getAllowOriginBytes(int index)
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
int |
getAllowOriginCount()
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
com.google.protobuf.ProtocolStringList |
getAllowOriginList()
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
VirtualServiceOuterClass.StringMatch |
getAllowOrigins(int index)
String patterns that match allowed origins.
|
int |
getAllowOriginsCount()
String patterns that match allowed origins.
|
List<VirtualServiceOuterClass.StringMatch> |
getAllowOriginsList()
String patterns that match allowed origins.
|
VirtualServiceOuterClass.StringMatchOrBuilder |
getAllowOriginsOrBuilder(int index)
String patterns that match allowed origins.
|
List<? extends VirtualServiceOuterClass.StringMatchOrBuilder> |
getAllowOriginsOrBuilderList()
String patterns that match allowed origins.
|
static VirtualServiceOuterClass.CorsPolicy |
getDefaultInstance() |
VirtualServiceOuterClass.CorsPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getExposeHeaders(int index)
A list of HTTP headers that the browsers are allowed to
access.
|
com.google.protobuf.ByteString |
getExposeHeadersBytes(int index)
A list of HTTP headers that the browsers are allowed to
access.
|
int |
getExposeHeadersCount()
A list of HTTP headers that the browsers are allowed to
access.
|
com.google.protobuf.ProtocolStringList |
getExposeHeadersList()
A list of HTTP headers that the browsers are allowed to
access.
|
com.google.protobuf.Duration |
getMaxAge()
Specifies how long the results of a preflight request can be
cached.
|
com.google.protobuf.DurationOrBuilder |
getMaxAgeOrBuilder()
Specifies how long the results of a preflight request can be
cached.
|
com.google.protobuf.Parser<VirtualServiceOuterClass.CorsPolicy> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAllowCredentials()
Indicates whether the caller is allowed to send the actual request
(not the preflight) using credentials.
|
int |
hashCode() |
boolean |
hasMaxAge()
Specifies how long the results of a preflight request can be
cached.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static VirtualServiceOuterClass.CorsPolicy.Builder |
newBuilder() |
static VirtualServiceOuterClass.CorsPolicy.Builder |
newBuilder(VirtualServiceOuterClass.CorsPolicy prototype) |
VirtualServiceOuterClass.CorsPolicy.Builder |
newBuilderForType() |
protected VirtualServiceOuterClass.CorsPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static VirtualServiceOuterClass.CorsPolicy |
parseDelimitedFrom(InputStream input) |
static VirtualServiceOuterClass.CorsPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VirtualServiceOuterClass.CorsPolicy |
parseFrom(byte[] data) |
static VirtualServiceOuterClass.CorsPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VirtualServiceOuterClass.CorsPolicy |
parseFrom(ByteBuffer data) |
static VirtualServiceOuterClass.CorsPolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VirtualServiceOuterClass.CorsPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static VirtualServiceOuterClass.CorsPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VirtualServiceOuterClass.CorsPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static VirtualServiceOuterClass.CorsPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VirtualServiceOuterClass.CorsPolicy |
parseFrom(InputStream input) |
static VirtualServiceOuterClass.CorsPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<VirtualServiceOuterClass.CorsPolicy> |
parser() |
VirtualServiceOuterClass.CorsPolicy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int ALLOW_ORIGIN_FIELD_NUMBER
public static final int ALLOW_ORIGINS_FIELD_NUMBER
public static final int ALLOW_METHODS_FIELD_NUMBER
public static final int ALLOW_HEADERS_FIELD_NUMBER
public static final int EXPOSE_HEADERS_FIELD_NUMBER
public static final int MAX_AGE_FIELD_NUMBER
public static final int ALLOW_CREDENTIALS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 在类中 com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3@Deprecated public com.google.protobuf.ProtocolStringList getAllowOriginList()
The 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@Deprecated public int getAllowOriginCount()
The 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@Deprecated public String getAllowOrigin(int index)
The 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.CorsPolicyOrBuilderindex - The index of the element to return.@Deprecated public com.google.protobuf.ByteString getAllowOriginBytes(int index)
The 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.CorsPolicyOrBuilderindex - The index of the value to return.public List<VirtualServiceOuterClass.StringMatch> 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;public List<? extends VirtualServiceOuterClass.StringMatchOrBuilder> 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;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;public VirtualServiceOuterClass.StringMatch getAllowOrigins(int index)
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;public VirtualServiceOuterClass.StringMatchOrBuilder getAllowOriginsOrBuilder(int index)
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;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.CorsPolicyOrBuilderpublic 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.CorsPolicyOrBuilderpublic String getAllowMethods(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;getAllowMethods 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderindex - The index of the element to return.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.CorsPolicyOrBuilderindex - The index of the value to return.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.CorsPolicyOrBuilderpublic 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.CorsPolicyOrBuilderpublic String getAllowHeaders(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;getAllowHeaders 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderindex - The index of the element to return.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.CorsPolicyOrBuilderindex - The index of the value to return.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.CorsPolicyOrBuilderpublic 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.CorsPolicyOrBuilderpublic String getExposeHeaders(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;getExposeHeaders 在接口中 VirtualServiceOuterClass.CorsPolicyOrBuilderindex - The index of the element to return.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.CorsPolicyOrBuilderindex - The index of the value to return.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.CorsPolicyOrBuilderpublic 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.CorsPolicyOrBuilderpublic 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;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.CorsPolicyOrBuilderpublic 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.CorsPolicyOrBuilderpublic 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;public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static VirtualServiceOuterClass.CorsPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VirtualServiceOuterClass.CorsPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VirtualServiceOuterClass.CorsPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VirtualServiceOuterClass.CorsPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VirtualServiceOuterClass.CorsPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VirtualServiceOuterClass.CorsPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VirtualServiceOuterClass.CorsPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static VirtualServiceOuterClass.CorsPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static VirtualServiceOuterClass.CorsPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static VirtualServiceOuterClass.CorsPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static VirtualServiceOuterClass.CorsPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static VirtualServiceOuterClass.CorsPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic VirtualServiceOuterClass.CorsPolicy.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static VirtualServiceOuterClass.CorsPolicy.Builder newBuilder()
public static VirtualServiceOuterClass.CorsPolicy.Builder newBuilder(VirtualServiceOuterClass.CorsPolicy prototype)
public VirtualServiceOuterClass.CorsPolicy.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected VirtualServiceOuterClass.CorsPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static VirtualServiceOuterClass.CorsPolicy getDefaultInstance()
public static com.google.protobuf.Parser<VirtualServiceOuterClass.CorsPolicy> parser()
public com.google.protobuf.Parser<VirtualServiceOuterClass.CorsPolicy> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public VirtualServiceOuterClass.CorsPolicy getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2018–2023 Alibaba Group. All rights reserved.