类 WorkloadEntryOuterClass.WorkloadEntry.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
- istio.networking.v1alpha3.WorkloadEntryOuterClass.WorkloadEntry.Builder
-
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,WorkloadEntryOuterClass.WorkloadEntryOrBuilder,java.lang.Cloneable
public static final class WorkloadEntryOuterClass.WorkloadEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WorkloadEntryOuterClass.WorkloadEntry.Builder> implements WorkloadEntryOuterClass.WorkloadEntryOrBuilder
WorkloadEntry enables specifying the properties of a single non-Kubernetes workload such a VM or a bare metal services that can be referred to by service entries. <!-- crd generation tags +cue-gen:WorkloadEntry:groupName:networking.istio.io +cue-gen:WorkloadEntry:version:v1alpha3 +cue-gen:WorkloadEntry:storageVersion +cue-gen:WorkloadEntry:annotations:helm.sh/resource-policy=keep +cue-gen:WorkloadEntry:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:WorkloadEntry:subresource:status +cue-gen:WorkloadEntry:scope:Namespaced +cue-gen:WorkloadEntry:resource:categories=istio-io,networking-istio-io,shortNames=we,plural=workloadentries +cue-gen:WorkloadEntry:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" +cue-gen:WorkloadEntry:printerColumn:name=Address,type=string,JSONPath=.spec.address,description="Address associated with the network endpoint." +cue-gen:WorkloadEntry:preserveUnknownFields:false --> <!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1alpha3 +genclient +k8s:deepcopy-gen=true -->
Protobuf typeistio.networking.v1alpha3.WorkloadEntry
-
-
字段概要
字段 修饰符和类型 字段 说明 private java.lang.Objectaddress_private intbitField0_private com.google.protobuf.MapField<java.lang.String,java.lang.String>labels_private java.lang.Objectlocality_private java.lang.Objectnetwork_private com.google.protobuf.MapField<java.lang.String,java.lang.Integer>ports_private java.lang.ObjectserviceAccount_private intweight_
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 WorkloadEntryOuterClass.WorkloadEntry.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)WorkloadEntryOuterClass.WorkloadEntrybuild()WorkloadEntryOuterClass.WorkloadEntrybuildPartial()private voidbuildPartial0(WorkloadEntryOuterClass.WorkloadEntry result)WorkloadEntryOuterClass.WorkloadEntry.Builderclear()WorkloadEntryOuterClass.WorkloadEntry.BuilderclearAddress()Address associated with the network endpoint without the port.WorkloadEntryOuterClass.WorkloadEntry.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)WorkloadEntryOuterClass.WorkloadEntry.BuilderclearLabels()WorkloadEntryOuterClass.WorkloadEntry.BuilderclearLocality()The locality associated with the endpoint.WorkloadEntryOuterClass.WorkloadEntry.BuilderclearNetwork()Network enables Istio to group endpoints resident in the same L3 domain/network.WorkloadEntryOuterClass.WorkloadEntry.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)WorkloadEntryOuterClass.WorkloadEntry.BuilderclearPorts()WorkloadEntryOuterClass.WorkloadEntry.BuilderclearServiceAccount()The service account associated with the workload if a sidecar is present in the workload.WorkloadEntryOuterClass.WorkloadEntry.BuilderclearWeight()The load balancing weight associated with the endpoint.WorkloadEntryOuterClass.WorkloadEntry.Builderclone()booleancontainsLabels(java.lang.String key)One or more labels associated with the endpoint.booleancontainsPorts(java.lang.String key)Set of ports associated with the endpoint.java.lang.StringgetAddress()Address associated with the network endpoint without the port.com.google.protobuf.ByteStringgetAddressBytes()Address associated with the network endpoint without the port.WorkloadEntryOuterClass.WorkloadEntrygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.util.Map<java.lang.String,java.lang.String>getLabels()已过时。intgetLabelsCount()One or more labels associated with the endpoint.java.util.Map<java.lang.String,java.lang.String>getLabelsMap()One or more labels associated with the endpoint.java.lang.StringgetLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)One or more labels associated with the endpoint.java.lang.StringgetLabelsOrThrow(java.lang.String key)One or more labels associated with the endpoint.java.lang.StringgetLocality()The locality associated with the endpoint.com.google.protobuf.ByteStringgetLocalityBytes()The locality associated with the endpoint.java.util.Map<java.lang.String,java.lang.String>getMutableLabels()已过时。java.util.Map<java.lang.String,java.lang.Integer>getMutablePorts()已过时。java.lang.StringgetNetwork()Network enables Istio to group endpoints resident in the same L3 domain/network.com.google.protobuf.ByteStringgetNetworkBytes()Network enables Istio to group endpoints resident in the same L3 domain/network.java.util.Map<java.lang.String,java.lang.Integer>getPorts()已过时。intgetPortsCount()Set of ports associated with the endpoint.java.util.Map<java.lang.String,java.lang.Integer>getPortsMap()Set of ports associated with the endpoint.intgetPortsOrDefault(java.lang.String key, int defaultValue)Set of ports associated with the endpoint.intgetPortsOrThrow(java.lang.String key)Set of ports associated with the endpoint.java.lang.StringgetServiceAccount()The service account associated with the workload if a sidecar is present in the workload.com.google.protobuf.ByteStringgetServiceAccountBytes()The service account associated with the workload if a sidecar is present in the workload.intgetWeight()The load balancing weight associated with the endpoint.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetLabels()protected com.google.protobuf.MapFieldinternalGetMapField(int number)private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetMutableLabels()protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)private com.google.protobuf.MapField<java.lang.String,java.lang.Integer>internalGetMutablePorts()private com.google.protobuf.MapField<java.lang.String,java.lang.Integer>internalGetPorts()booleanisInitialized()WorkloadEntryOuterClass.WorkloadEntry.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)WorkloadEntryOuterClass.WorkloadEntry.BuildermergeFrom(com.google.protobuf.Message other)WorkloadEntryOuterClass.WorkloadEntry.BuildermergeFrom(WorkloadEntryOuterClass.WorkloadEntry other)WorkloadEntryOuterClass.WorkloadEntry.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)WorkloadEntryOuterClass.WorkloadEntry.BuilderputAllLabels(java.util.Map<java.lang.String,java.lang.String> values)One or more labels associated with the endpoint.WorkloadEntryOuterClass.WorkloadEntry.BuilderputAllPorts(java.util.Map<java.lang.String,java.lang.Integer> values)Set of ports associated with the endpoint.WorkloadEntryOuterClass.WorkloadEntry.BuilderputLabels(java.lang.String key, java.lang.String value)One or more labels associated with the endpoint.WorkloadEntryOuterClass.WorkloadEntry.BuilderputPorts(java.lang.String key, int value)Set of ports associated with the endpoint.WorkloadEntryOuterClass.WorkloadEntry.BuilderremoveLabels(java.lang.String key)One or more labels associated with the endpoint.WorkloadEntryOuterClass.WorkloadEntry.BuilderremovePorts(java.lang.String key)Set of ports associated with the endpoint.WorkloadEntryOuterClass.WorkloadEntry.BuildersetAddress(java.lang.String value)Address associated with the network endpoint without the port.WorkloadEntryOuterClass.WorkloadEntry.BuildersetAddressBytes(com.google.protobuf.ByteString value)Address associated with the network endpoint without the port.WorkloadEntryOuterClass.WorkloadEntry.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)WorkloadEntryOuterClass.WorkloadEntry.BuildersetLocality(java.lang.String value)The locality associated with the endpoint.WorkloadEntryOuterClass.WorkloadEntry.BuildersetLocalityBytes(com.google.protobuf.ByteString value)The locality associated with the endpoint.WorkloadEntryOuterClass.WorkloadEntry.BuildersetNetwork(java.lang.String value)Network enables Istio to group endpoints resident in the same L3 domain/network.WorkloadEntryOuterClass.WorkloadEntry.BuildersetNetworkBytes(com.google.protobuf.ByteString value)Network enables Istio to group endpoints resident in the same L3 domain/network.WorkloadEntryOuterClass.WorkloadEntry.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)WorkloadEntryOuterClass.WorkloadEntry.BuildersetServiceAccount(java.lang.String value)The service account associated with the workload if a sidecar is present in the workload.WorkloadEntryOuterClass.WorkloadEntry.BuildersetServiceAccountBytes(com.google.protobuf.ByteString value)The service account associated with the workload if a sidecar is present in the workload.WorkloadEntryOuterClass.WorkloadEntry.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)WorkloadEntryOuterClass.WorkloadEntry.BuildersetWeight(int value)The load balancing weight associated with the endpoint.-
从类继承的方法 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_
-
address_
private java.lang.Object address_
-
ports_
private com.google.protobuf.MapField<java.lang.String,java.lang.Integer> ports_
-
labels_
private com.google.protobuf.MapField<java.lang.String,java.lang.String> labels_
-
network_
private java.lang.Object network_
-
locality_
private java.lang.Object locality_
-
weight_
private int weight_
-
serviceAccount_
private java.lang.Object serviceAccount_
-
-
方法详细资料
-
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<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- 覆盖:
internalGetMutableMapField在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
clear
public WorkloadEntryOuterClass.WorkloadEntry.Builder clear()
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadEntryOuterClass.WorkloadEntry.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<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
getDefaultInstanceForType
public WorkloadEntryOuterClass.WorkloadEntry getDefaultInstanceForType()
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
public WorkloadEntryOuterClass.WorkloadEntry build()
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
public WorkloadEntryOuterClass.WorkloadEntry buildPartial()
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(WorkloadEntryOuterClass.WorkloadEntry result)
-
clone
public WorkloadEntryOuterClass.WorkloadEntry.Builder clone()
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
setField
public WorkloadEntryOuterClass.WorkloadEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
clearField
public WorkloadEntryOuterClass.WorkloadEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
clearOneof
public WorkloadEntryOuterClass.WorkloadEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
setRepeatedField
public WorkloadEntryOuterClass.WorkloadEntry.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<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
addRepeatedField
public WorkloadEntryOuterClass.WorkloadEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
mergeFrom
public WorkloadEntryOuterClass.WorkloadEntry.Builder mergeFrom(com.google.protobuf.Message other)
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
mergeFrom
public WorkloadEntryOuterClass.WorkloadEntry.Builder mergeFrom(WorkloadEntryOuterClass.WorkloadEntry other)
-
isInitialized
public final boolean isInitialized()
- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
mergeFrom
public WorkloadEntryOuterClass.WorkloadEntry.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<WorkloadEntryOuterClass.WorkloadEntry.Builder>- 抛出:
java.io.IOException
-
getAddress
public java.lang.String getAddress()
Address associated with the network endpoint without the port. Domain names can be used if and only if the resolution is set to DNS, and must be fully-qualified without wildcards. Use the form unix:///absolute/path/to/socket for Unix domain socket endpoints.
string address = 1 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getAddress在接口中WorkloadEntryOuterClass.WorkloadEntryOrBuilder- 返回:
- The address.
-
getAddressBytes
public com.google.protobuf.ByteString getAddressBytes()
Address associated with the network endpoint without the port. Domain names can be used if and only if the resolution is set to DNS, and must be fully-qualified without wildcards. Use the form unix:///absolute/path/to/socket for Unix domain socket endpoints.
string address = 1 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getAddressBytes在接口中WorkloadEntryOuterClass.WorkloadEntryOrBuilder- 返回:
- The bytes for address.
-
setAddress
public WorkloadEntryOuterClass.WorkloadEntry.Builder setAddress(java.lang.String value)
Address associated with the network endpoint without the port. Domain names can be used if and only if the resolution is set to DNS, and must be fully-qualified without wildcards. Use the form unix:///absolute/path/to/socket for Unix domain socket endpoints.
string address = 1 [(.google.api.field_behavior) = REQUIRED];- 参数:
value- The address to set.- 返回:
- This builder for chaining.
-
clearAddress
public WorkloadEntryOuterClass.WorkloadEntry.Builder clearAddress()
Address associated with the network endpoint without the port. Domain names can be used if and only if the resolution is set to DNS, and must be fully-qualified without wildcards. Use the form unix:///absolute/path/to/socket for Unix domain socket endpoints.
string address = 1 [(.google.api.field_behavior) = REQUIRED];- 返回:
- This builder for chaining.
-
setAddressBytes
public WorkloadEntryOuterClass.WorkloadEntry.Builder setAddressBytes(com.google.protobuf.ByteString value)
Address associated with the network endpoint without the port. Domain names can be used if and only if the resolution is set to DNS, and must be fully-qualified without wildcards. Use the form unix:///absolute/path/to/socket for Unix domain socket endpoints.
string address = 1 [(.google.api.field_behavior) = REQUIRED];- 参数:
value- The bytes for address to set.- 返回:
- This builder for chaining.
-
internalGetPorts
private com.google.protobuf.MapField<java.lang.String,java.lang.Integer> internalGetPorts()
-
internalGetMutablePorts
private com.google.protobuf.MapField<java.lang.String,java.lang.Integer> internalGetMutablePorts()
-
getPortsCount
public int getPortsCount()
Set of ports associated with the endpoint. If the port map is specified, it must be a map of servicePortName to this endpoint's port, such that traffic to the service port will be forwarded to the endpoint port that maps to the service's portName. If omitted, and the targetPort is specified as part of the service's port specification, traffic to the service port will be forwarded to one of the endpoints on the specified `targetPort`. If both the targetPort and endpoint's port map are not specified, traffic to a service port will be forwarded to one of the endpoints on the same port. **NOTE 1:** Do not use for `unix://` addresses. **NOTE 2:** endpoint port map takes precedence over targetPort.
map<string, uint32> ports = 2;
-
containsPorts
public boolean containsPorts(java.lang.String key)
Set of ports associated with the endpoint. If the port map is specified, it must be a map of servicePortName to this endpoint's port, such that traffic to the service port will be forwarded to the endpoint port that maps to the service's portName. If omitted, and the targetPort is specified as part of the service's port specification, traffic to the service port will be forwarded to one of the endpoints on the specified `targetPort`. If both the targetPort and endpoint's port map are not specified, traffic to a service port will be forwarded to one of the endpoints on the same port. **NOTE 1:** Do not use for `unix://` addresses. **NOTE 2:** endpoint port map takes precedence over targetPort.
map<string, uint32> ports = 2;
-
getPorts
@Deprecated public java.util.Map<java.lang.String,java.lang.Integer> getPorts()
已过时。UsegetPortsMap()instead.
-
getPortsMap
public java.util.Map<java.lang.String,java.lang.Integer> getPortsMap()
Set of ports associated with the endpoint. If the port map is specified, it must be a map of servicePortName to this endpoint's port, such that traffic to the service port will be forwarded to the endpoint port that maps to the service's portName. If omitted, and the targetPort is specified as part of the service's port specification, traffic to the service port will be forwarded to one of the endpoints on the specified `targetPort`. If both the targetPort and endpoint's port map are not specified, traffic to a service port will be forwarded to one of the endpoints on the same port. **NOTE 1:** Do not use for `unix://` addresses. **NOTE 2:** endpoint port map takes precedence over targetPort.
map<string, uint32> ports = 2;
-
getPortsOrDefault
public int getPortsOrDefault(java.lang.String key, int defaultValue)Set of ports associated with the endpoint. If the port map is specified, it must be a map of servicePortName to this endpoint's port, such that traffic to the service port will be forwarded to the endpoint port that maps to the service's portName. If omitted, and the targetPort is specified as part of the service's port specification, traffic to the service port will be forwarded to one of the endpoints on the specified `targetPort`. If both the targetPort and endpoint's port map are not specified, traffic to a service port will be forwarded to one of the endpoints on the same port. **NOTE 1:** Do not use for `unix://` addresses. **NOTE 2:** endpoint port map takes precedence over targetPort.
map<string, uint32> ports = 2;
-
getPortsOrThrow
public int getPortsOrThrow(java.lang.String key)
Set of ports associated with the endpoint. If the port map is specified, it must be a map of servicePortName to this endpoint's port, such that traffic to the service port will be forwarded to the endpoint port that maps to the service's portName. If omitted, and the targetPort is specified as part of the service's port specification, traffic to the service port will be forwarded to one of the endpoints on the specified `targetPort`. If both the targetPort and endpoint's port map are not specified, traffic to a service port will be forwarded to one of the endpoints on the same port. **NOTE 1:** Do not use for `unix://` addresses. **NOTE 2:** endpoint port map takes precedence over targetPort.
map<string, uint32> ports = 2;
-
clearPorts
public WorkloadEntryOuterClass.WorkloadEntry.Builder clearPorts()
-
removePorts
public WorkloadEntryOuterClass.WorkloadEntry.Builder removePorts(java.lang.String key)
Set of ports associated with the endpoint. If the port map is specified, it must be a map of servicePortName to this endpoint's port, such that traffic to the service port will be forwarded to the endpoint port that maps to the service's portName. If omitted, and the targetPort is specified as part of the service's port specification, traffic to the service port will be forwarded to one of the endpoints on the specified `targetPort`. If both the targetPort and endpoint's port map are not specified, traffic to a service port will be forwarded to one of the endpoints on the same port. **NOTE 1:** Do not use for `unix://` addresses. **NOTE 2:** endpoint port map takes precedence over targetPort.
map<string, uint32> ports = 2;
-
getMutablePorts
@Deprecated public java.util.Map<java.lang.String,java.lang.Integer> getMutablePorts()
已过时。Use alternate mutation accessors instead.
-
putPorts
public WorkloadEntryOuterClass.WorkloadEntry.Builder putPorts(java.lang.String key, int value)
Set of ports associated with the endpoint. If the port map is specified, it must be a map of servicePortName to this endpoint's port, such that traffic to the service port will be forwarded to the endpoint port that maps to the service's portName. If omitted, and the targetPort is specified as part of the service's port specification, traffic to the service port will be forwarded to one of the endpoints on the specified `targetPort`. If both the targetPort and endpoint's port map are not specified, traffic to a service port will be forwarded to one of the endpoints on the same port. **NOTE 1:** Do not use for `unix://` addresses. **NOTE 2:** endpoint port map takes precedence over targetPort.
map<string, uint32> ports = 2;
-
putAllPorts
public WorkloadEntryOuterClass.WorkloadEntry.Builder putAllPorts(java.util.Map<java.lang.String,java.lang.Integer> values)
Set of ports associated with the endpoint. If the port map is specified, it must be a map of servicePortName to this endpoint's port, such that traffic to the service port will be forwarded to the endpoint port that maps to the service's portName. If omitted, and the targetPort is specified as part of the service's port specification, traffic to the service port will be forwarded to one of the endpoints on the specified `targetPort`. If both the targetPort and endpoint's port map are not specified, traffic to a service port will be forwarded to one of the endpoints on the same port. **NOTE 1:** Do not use for `unix://` addresses. **NOTE 2:** endpoint port map takes precedence over targetPort.
map<string, uint32> ports = 2;
-
internalGetLabels
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetLabels()
-
internalGetMutableLabels
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetMutableLabels()
-
getLabelsCount
public int getLabelsCount()
One or more labels associated with the endpoint.
map<string, string> labels = 3;
-
containsLabels
public boolean containsLabels(java.lang.String key)
One or more labels associated with the endpoint.
map<string, string> labels = 3;
-
getLabels
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
已过时。UsegetLabelsMap()instead.
-
getLabelsMap
public java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
One or more labels associated with the endpoint.
map<string, string> labels = 3;
-
getLabelsOrDefault
public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)One or more labels associated with the endpoint.
map<string, string> labels = 3;
-
getLabelsOrThrow
public java.lang.String getLabelsOrThrow(java.lang.String key)
One or more labels associated with the endpoint.
map<string, string> labels = 3;
-
clearLabels
public WorkloadEntryOuterClass.WorkloadEntry.Builder clearLabels()
-
removeLabels
public WorkloadEntryOuterClass.WorkloadEntry.Builder removeLabels(java.lang.String key)
One or more labels associated with the endpoint.
map<string, string> labels = 3;
-
getMutableLabels
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableLabels()
已过时。Use alternate mutation accessors instead.
-
putLabels
public WorkloadEntryOuterClass.WorkloadEntry.Builder putLabels(java.lang.String key, java.lang.String value)
One or more labels associated with the endpoint.
map<string, string> labels = 3;
-
putAllLabels
public WorkloadEntryOuterClass.WorkloadEntry.Builder putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
One or more labels associated with the endpoint.
map<string, string> labels = 3;
-
getNetwork
public java.lang.String getNetwork()
Network enables Istio to group endpoints resident in the same L3 domain/network. All endpoints in the same network are assumed to be directly reachable from one another. When endpoints in different networks cannot reach each other directly, an Istio Gateway can be used to establish connectivity (usually using the `AUTO_PASSTHROUGH` mode in a Gateway Server). This is an advanced configuration used typically for spanning an Istio mesh over multiple clusters.
string network = 4;- 指定者:
getNetwork在接口中WorkloadEntryOuterClass.WorkloadEntryOrBuilder- 返回:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
Network enables Istio to group endpoints resident in the same L3 domain/network. All endpoints in the same network are assumed to be directly reachable from one another. When endpoints in different networks cannot reach each other directly, an Istio Gateway can be used to establish connectivity (usually using the `AUTO_PASSTHROUGH` mode in a Gateway Server). This is an advanced configuration used typically for spanning an Istio mesh over multiple clusters.
string network = 4;- 指定者:
getNetworkBytes在接口中WorkloadEntryOuterClass.WorkloadEntryOrBuilder- 返回:
- The bytes for network.
-
setNetwork
public WorkloadEntryOuterClass.WorkloadEntry.Builder setNetwork(java.lang.String value)
Network enables Istio to group endpoints resident in the same L3 domain/network. All endpoints in the same network are assumed to be directly reachable from one another. When endpoints in different networks cannot reach each other directly, an Istio Gateway can be used to establish connectivity (usually using the `AUTO_PASSTHROUGH` mode in a Gateway Server). This is an advanced configuration used typically for spanning an Istio mesh over multiple clusters.
string network = 4;- 参数:
value- The network to set.- 返回:
- This builder for chaining.
-
clearNetwork
public WorkloadEntryOuterClass.WorkloadEntry.Builder clearNetwork()
Network enables Istio to group endpoints resident in the same L3 domain/network. All endpoints in the same network are assumed to be directly reachable from one another. When endpoints in different networks cannot reach each other directly, an Istio Gateway can be used to establish connectivity (usually using the `AUTO_PASSTHROUGH` mode in a Gateway Server). This is an advanced configuration used typically for spanning an Istio mesh over multiple clusters.
string network = 4;- 返回:
- This builder for chaining.
-
setNetworkBytes
public WorkloadEntryOuterClass.WorkloadEntry.Builder setNetworkBytes(com.google.protobuf.ByteString value)
Network enables Istio to group endpoints resident in the same L3 domain/network. All endpoints in the same network are assumed to be directly reachable from one another. When endpoints in different networks cannot reach each other directly, an Istio Gateway can be used to establish connectivity (usually using the `AUTO_PASSTHROUGH` mode in a Gateway Server). This is an advanced configuration used typically for spanning an Istio mesh over multiple clusters.
string network = 4;- 参数:
value- The bytes for network to set.- 返回:
- This builder for chaining.
-
getLocality
public java.lang.String getLocality()
The locality associated with the endpoint. A locality corresponds to a failure domain (e.g., country/region/zone). Arbitrary failure domain hierarchies can be represented by separating each encapsulating failure domain by /. For example, the locality of an an endpoint in US, in US-East-1 region, within availability zone az-1, in data center rack r11 can be represented as us/us-east-1/az-1/r11. Istio will configure the sidecar to route to endpoints within the same locality as the sidecar. If none of the endpoints in the locality are available, endpoints parent locality (but within the same network ID) will be chosen. For example, if there are two endpoints in same network (networkID "n1"), say e1 with locality us/us-east-1/az-1/r11 and e2 with locality us/us-east-1/az-2/r12, a sidecar from us/us-east-1/az-1/r11 locality will prefer e1 from the same locality over e2 from a different locality. Endpoint e2 could be the IP associated with a gateway (that bridges networks n1 and n2), or the IP associated with a standard service endpoint.
string locality = 5;- 指定者:
getLocality在接口中WorkloadEntryOuterClass.WorkloadEntryOrBuilder- 返回:
- The locality.
-
getLocalityBytes
public com.google.protobuf.ByteString getLocalityBytes()
The locality associated with the endpoint. A locality corresponds to a failure domain (e.g., country/region/zone). Arbitrary failure domain hierarchies can be represented by separating each encapsulating failure domain by /. For example, the locality of an an endpoint in US, in US-East-1 region, within availability zone az-1, in data center rack r11 can be represented as us/us-east-1/az-1/r11. Istio will configure the sidecar to route to endpoints within the same locality as the sidecar. If none of the endpoints in the locality are available, endpoints parent locality (but within the same network ID) will be chosen. For example, if there are two endpoints in same network (networkID "n1"), say e1 with locality us/us-east-1/az-1/r11 and e2 with locality us/us-east-1/az-2/r12, a sidecar from us/us-east-1/az-1/r11 locality will prefer e1 from the same locality over e2 from a different locality. Endpoint e2 could be the IP associated with a gateway (that bridges networks n1 and n2), or the IP associated with a standard service endpoint.
string locality = 5;- 指定者:
getLocalityBytes在接口中WorkloadEntryOuterClass.WorkloadEntryOrBuilder- 返回:
- The bytes for locality.
-
setLocality
public WorkloadEntryOuterClass.WorkloadEntry.Builder setLocality(java.lang.String value)
The locality associated with the endpoint. A locality corresponds to a failure domain (e.g., country/region/zone). Arbitrary failure domain hierarchies can be represented by separating each encapsulating failure domain by /. For example, the locality of an an endpoint in US, in US-East-1 region, within availability zone az-1, in data center rack r11 can be represented as us/us-east-1/az-1/r11. Istio will configure the sidecar to route to endpoints within the same locality as the sidecar. If none of the endpoints in the locality are available, endpoints parent locality (but within the same network ID) will be chosen. For example, if there are two endpoints in same network (networkID "n1"), say e1 with locality us/us-east-1/az-1/r11 and e2 with locality us/us-east-1/az-2/r12, a sidecar from us/us-east-1/az-1/r11 locality will prefer e1 from the same locality over e2 from a different locality. Endpoint e2 could be the IP associated with a gateway (that bridges networks n1 and n2), or the IP associated with a standard service endpoint.
string locality = 5;- 参数:
value- The locality to set.- 返回:
- This builder for chaining.
-
clearLocality
public WorkloadEntryOuterClass.WorkloadEntry.Builder clearLocality()
The locality associated with the endpoint. A locality corresponds to a failure domain (e.g., country/region/zone). Arbitrary failure domain hierarchies can be represented by separating each encapsulating failure domain by /. For example, the locality of an an endpoint in US, in US-East-1 region, within availability zone az-1, in data center rack r11 can be represented as us/us-east-1/az-1/r11. Istio will configure the sidecar to route to endpoints within the same locality as the sidecar. If none of the endpoints in the locality are available, endpoints parent locality (but within the same network ID) will be chosen. For example, if there are two endpoints in same network (networkID "n1"), say e1 with locality us/us-east-1/az-1/r11 and e2 with locality us/us-east-1/az-2/r12, a sidecar from us/us-east-1/az-1/r11 locality will prefer e1 from the same locality over e2 from a different locality. Endpoint e2 could be the IP associated with a gateway (that bridges networks n1 and n2), or the IP associated with a standard service endpoint.
string locality = 5;- 返回:
- This builder for chaining.
-
setLocalityBytes
public WorkloadEntryOuterClass.WorkloadEntry.Builder setLocalityBytes(com.google.protobuf.ByteString value)
The locality associated with the endpoint. A locality corresponds to a failure domain (e.g., country/region/zone). Arbitrary failure domain hierarchies can be represented by separating each encapsulating failure domain by /. For example, the locality of an an endpoint in US, in US-East-1 region, within availability zone az-1, in data center rack r11 can be represented as us/us-east-1/az-1/r11. Istio will configure the sidecar to route to endpoints within the same locality as the sidecar. If none of the endpoints in the locality are available, endpoints parent locality (but within the same network ID) will be chosen. For example, if there are two endpoints in same network (networkID "n1"), say e1 with locality us/us-east-1/az-1/r11 and e2 with locality us/us-east-1/az-2/r12, a sidecar from us/us-east-1/az-1/r11 locality will prefer e1 from the same locality over e2 from a different locality. Endpoint e2 could be the IP associated with a gateway (that bridges networks n1 and n2), or the IP associated with a standard service endpoint.
string locality = 5;- 参数:
value- The bytes for locality to set.- 返回:
- This builder for chaining.
-
getWeight
public int getWeight()
The load balancing weight associated with the endpoint. Endpoints with higher weights will receive proportionally higher traffic.
uint32 weight = 6;- 指定者:
getWeight在接口中WorkloadEntryOuterClass.WorkloadEntryOrBuilder- 返回:
- The weight.
-
setWeight
public WorkloadEntryOuterClass.WorkloadEntry.Builder setWeight(int value)
The load balancing weight associated with the endpoint. Endpoints with higher weights will receive proportionally higher traffic.
uint32 weight = 6;- 参数:
value- The weight to set.- 返回:
- This builder for chaining.
-
clearWeight
public WorkloadEntryOuterClass.WorkloadEntry.Builder clearWeight()
The load balancing weight associated with the endpoint. Endpoints with higher weights will receive proportionally higher traffic.
uint32 weight = 6;- 返回:
- This builder for chaining.
-
getServiceAccount
public java.lang.String getServiceAccount()
The service account associated with the workload if a sidecar is present in the workload. The service account must be present in the same namespace as the configuration ( WorkloadEntry or a ServiceEntry)
string service_account = 7;- 指定者:
getServiceAccount在接口中WorkloadEntryOuterClass.WorkloadEntryOrBuilder- 返回:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()
The service account associated with the workload if a sidecar is present in the workload. The service account must be present in the same namespace as the configuration ( WorkloadEntry or a ServiceEntry)
string service_account = 7;- 指定者:
getServiceAccountBytes在接口中WorkloadEntryOuterClass.WorkloadEntryOrBuilder- 返回:
- The bytes for serviceAccount.
-
setServiceAccount
public WorkloadEntryOuterClass.WorkloadEntry.Builder setServiceAccount(java.lang.String value)
The service account associated with the workload if a sidecar is present in the workload. The service account must be present in the same namespace as the configuration ( WorkloadEntry or a ServiceEntry)
string service_account = 7;- 参数:
value- The serviceAccount to set.- 返回:
- This builder for chaining.
-
clearServiceAccount
public WorkloadEntryOuterClass.WorkloadEntry.Builder clearServiceAccount()
The service account associated with the workload if a sidecar is present in the workload. The service account must be present in the same namespace as the configuration ( WorkloadEntry or a ServiceEntry)
string service_account = 7;- 返回:
- This builder for chaining.
-
setServiceAccountBytes
public WorkloadEntryOuterClass.WorkloadEntry.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
The service account associated with the workload if a sidecar is present in the workload. The service account must be present in the same namespace as the configuration ( WorkloadEntry or a ServiceEntry)
string service_account = 7;- 参数:
value- The bytes for serviceAccount to set.- 返回:
- This builder for chaining.
-
setUnknownFields
public final WorkloadEntryOuterClass.WorkloadEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
mergeUnknownFields
public final WorkloadEntryOuterClass.WorkloadEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<WorkloadEntryOuterClass.WorkloadEntry.Builder>
-
-