Class Endpoint.Builder

  • All Implemented Interfaces:
    EndpointOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Endpoint

    public static final class Endpoint.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>
    implements EndpointOrBuilder
     Endpoint describes a single IDS endpoint. It defines a forwarding rule to
     which packets can be sent for IDS inspection.
     
    Protobuf type google.cloud.ids.v1.Endpoint
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>
      • internalGetFieldAccessorTable

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

        public Endpoint.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<Endpoint.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<Endpoint.Builder>
      • getDefaultInstanceForType

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

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

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

        public Endpoint.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<Endpoint.Builder>
      • setField

        public Endpoint.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Endpoint.Builder>
      • clearField

        public Endpoint.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<Endpoint.Builder>
      • clearOneof

        public Endpoint.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<Endpoint.Builder>
      • setRepeatedField

        public Endpoint.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<Endpoint.Builder>
      • addRepeatedField

        public Endpoint.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<Endpoint.Builder>
      • mergeFrom

        public Endpoint.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Endpoint.Builder>
      • isInitialized

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

        public Endpoint.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<Endpoint.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. The name of the endpoint.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface EndpointOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The name of the endpoint.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface EndpointOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Endpoint.Builder setName​(String value)
         Output only. The name of the endpoint.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Endpoint.Builder clearName()
         Output only. The name of the endpoint.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Endpoint.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The name of the endpoint.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The create time timestamp.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface EndpointOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The create time timestamp.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface EndpointOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Endpoint.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The create time timestamp.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Endpoint.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The create time timestamp.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Endpoint.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The create time timestamp.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Endpoint.Builder clearCreateTime()
         Output only. The create time timestamp.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The create time timestamp.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The create time timestamp.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface EndpointOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The update time timestamp.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface EndpointOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The update time timestamp.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface EndpointOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public Endpoint.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The update time timestamp.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public Endpoint.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The update time timestamp.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public Endpoint.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The update time timestamp.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public Endpoint.Builder clearUpdateTime()
         Output only. The update time timestamp.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The update time timestamp.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The update time timestamp.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface EndpointOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         The labels of the endpoint.
         
        map<string, string> labels = 4;
        Specified by:
        containsLabels in interface EndpointOrBuilder
      • removeLabels

        public Endpoint.Builder removeLabels​(String key)
         The labels of the endpoint.
         
        map<string, string> labels = 4;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • getNetwork

        public String getNetwork()
         Required. The fully qualified URL of the network to which the IDS Endpoint is
         attached.
         
        string network = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNetwork in interface EndpointOrBuilder
        Returns:
        The network.
      • getNetworkBytes

        public com.google.protobuf.ByteString getNetworkBytes()
         Required. The fully qualified URL of the network to which the IDS Endpoint is
         attached.
         
        string network = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNetworkBytes in interface EndpointOrBuilder
        Returns:
        The bytes for network.
      • setNetwork

        public Endpoint.Builder setNetwork​(String value)
         Required. The fully qualified URL of the network to which the IDS Endpoint is
         attached.
         
        string network = 5 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The network to set.
        Returns:
        This builder for chaining.
      • clearNetwork

        public Endpoint.Builder clearNetwork()
         Required. The fully qualified URL of the network to which the IDS Endpoint is
         attached.
         
        string network = 5 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setNetworkBytes

        public Endpoint.Builder setNetworkBytes​(com.google.protobuf.ByteString value)
         Required. The fully qualified URL of the network to which the IDS Endpoint is
         attached.
         
        string network = 5 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for network to set.
        Returns:
        This builder for chaining.
      • getEndpointForwardingRule

        public String getEndpointForwardingRule()
         Output only. The fully qualified URL of the endpoint's ILB Forwarding Rule.
         
        string endpoint_forwarding_rule = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndpointForwardingRule in interface EndpointOrBuilder
        Returns:
        The endpointForwardingRule.
      • getEndpointForwardingRuleBytes

        public com.google.protobuf.ByteString getEndpointForwardingRuleBytes()
         Output only. The fully qualified URL of the endpoint's ILB Forwarding Rule.
         
        string endpoint_forwarding_rule = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndpointForwardingRuleBytes in interface EndpointOrBuilder
        Returns:
        The bytes for endpointForwardingRule.
      • setEndpointForwardingRule

        public Endpoint.Builder setEndpointForwardingRule​(String value)
         Output only. The fully qualified URL of the endpoint's ILB Forwarding Rule.
         
        string endpoint_forwarding_rule = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The endpointForwardingRule to set.
        Returns:
        This builder for chaining.
      • clearEndpointForwardingRule

        public Endpoint.Builder clearEndpointForwardingRule()
         Output only. The fully qualified URL of the endpoint's ILB Forwarding Rule.
         
        string endpoint_forwarding_rule = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setEndpointForwardingRuleBytes

        public Endpoint.Builder setEndpointForwardingRuleBytes​(com.google.protobuf.ByteString value)
         Output only. The fully qualified URL of the endpoint's ILB Forwarding Rule.
         
        string endpoint_forwarding_rule = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for endpointForwardingRule to set.
        Returns:
        This builder for chaining.
      • getEndpointIp

        public String getEndpointIp()
         Output only. The IP address of the IDS Endpoint's ILB.
         
        string endpoint_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndpointIp in interface EndpointOrBuilder
        Returns:
        The endpointIp.
      • getEndpointIpBytes

        public com.google.protobuf.ByteString getEndpointIpBytes()
         Output only. The IP address of the IDS Endpoint's ILB.
         
        string endpoint_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndpointIpBytes in interface EndpointOrBuilder
        Returns:
        The bytes for endpointIp.
      • setEndpointIp

        public Endpoint.Builder setEndpointIp​(String value)
         Output only. The IP address of the IDS Endpoint's ILB.
         
        string endpoint_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The endpointIp to set.
        Returns:
        This builder for chaining.
      • clearEndpointIp

        public Endpoint.Builder clearEndpointIp()
         Output only. The IP address of the IDS Endpoint's ILB.
         
        string endpoint_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setEndpointIpBytes

        public Endpoint.Builder setEndpointIpBytes​(com.google.protobuf.ByteString value)
         Output only. The IP address of the IDS Endpoint's ILB.
         
        string endpoint_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for endpointIp to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         User-provided description of the endpoint
         
        string description = 8;
        Specified by:
        getDescription in interface EndpointOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         User-provided description of the endpoint
         
        string description = 8;
        Specified by:
        getDescriptionBytes in interface EndpointOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public Endpoint.Builder setDescription​(String value)
         User-provided description of the endpoint
         
        string description = 8;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Endpoint.Builder clearDescription()
         User-provided description of the endpoint
         
        string description = 8;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Endpoint.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         User-provided description of the endpoint
         
        string description = 8;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getSeverityValue

        public int getSeverityValue()
         Required. Lowest threat severity that this endpoint will alert on.
         
        .google.cloud.ids.v1.Endpoint.Severity severity = 9 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSeverityValue in interface EndpointOrBuilder
        Returns:
        The enum numeric value on the wire for severity.
      • setSeverityValue

        public Endpoint.Builder setSeverityValue​(int value)
         Required. Lowest threat severity that this endpoint will alert on.
         
        .google.cloud.ids.v1.Endpoint.Severity severity = 9 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The enum numeric value on the wire for severity to set.
        Returns:
        This builder for chaining.
      • getSeverity

        public Endpoint.Severity getSeverity()
         Required. Lowest threat severity that this endpoint will alert on.
         
        .google.cloud.ids.v1.Endpoint.Severity severity = 9 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSeverity in interface EndpointOrBuilder
        Returns:
        The severity.
      • setSeverity

        public Endpoint.Builder setSeverity​(Endpoint.Severity value)
         Required. Lowest threat severity that this endpoint will alert on.
         
        .google.cloud.ids.v1.Endpoint.Severity severity = 9 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The severity to set.
        Returns:
        This builder for chaining.
      • clearSeverity

        public Endpoint.Builder clearSeverity()
         Required. Lowest threat severity that this endpoint will alert on.
         
        .google.cloud.ids.v1.Endpoint.Severity severity = 9 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
         Output only. Current state of the endpoint.
         
        .google.cloud.ids.v1.Endpoint.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface EndpointOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Endpoint.Builder setStateValue​(int value)
         Output only. Current state of the endpoint.
         
        .google.cloud.ids.v1.Endpoint.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public Endpoint.State getState()
         Output only. Current state of the endpoint.
         
        .google.cloud.ids.v1.Endpoint.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface EndpointOrBuilder
        Returns:
        The state.
      • setState

        public Endpoint.Builder setState​(Endpoint.State value)
         Output only. Current state of the endpoint.
         
        .google.cloud.ids.v1.Endpoint.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Endpoint.Builder clearState()
         Output only. Current state of the endpoint.
         
        .google.cloud.ids.v1.Endpoint.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getTrafficLogs

        public boolean getTrafficLogs()
         Whether the endpoint should report traffic logs in addition to threat logs.
         
        bool traffic_logs = 13;
        Specified by:
        getTrafficLogs in interface EndpointOrBuilder
        Returns:
        The trafficLogs.
      • setTrafficLogs

        public Endpoint.Builder setTrafficLogs​(boolean value)
         Whether the endpoint should report traffic logs in addition to threat logs.
         
        bool traffic_logs = 13;
        Parameters:
        value - The trafficLogs to set.
        Returns:
        This builder for chaining.
      • clearTrafficLogs

        public Endpoint.Builder clearTrafficLogs()
         Whether the endpoint should report traffic logs in addition to threat logs.
         
        bool traffic_logs = 13;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Endpoint.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<Endpoint.Builder>
      • mergeUnknownFields

        public final Endpoint.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<Endpoint.Builder>