类 WorkloadEntryOuterClass.WorkloadEntry

  • 所有已实现的接口:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, WorkloadEntryOuterClass.WorkloadEntryOrBuilder, java.io.Serializable
    封闭类:
    WorkloadEntryOuterClass

    public static final class WorkloadEntryOuterClass.WorkloadEntry
    extends com.google.protobuf.GeneratedMessageV3
    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 type istio.networking.v1alpha3.WorkloadEntry
    另请参阅:
    序列化表格
    • 字段详细资料

      • serialVersionUID

        private static final long serialVersionUID
        另请参阅:
        常量字段值
      • ADDRESS_FIELD_NUMBER

        public static final int ADDRESS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • address_

        private volatile java.lang.Object address_
      • PORTS_FIELD_NUMBER

        public static final int PORTS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • ports_

        private com.google.protobuf.MapField<java.lang.String,​java.lang.Integer> ports_
      • LABELS_FIELD_NUMBER

        public static final int LABELS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • labels_

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> labels_
      • NETWORK_FIELD_NUMBER

        public static final int NETWORK_FIELD_NUMBER
        另请参阅:
        常量字段值
      • network_

        private volatile java.lang.Object network_
      • LOCALITY_FIELD_NUMBER

        public static final int LOCALITY_FIELD_NUMBER
        另请参阅:
        常量字段值
      • locality_

        private volatile java.lang.Object locality_
      • WEIGHT_FIELD_NUMBER

        public static final int WEIGHT_FIELD_NUMBER
        另请参阅:
        常量字段值
      • weight_

        private int weight_
      • SERVICE_ACCOUNT_FIELD_NUMBER

        public static final int SERVICE_ACCOUNT_FIELD_NUMBER
        另请参阅:
        常量字段值
      • serviceAccount_

        private volatile java.lang.Object serviceAccount_
      • memoizedIsInitialized

        private byte memoizedIsInitialized
    • 构造器详细资料

      • WorkloadEntry

        private WorkloadEntry​(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
      • WorkloadEntry

        private WorkloadEntry()
    • 方法详细资料

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        覆盖:
        newInstance 在类中 com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        指定者:
        getUnknownFields 在接口中 com.google.protobuf.MessageOrBuilder
        覆盖:
        getUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        覆盖:
        internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        指定者:
        internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3
      • 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.
      • internalGetPorts

        private com.google.protobuf.MapField<java.lang.String,​java.lang.Integer> internalGetPorts()
      • 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;
        指定者:
        getPortsCount 在接口中 WorkloadEntryOuterClass.WorkloadEntryOrBuilder
      • 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;
        指定者:
        containsPorts 在接口中 WorkloadEntryOuterClass.WorkloadEntryOrBuilder
      • 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;
        指定者:
        getPortsMap 在接口中 WorkloadEntryOuterClass.WorkloadEntryOrBuilder
      • 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;
        指定者:
        getPortsOrDefault 在接口中 WorkloadEntryOuterClass.WorkloadEntryOrBuilder
      • 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;
        指定者:
        getPortsOrThrow 在接口中 WorkloadEntryOuterClass.WorkloadEntryOrBuilder
      • internalGetLabels

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> internalGetLabels()
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        指定者:
        isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
        覆盖:
        isInitialized 在类中 com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        指定者:
        writeTo 在接口中 com.google.protobuf.MessageLite
        覆盖:
        writeTo 在类中 com.google.protobuf.GeneratedMessageV3
        抛出:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        指定者:
        getSerializedSize 在接口中 com.google.protobuf.MessageLite
        覆盖:
        getSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        指定者:
        equals 在接口中 com.google.protobuf.Message
        覆盖:
        equals 在类中 com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        指定者:
        hashCode 在接口中 com.google.protobuf.Message
        覆盖:
        hashCode 在类中 com.google.protobuf.AbstractMessage
      • parseFrom

        public static WorkloadEntryOuterClass.WorkloadEntry parseFrom​(java.nio.ByteBuffer data)
                                                               throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkloadEntryOuterClass.WorkloadEntry parseFrom​(java.nio.ByteBuffer data,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                               throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkloadEntryOuterClass.WorkloadEntry parseFrom​(com.google.protobuf.ByteString data)
                                                               throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkloadEntryOuterClass.WorkloadEntry parseFrom​(com.google.protobuf.ByteString data,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                               throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkloadEntryOuterClass.WorkloadEntry parseFrom​(byte[] data)
                                                               throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkloadEntryOuterClass.WorkloadEntry parseFrom​(byte[] data,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                               throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkloadEntryOuterClass.WorkloadEntry parseFrom​(java.io.InputStream input,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                               throws java.io.IOException
        抛出:
        java.io.IOException
      • parseDelimitedFrom

        public static WorkloadEntryOuterClass.WorkloadEntry parseDelimitedFrom​(java.io.InputStream input,
                                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                        throws java.io.IOException
        抛出:
        java.io.IOException
      • parseFrom

        public static WorkloadEntryOuterClass.WorkloadEntry parseFrom​(com.google.protobuf.CodedInputStream input,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                               throws java.io.IOException
        抛出:
        java.io.IOException
      • newBuilderForType

        public WorkloadEntryOuterClass.WorkloadEntry.Builder newBuilderForType()
        指定者:
        newBuilderForType 在接口中 com.google.protobuf.Message
        指定者:
        newBuilderForType 在接口中 com.google.protobuf.MessageLite
      • newBuilderForType

        protected WorkloadEntryOuterClass.WorkloadEntry.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        指定者:
        newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<WorkloadEntryOuterClass.WorkloadEntry> getParserForType()
        指定者:
        getParserForType 在接口中 com.google.protobuf.Message
        指定者:
        getParserForType 在接口中 com.google.protobuf.MessageLite
        覆盖:
        getParserForType 在类中 com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public WorkloadEntryOuterClass.WorkloadEntry getDefaultInstanceForType()
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder