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 type
istio.networking.v1alpha3.Gateway| 限定符和类型 | 方法和说明 |
|---|---|
GatewayOuterClass.Gateway.Builder |
addAllServers(Iterable<? extends GatewayOuterClass.Server> values)
A list of server specifications.
|
GatewayOuterClass.Gateway.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GatewayOuterClass.Gateway.Builder |
addServers(GatewayOuterClass.Server.Builder builderForValue)
A list of server specifications.
|
GatewayOuterClass.Gateway.Builder |
addServers(GatewayOuterClass.Server value)
A list of server specifications.
|
GatewayOuterClass.Gateway.Builder |
addServers(int index,
GatewayOuterClass.Server.Builder builderForValue)
A list of server specifications.
|
GatewayOuterClass.Gateway.Builder |
addServers(int index,
GatewayOuterClass.Server value)
A list of server specifications.
|
GatewayOuterClass.Server.Builder |
addServersBuilder()
A list of server specifications.
|
GatewayOuterClass.Server.Builder |
addServersBuilder(int index)
A list of server specifications.
|
GatewayOuterClass.Gateway |
build() |
GatewayOuterClass.Gateway |
buildPartial() |
GatewayOuterClass.Gateway.Builder |
clear() |
GatewayOuterClass.Gateway.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GatewayOuterClass.Gateway.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GatewayOuterClass.Gateway.Builder |
clearSelector() |
GatewayOuterClass.Gateway.Builder |
clearServers()
A list of server specifications.
|
GatewayOuterClass.Gateway.Builder |
clone() |
boolean |
containsSelector(String key)
One or more labels that indicate a specific set of pods/VMs
on which this gateway configuration should be applied.
|
GatewayOuterClass.Gateway |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getMutableSelector()
已过时。
|
Map<String,String> |
getSelector()
已过时。
|
int |
getSelectorCount()
One or more labels that indicate a specific set of pods/VMs
on which this gateway configuration should be applied.
|
Map<String,String> |
getSelectorMap()
One or more labels that indicate a specific set of pods/VMs
on which this gateway configuration should be applied.
|
String |
getSelectorOrDefault(String key,
String defaultValue)
One or more labels that indicate a specific set of pods/VMs
on which this gateway configuration should be applied.
|
String |
getSelectorOrThrow(String key)
One or more labels that indicate a specific set of pods/VMs
on which this gateway configuration should be applied.
|
GatewayOuterClass.Server |
getServers(int index)
A list of server specifications.
|
GatewayOuterClass.Server.Builder |
getServersBuilder(int index)
A list of server specifications.
|
List<GatewayOuterClass.Server.Builder> |
getServersBuilderList()
A list of server specifications.
|
int |
getServersCount()
A list of server specifications.
|
List<GatewayOuterClass.Server> |
getServersList()
A list of server specifications.
|
GatewayOuterClass.ServerOrBuilder |
getServersOrBuilder(int index)
A list of server specifications.
|
List<? extends GatewayOuterClass.ServerOrBuilder> |
getServersOrBuilderList()
A list of server specifications.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
GatewayOuterClass.Gateway.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GatewayOuterClass.Gateway.Builder |
mergeFrom(GatewayOuterClass.Gateway other) |
GatewayOuterClass.Gateway.Builder |
mergeFrom(com.google.protobuf.Message other) |
GatewayOuterClass.Gateway.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GatewayOuterClass.Gateway.Builder |
putAllSelector(Map<String,String> values)
One or more labels that indicate a specific set of pods/VMs
on which this gateway configuration should be applied.
|
GatewayOuterClass.Gateway.Builder |
putSelector(String key,
String value)
One or more labels that indicate a specific set of pods/VMs
on which this gateway configuration should be applied.
|
GatewayOuterClass.Gateway.Builder |
removeSelector(String key)
One or more labels that indicate a specific set of pods/VMs
on which this gateway configuration should be applied.
|
GatewayOuterClass.Gateway.Builder |
removeServers(int index)
A list of server specifications.
|
GatewayOuterClass.Gateway.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GatewayOuterClass.Gateway.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GatewayOuterClass.Gateway.Builder |
setServers(int index,
GatewayOuterClass.Server.Builder builderForValue)
A list of server specifications.
|
GatewayOuterClass.Gateway.Builder |
setServers(int index,
GatewayOuterClass.Server value)
A list of server specifications.
|
GatewayOuterClass.Gateway.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>public GatewayOuterClass.Gateway.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>public GatewayOuterClass.Gateway getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic GatewayOuterClass.Gateway build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic GatewayOuterClass.Gateway buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic GatewayOuterClass.Gateway.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>public GatewayOuterClass.Gateway.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>public GatewayOuterClass.Gateway.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>public GatewayOuterClass.Gateway.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>public GatewayOuterClass.Gateway.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>public GatewayOuterClass.Gateway.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>public GatewayOuterClass.Gateway.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Gateway.Builder>public GatewayOuterClass.Gateway.Builder mergeFrom(GatewayOuterClass.Gateway other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>public GatewayOuterClass.Gateway.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Gateway.Builder>IOExceptionpublic List<GatewayOuterClass.Server> getServersList()
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];public int getServersCount()
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];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.GatewayOrBuilderpublic 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];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];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];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];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];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];public GatewayOuterClass.Gateway.Builder addAllServers(Iterable<? extends GatewayOuterClass.Server> values)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];public GatewayOuterClass.Gateway.Builder clearServers()
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];public GatewayOuterClass.Gateway.Builder removeServers(int index)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];public GatewayOuterClass.Server.Builder getServersBuilder(int index)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];public GatewayOuterClass.ServerOrBuilder getServersOrBuilder(int index)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];public List<? extends GatewayOuterClass.ServerOrBuilder> getServersOrBuilderList()
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];public GatewayOuterClass.Server.Builder addServersBuilder()
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];public GatewayOuterClass.Server.Builder addServersBuilder(int index)
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];public List<GatewayOuterClass.Server.Builder> getServersBuilderList()
A list of server specifications.
repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];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];public boolean containsSelector(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];@Deprecated public Map<String,String> getSelector()
getSelectorMap() instead.public Map<String,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];public String getSelectorOrDefault(String key, 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];public String getSelectorOrThrow(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];public GatewayOuterClass.Gateway.Builder clearSelector()
public GatewayOuterClass.Gateway.Builder removeSelector(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];@Deprecated public Map<String,String> getMutableSelector()
public GatewayOuterClass.Gateway.Builder putSelector(String key, 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];public GatewayOuterClass.Gateway.Builder putAllSelector(Map<String,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];public final GatewayOuterClass.Gateway.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>public final GatewayOuterClass.Gateway.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>Copyright © 2018–2023 Alibaba Group. All rights reserved.