Class Generated.EndpointPort.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
      • clear

        public Generated.EndpointPort.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
      • getDefaultInstanceForType

        public Generated.EndpointPort getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Generated.EndpointPort build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Generated.EndpointPort buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Generated.EndpointPort.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
      • clearField

        public Generated.EndpointPort.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
      • clearOneof

        public Generated.EndpointPort.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
      • setRepeatedField

        public Generated.EndpointPort.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
      • addRepeatedField

        public Generated.EndpointPort.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
      • mergeFrom

        public Generated.EndpointPort.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Generated.EndpointPort.Builder>
        Throws:
        IOException
      • hasName

        public boolean hasName()
         The name of this port.  This must match the 'name' field in the
         corresponding ServicePort.
         Must be a DNS_LABEL.
         Optional only if one port is defined.
         +optional
         
        optional string name = 1;
        Specified by:
        hasName in interface Generated.EndpointPortOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         The name of this port.  This must match the 'name' field in the
         corresponding ServicePort.
         Must be a DNS_LABEL.
         Optional only if one port is defined.
         +optional
         
        optional string name = 1;
        Specified by:
        getName in interface Generated.EndpointPortOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of this port.  This must match the 'name' field in the
         corresponding ServicePort.
         Must be a DNS_LABEL.
         Optional only if one port is defined.
         +optional
         
        optional string name = 1;
        Specified by:
        getNameBytes in interface Generated.EndpointPortOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Generated.EndpointPort.Builder setName​(String value)
         The name of this port.  This must match the 'name' field in the
         corresponding ServicePort.
         Must be a DNS_LABEL.
         Optional only if one port is defined.
         +optional
         
        optional string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Generated.EndpointPort.Builder clearName()
         The name of this port.  This must match the 'name' field in the
         corresponding ServicePort.
         Must be a DNS_LABEL.
         Optional only if one port is defined.
         +optional
         
        optional string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Generated.EndpointPort.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of this port.  This must match the 'name' field in the
         corresponding ServicePort.
         Must be a DNS_LABEL.
         Optional only if one port is defined.
         +optional
         
        optional string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasPort

        public boolean hasPort()
         The port number of the endpoint.
         
        optional int32 port = 2;
        Specified by:
        hasPort in interface Generated.EndpointPortOrBuilder
        Returns:
        Whether the port field is set.
      • setPort

        public Generated.EndpointPort.Builder setPort​(int value)
         The port number of the endpoint.
         
        optional int32 port = 2;
        Parameters:
        value - The port to set.
        Returns:
        This builder for chaining.
      • clearPort

        public Generated.EndpointPort.Builder clearPort()
         The port number of the endpoint.
         
        optional int32 port = 2;
        Returns:
        This builder for chaining.
      • hasProtocol

        public boolean hasProtocol()
         The IP protocol for this port.
         Must be UDP, TCP, or SCTP.
         Default is TCP.
         +optional
         
        optional string protocol = 3;
        Specified by:
        hasProtocol in interface Generated.EndpointPortOrBuilder
        Returns:
        Whether the protocol field is set.
      • getProtocol

        public String getProtocol()
         The IP protocol for this port.
         Must be UDP, TCP, or SCTP.
         Default is TCP.
         +optional
         
        optional string protocol = 3;
        Specified by:
        getProtocol in interface Generated.EndpointPortOrBuilder
        Returns:
        The protocol.
      • getProtocolBytes

        public com.google.protobuf.ByteString getProtocolBytes()
         The IP protocol for this port.
         Must be UDP, TCP, or SCTP.
         Default is TCP.
         +optional
         
        optional string protocol = 3;
        Specified by:
        getProtocolBytes in interface Generated.EndpointPortOrBuilder
        Returns:
        The bytes for protocol.
      • setProtocol

        public Generated.EndpointPort.Builder setProtocol​(String value)
         The IP protocol for this port.
         Must be UDP, TCP, or SCTP.
         Default is TCP.
         +optional
         
        optional string protocol = 3;
        Parameters:
        value - The protocol to set.
        Returns:
        This builder for chaining.
      • clearProtocol

        public Generated.EndpointPort.Builder clearProtocol()
         The IP protocol for this port.
         Must be UDP, TCP, or SCTP.
         Default is TCP.
         +optional
         
        optional string protocol = 3;
        Returns:
        This builder for chaining.
      • setProtocolBytes

        public Generated.EndpointPort.Builder setProtocolBytes​(com.google.protobuf.ByteString value)
         The IP protocol for this port.
         Must be UDP, TCP, or SCTP.
         Default is TCP.
         +optional
         
        optional string protocol = 3;
        Parameters:
        value - The bytes for protocol to set.
        Returns:
        This builder for chaining.
      • hasAppProtocol

        public boolean hasAppProtocol()
         The application protocol for this port.
         This is used as a hint for implementations to offer richer behavior for protocols that they understand.
         This field follows standard Kubernetes label syntax.
         Valid values are either:
        
         * Un-prefixed protocol names - reserved for IANA standard service names (as per
         RFC-6335 and https://www.iana.org/assignments/service-names).
        
         * Kubernetes-defined prefixed names:
           * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
           * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
           * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
        
         * Other protocols should use implementation-defined prefixed names such as
         mycompany.com/my-custom-protocol.
         +optional
         
        optional string appProtocol = 4;
        Specified by:
        hasAppProtocol in interface Generated.EndpointPortOrBuilder
        Returns:
        Whether the appProtocol field is set.
      • getAppProtocol

        public String getAppProtocol()
         The application protocol for this port.
         This is used as a hint for implementations to offer richer behavior for protocols that they understand.
         This field follows standard Kubernetes label syntax.
         Valid values are either:
        
         * Un-prefixed protocol names - reserved for IANA standard service names (as per
         RFC-6335 and https://www.iana.org/assignments/service-names).
        
         * Kubernetes-defined prefixed names:
           * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
           * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
           * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
        
         * Other protocols should use implementation-defined prefixed names such as
         mycompany.com/my-custom-protocol.
         +optional
         
        optional string appProtocol = 4;
        Specified by:
        getAppProtocol in interface Generated.EndpointPortOrBuilder
        Returns:
        The appProtocol.
      • getAppProtocolBytes

        public com.google.protobuf.ByteString getAppProtocolBytes()
         The application protocol for this port.
         This is used as a hint for implementations to offer richer behavior for protocols that they understand.
         This field follows standard Kubernetes label syntax.
         Valid values are either:
        
         * Un-prefixed protocol names - reserved for IANA standard service names (as per
         RFC-6335 and https://www.iana.org/assignments/service-names).
        
         * Kubernetes-defined prefixed names:
           * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
           * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
           * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
        
         * Other protocols should use implementation-defined prefixed names such as
         mycompany.com/my-custom-protocol.
         +optional
         
        optional string appProtocol = 4;
        Specified by:
        getAppProtocolBytes in interface Generated.EndpointPortOrBuilder
        Returns:
        The bytes for appProtocol.
      • setAppProtocol

        public Generated.EndpointPort.Builder setAppProtocol​(String value)
         The application protocol for this port.
         This is used as a hint for implementations to offer richer behavior for protocols that they understand.
         This field follows standard Kubernetes label syntax.
         Valid values are either:
        
         * Un-prefixed protocol names - reserved for IANA standard service names (as per
         RFC-6335 and https://www.iana.org/assignments/service-names).
        
         * Kubernetes-defined prefixed names:
           * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
           * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
           * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
        
         * Other protocols should use implementation-defined prefixed names such as
         mycompany.com/my-custom-protocol.
         +optional
         
        optional string appProtocol = 4;
        Parameters:
        value - The appProtocol to set.
        Returns:
        This builder for chaining.
      • clearAppProtocol

        public Generated.EndpointPort.Builder clearAppProtocol()
         The application protocol for this port.
         This is used as a hint for implementations to offer richer behavior for protocols that they understand.
         This field follows standard Kubernetes label syntax.
         Valid values are either:
        
         * Un-prefixed protocol names - reserved for IANA standard service names (as per
         RFC-6335 and https://www.iana.org/assignments/service-names).
        
         * Kubernetes-defined prefixed names:
           * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
           * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
           * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
        
         * Other protocols should use implementation-defined prefixed names such as
         mycompany.com/my-custom-protocol.
         +optional
         
        optional string appProtocol = 4;
        Returns:
        This builder for chaining.
      • setAppProtocolBytes

        public Generated.EndpointPort.Builder setAppProtocolBytes​(com.google.protobuf.ByteString value)
         The application protocol for this port.
         This is used as a hint for implementations to offer richer behavior for protocols that they understand.
         This field follows standard Kubernetes label syntax.
         Valid values are either:
        
         * Un-prefixed protocol names - reserved for IANA standard service names (as per
         RFC-6335 and https://www.iana.org/assignments/service-names).
        
         * Kubernetes-defined prefixed names:
           * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
           * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
           * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
        
         * Other protocols should use implementation-defined prefixed names such as
         mycompany.com/my-custom-protocol.
         +optional
         
        optional string appProtocol = 4;
        Parameters:
        value - The bytes for appProtocol to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Generated.EndpointPort.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
      • mergeUnknownFields

        public final Generated.EndpointPort.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>