类 GatewayOuterClass.Gateway.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
-
- istio.networking.v1alpha3.GatewayOuterClass.Gateway.Builder
-
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GatewayOuterClass.GatewayOrBuilder,java.lang.Cloneable
public static final class GatewayOuterClass.Gateway.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder> implements GatewayOuterClass.GatewayOrBuilder
Gateway describes a load balancer operating at the edge of the mesh receiving incoming or outgoing HTTP/TCP connections. <!-- crd generation tags +cue-gen:Gateway:groupName:networking.istio.io +cue-gen:Gateway:version:v1alpha3 +cue-gen:Gateway:storageVersion +cue-gen:Gateway:annotations:helm.sh/resource-policy=keep +cue-gen:Gateway:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:Gateway:subresource:status +cue-gen:Gateway:scope:Namespaced +cue-gen:Gateway:resource:categories=istio-io,networking-istio-io,shortNames=gw +cue-gen:Gateway:preserveUnknownFields:false --> <!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1alpha3 +genclient +k8s:deepcopy-gen=true -->
Protobuf typeistio.networking.v1alpha3.Gateway
-
-
字段概要
字段 修饰符和类型 字段 说明 private intbitField0_private com.google.protobuf.MapField<java.lang.String,java.lang.String>selector_private java.util.List<GatewayOuterClass.Server>servers_private com.google.protobuf.RepeatedFieldBuilderV3<GatewayOuterClass.Server,GatewayOuterClass.Server.Builder,GatewayOuterClass.ServerOrBuilder>serversBuilder_
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 GatewayOuterClass.Gateway.BuilderaddAllServers(java.lang.Iterable<? extends GatewayOuterClass.Server> values)A list of server specifications.GatewayOuterClass.Gateway.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)GatewayOuterClass.Gateway.BuilderaddServers(int index, GatewayOuterClass.Server value)A list of server specifications.GatewayOuterClass.Gateway.BuilderaddServers(int index, GatewayOuterClass.Server.Builder builderForValue)A list of server specifications.GatewayOuterClass.Gateway.BuilderaddServers(GatewayOuterClass.Server value)A list of server specifications.GatewayOuterClass.Gateway.BuilderaddServers(GatewayOuterClass.Server.Builder builderForValue)A list of server specifications.GatewayOuterClass.Server.BuilderaddServersBuilder()A list of server specifications.GatewayOuterClass.Server.BuilderaddServersBuilder(int index)A list of server specifications.GatewayOuterClass.Gatewaybuild()GatewayOuterClass.GatewaybuildPartial()private voidbuildPartial0(GatewayOuterClass.Gateway result)private voidbuildPartialRepeatedFields(GatewayOuterClass.Gateway result)GatewayOuterClass.Gateway.Builderclear()GatewayOuterClass.Gateway.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GatewayOuterClass.Gateway.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GatewayOuterClass.Gateway.BuilderclearSelector()GatewayOuterClass.Gateway.BuilderclearServers()A list of server specifications.GatewayOuterClass.Gateway.Builderclone()booleancontainsSelector(java.lang.String key)One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied.private voidensureServersIsMutable()GatewayOuterClass.GatewaygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.util.Map<java.lang.String,java.lang.String>getMutableSelector()已过时。java.util.Map<java.lang.String,java.lang.String>getSelector()已过时。intgetSelectorCount()One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied.java.util.Map<java.lang.String,java.lang.String>getSelectorMap()One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied.java.lang.StringgetSelectorOrDefault(java.lang.String key, java.lang.String defaultValue)One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied.java.lang.StringgetSelectorOrThrow(java.lang.String key)One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied.GatewayOuterClass.ServergetServers(int index)A list of server specifications.GatewayOuterClass.Server.BuildergetServersBuilder(int index)A list of server specifications.java.util.List<GatewayOuterClass.Server.Builder>getServersBuilderList()A list of server specifications.intgetServersCount()A list of server specifications.private com.google.protobuf.RepeatedFieldBuilderV3<GatewayOuterClass.Server,GatewayOuterClass.Server.Builder,GatewayOuterClass.ServerOrBuilder>getServersFieldBuilder()java.util.List<GatewayOuterClass.Server>getServersList()A list of server specifications.GatewayOuterClass.ServerOrBuildergetServersOrBuilder(int index)A list of server specifications.java.util.List<? extends GatewayOuterClass.ServerOrBuilder>getServersOrBuilderList()A list of server specifications.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetMutableSelector()private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetSelector()booleanisInitialized()GatewayOuterClass.Gateway.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GatewayOuterClass.Gateway.BuildermergeFrom(com.google.protobuf.Message other)GatewayOuterClass.Gateway.BuildermergeFrom(GatewayOuterClass.Gateway other)GatewayOuterClass.Gateway.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GatewayOuterClass.Gateway.BuilderputAllSelector(java.util.Map<java.lang.String,java.lang.String> values)One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied.GatewayOuterClass.Gateway.BuilderputSelector(java.lang.String key, java.lang.String value)One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied.GatewayOuterClass.Gateway.BuilderremoveSelector(java.lang.String key)One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied.GatewayOuterClass.Gateway.BuilderremoveServers(int index)A list of server specifications.GatewayOuterClass.Gateway.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)GatewayOuterClass.Gateway.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)GatewayOuterClass.Gateway.BuildersetServers(int index, GatewayOuterClass.Server value)A list of server specifications.GatewayOuterClass.Gateway.BuildersetServers(int index, GatewayOuterClass.Server.Builder builderForValue)A list of server specifications.GatewayOuterClass.Gateway.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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
-
-
-
-
字段详细资料
-
bitField0_
private int bitField0_
-
servers_
private java.util.List<GatewayOuterClass.Server> servers_
-
serversBuilder_
private com.google.protobuf.RepeatedFieldBuilderV3<GatewayOuterClass.Server,GatewayOuterClass.Server.Builder,GatewayOuterClass.ServerOrBuilder> serversBuilder_
-
selector_
private com.google.protobuf.MapField<java.lang.String,java.lang.String> selector_
-
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- 覆盖:
internalGetMapField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- 覆盖:
internalGetMutableMapField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
-
clear
public GatewayOuterClass.Gateway.Builder clear()
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.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<GatewayOuterClass.Gateway.Builder>
-
getDefaultInstanceForType
public GatewayOuterClass.Gateway getDefaultInstanceForType()
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
public GatewayOuterClass.Gateway build()
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
public GatewayOuterClass.Gateway buildPartial()
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(GatewayOuterClass.Gateway result)
-
buildPartial0
private void buildPartial0(GatewayOuterClass.Gateway result)
-
clone
public GatewayOuterClass.Gateway.Builder clone()
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
-
setField
public GatewayOuterClass.Gateway.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
-
clearField
public GatewayOuterClass.Gateway.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
-
clearOneof
public GatewayOuterClass.Gateway.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
-
setRepeatedField
public GatewayOuterClass.Gateway.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
-
addRepeatedField
public GatewayOuterClass.Gateway.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
-
mergeFrom
public GatewayOuterClass.Gateway.Builder mergeFrom(com.google.protobuf.Message other)
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Gateway.Builder>
-
mergeFrom
public GatewayOuterClass.Gateway.Builder mergeFrom(GatewayOuterClass.Gateway other)
-
isInitialized
public final boolean isInitialized()
- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
-
mergeFrom
public GatewayOuterClass.Gateway.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Gateway.Builder>- 抛出:
java.io.IOException
-
ensureServersIsMutable
private void ensureServersIsMutable()
-
getServersList
public java.util.List<GatewayOuterClass.Server> getServersList()
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
getServersCount
public int getServersCount()
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
getServers
public GatewayOuterClass.Server getServers(int index)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getServers在接口中GatewayOuterClass.GatewayOrBuilder
-
setServers
public GatewayOuterClass.Gateway.Builder setServers(int index, GatewayOuterClass.Server value)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
setServers
public GatewayOuterClass.Gateway.Builder setServers(int index, GatewayOuterClass.Server.Builder builderForValue)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
addServers
public GatewayOuterClass.Gateway.Builder addServers(GatewayOuterClass.Server value)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
addServers
public GatewayOuterClass.Gateway.Builder addServers(int index, GatewayOuterClass.Server value)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
addServers
public GatewayOuterClass.Gateway.Builder addServers(GatewayOuterClass.Server.Builder builderForValue)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
addServers
public GatewayOuterClass.Gateway.Builder addServers(int index, GatewayOuterClass.Server.Builder builderForValue)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
addAllServers
public GatewayOuterClass.Gateway.Builder addAllServers(java.lang.Iterable<? extends GatewayOuterClass.Server> values)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
clearServers
public GatewayOuterClass.Gateway.Builder clearServers()
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
removeServers
public GatewayOuterClass.Gateway.Builder removeServers(int index)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
getServersBuilder
public GatewayOuterClass.Server.Builder getServersBuilder(int index)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
getServersOrBuilder
public GatewayOuterClass.ServerOrBuilder getServersOrBuilder(int index)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
getServersOrBuilderList
public java.util.List<? extends GatewayOuterClass.ServerOrBuilder> getServersOrBuilderList()
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
addServersBuilder
public GatewayOuterClass.Server.Builder addServersBuilder()
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
addServersBuilder
public GatewayOuterClass.Server.Builder addServersBuilder(int index)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
getServersBuilderList
public java.util.List<GatewayOuterClass.Server.Builder> getServersBuilderList()
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
-
getServersFieldBuilder
private com.google.protobuf.RepeatedFieldBuilderV3<GatewayOuterClass.Server,GatewayOuterClass.Server.Builder,GatewayOuterClass.ServerOrBuilder> getServersFieldBuilder()
-
internalGetSelector
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetSelector()
-
internalGetMutableSelector
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetMutableSelector()
-
getSelectorCount
public int getSelectorCount()
从接口复制的说明:GatewayOuterClass.GatewayOrBuilderOne or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied. By default workloads are searched across all namespaces based on label selectors. This implies that a gateway resource in the namespace "foo" can select pods in the namespace "bar" based on labels. This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE` environment variable in istiod. If this variable is set to true, the scope of label search is restricted to the configuration namespace in which the the resource is present. In other words, the Gateway resource must reside in the same namespace as the gateway workload instance. If selector is nil, the Gateway will be applied to all workloads.
map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
-
containsSelector
public boolean containsSelector(java.lang.String key)
One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied. By default workloads are searched across all namespaces based on label selectors. This implies that a gateway resource in the namespace "foo" can select pods in the namespace "bar" based on labels. This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE` environment variable in istiod. If this variable is set to true, the scope of label search is restricted to the configuration namespace in which the the resource is present. In other words, the Gateway resource must reside in the same namespace as the gateway workload instance. If selector is nil, the Gateway will be applied to all workloads.
map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
-
getSelector
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getSelector()
已过时。UsegetSelectorMap()instead.
-
getSelectorMap
public java.util.Map<java.lang.String,java.lang.String> getSelectorMap()
One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied. By default workloads are searched across all namespaces based on label selectors. This implies that a gateway resource in the namespace "foo" can select pods in the namespace "bar" based on labels. This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE` environment variable in istiod. If this variable is set to true, the scope of label search is restricted to the configuration namespace in which the the resource is present. In other words, the Gateway resource must reside in the same namespace as the gateway workload instance. If selector is nil, the Gateway will be applied to all workloads.
map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
-
getSelectorOrDefault
public java.lang.String getSelectorOrDefault(java.lang.String key, java.lang.String defaultValue)One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied. By default workloads are searched across all namespaces based on label selectors. This implies that a gateway resource in the namespace "foo" can select pods in the namespace "bar" based on labels. This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE` environment variable in istiod. If this variable is set to true, the scope of label search is restricted to the configuration namespace in which the the resource is present. In other words, the Gateway resource must reside in the same namespace as the gateway workload instance. If selector is nil, the Gateway will be applied to all workloads.
map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
-
getSelectorOrThrow
public java.lang.String getSelectorOrThrow(java.lang.String key)
One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied. By default workloads are searched across all namespaces based on label selectors. This implies that a gateway resource in the namespace "foo" can select pods in the namespace "bar" based on labels. This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE` environment variable in istiod. If this variable is set to true, the scope of label search is restricted to the configuration namespace in which the the resource is present. In other words, the Gateway resource must reside in the same namespace as the gateway workload instance. If selector is nil, the Gateway will be applied to all workloads.
map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
-
clearSelector
public GatewayOuterClass.Gateway.Builder clearSelector()
-
removeSelector
public GatewayOuterClass.Gateway.Builder removeSelector(java.lang.String key)
One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied. By default workloads are searched across all namespaces based on label selectors. This implies that a gateway resource in the namespace "foo" can select pods in the namespace "bar" based on labels. This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE` environment variable in istiod. If this variable is set to true, the scope of label search is restricted to the configuration namespace in which the the resource is present. In other words, the Gateway resource must reside in the same namespace as the gateway workload instance. If selector is nil, the Gateway will be applied to all workloads.
map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
-
getMutableSelector
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableSelector()
已过时。Use alternate mutation accessors instead.
-
putSelector
public GatewayOuterClass.Gateway.Builder putSelector(java.lang.String key, java.lang.String value)
One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied. By default workloads are searched across all namespaces based on label selectors. This implies that a gateway resource in the namespace "foo" can select pods in the namespace "bar" based on labels. This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE` environment variable in istiod. If this variable is set to true, the scope of label search is restricted to the configuration namespace in which the the resource is present. In other words, the Gateway resource must reside in the same namespace as the gateway workload instance. If selector is nil, the Gateway will be applied to all workloads.
map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
-
putAllSelector
public GatewayOuterClass.Gateway.Builder putAllSelector(java.util.Map<java.lang.String,java.lang.String> values)
One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied. By default workloads are searched across all namespaces based on label selectors. This implies that a gateway resource in the namespace "foo" can select pods in the namespace "bar" based on labels. This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE` environment variable in istiod. If this variable is set to true, the scope of label search is restricted to the configuration namespace in which the the resource is present. In other words, the Gateway resource must reside in the same namespace as the gateway workload instance. If selector is nil, the Gateway will be applied to all workloads.
map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
-
setUnknownFields
public final GatewayOuterClass.Gateway.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
-
mergeUnknownFields
public final GatewayOuterClass.Gateway.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
-
-