Class Endpoint.Builder (1.13.0)

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

Implements

EndpointOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Endpoint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Endpoint.Builder
Overrides

build()

public Endpoint build()
Returns
TypeDescription
Endpoint

buildPartial()

public Endpoint buildPartial()
Returns
TypeDescription
Endpoint

clear()

public Endpoint.Builder clear()
Returns
TypeDescription
Endpoint.Builder
Overrides

clearCreateTime()

public Endpoint.Builder clearCreateTime()

Output only. The create time timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Endpoint.Builder

clearDescription()

public Endpoint.Builder clearDescription()

User-provided description of the endpoint

string description = 8;

Returns
TypeDescription
Endpoint.Builder

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
TypeDescription
Endpoint.Builder

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
TypeDescription
Endpoint.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Endpoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Endpoint.Builder
Overrides

clearLabels()

public Endpoint.Builder clearLabels()
Returns
TypeDescription
Endpoint.Builder

clearName()

public Endpoint.Builder clearName()

Output only. The name of the endpoint.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Endpoint.Builder

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
TypeDescription
Endpoint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Endpoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Endpoint.Builder
Overrides

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
TypeDescription
Endpoint.Builder

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
TypeDescription
Endpoint.Builder

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
TypeDescription
Endpoint.Builder

This builder for chaining.

clearUpdateTime()

public Endpoint.Builder clearUpdateTime()

Output only. The update time timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Endpoint.Builder

clone()

public Endpoint.Builder clone()
Returns
TypeDescription
Endpoint.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

The labels of the endpoint.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The create time timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The create time timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The create time timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Endpoint getDefaultInstanceForType()
Returns
TypeDescription
Endpoint

getDescription()

public String getDescription()

User-provided description of the endpoint

string description = 8;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User-provided description of the endpoint

string description = 8;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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];

Returns
TypeDescription
String

The endpointForwardingRule.

getEndpointForwardingRuleBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for endpointForwardingRule.

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];

Returns
TypeDescription
String

The endpointIp.

getEndpointIpBytes()

public ByteString getEndpointIpBytes()

Output only. The IP address of the IDS Endpoint's ILB.

string endpoint_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for endpointIp.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

The labels of the endpoint.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

The labels of the endpoint.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

The labels of the endpoint.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

The labels of the endpoint.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Output only. The name of the endpoint.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the endpoint.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

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];

Returns
TypeDescription
String

The network.

getNetworkBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for network.

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];

Returns
TypeDescription
Endpoint.Severity

The severity.

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];

Returns
TypeDescription
int

The enum numeric value on the wire for severity.

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];

Returns
TypeDescription
Endpoint.State

The state.

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];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getTrafficLogs()

public boolean getTrafficLogs()

Whether the endpoint should report traffic logs in addition to threat logs.

bool traffic_logs = 13;

Returns
TypeDescription
boolean

The trafficLogs.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The update time timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The update time timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update time timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The create time timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The update time timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Endpoint.Builder mergeCreateTime(Timestamp value)

Output only. The create time timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Endpoint.Builder

mergeFrom(Endpoint other)

public Endpoint.Builder mergeFrom(Endpoint other)
Parameter
NameDescription
otherEndpoint
Returns
TypeDescription
Endpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Endpoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Endpoint.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Endpoint.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Endpoint.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Endpoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Endpoint.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Endpoint.Builder mergeUpdateTime(Timestamp value)

Output only. The update time timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Endpoint.Builder

putAllLabels(Map<String,String> values)

public Endpoint.Builder putAllLabels(Map<String,String> values)

The labels of the endpoint.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Endpoint.Builder

putLabels(String key, String value)

public Endpoint.Builder putLabels(String key, String value)

The labels of the endpoint.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Endpoint.Builder

removeLabels(String key)

public Endpoint.Builder removeLabels(String key)

The labels of the endpoint.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
Endpoint.Builder

setCreateTime(Timestamp value)

public Endpoint.Builder setCreateTime(Timestamp value)

Output only. The create time timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Endpoint.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Endpoint.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The create time timestamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Endpoint.Builder

setDescription(String value)

public Endpoint.Builder setDescription(String value)

User-provided description of the endpoint

string description = 8;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Endpoint.Builder setDescriptionBytes(ByteString value)

User-provided description of the endpoint

string description = 8;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setEndpointForwardingRule(String value)

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];

Parameter
NameDescription
valueString

The endpointForwardingRule to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setEndpointForwardingRuleBytes(ByteString value)

public Endpoint.Builder setEndpointForwardingRuleBytes(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];

Parameter
NameDescription
valueByteString

The bytes for endpointForwardingRule to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setEndpointIp(String value)

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];

Parameter
NameDescription
valueString

The endpointIp to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setEndpointIpBytes(ByteString value)

public Endpoint.Builder setEndpointIpBytes(ByteString value)

Output only. The IP address of the IDS Endpoint's ILB.

string endpoint_ip = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for endpointIp to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Endpoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Endpoint.Builder
Overrides

setName(String value)

public Endpoint.Builder setName(String value)

Output only. The name of the endpoint.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Endpoint.Builder setNameBytes(ByteString value)

Output only. The name of the endpoint.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setNetwork(String value)

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];

Parameter
NameDescription
valueString

The network to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public Endpoint.Builder setNetworkBytes(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];

Parameter
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Endpoint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Endpoint.Builder
Overrides

setSeverity(Endpoint.Severity value)

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];

Parameter
NameDescription
valueEndpoint.Severity

The severity to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setSeverityValue(int value)

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];

Parameter
NameDescription
valueint

The enum numeric value on the wire for severity to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setState(Endpoint.State value)

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];

Parameter
NameDescription
valueEndpoint.State

The state to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setStateValue(int value)

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];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setTrafficLogs(boolean value)

public Endpoint.Builder setTrafficLogs(boolean value)

Whether the endpoint should report traffic logs in addition to threat logs.

bool traffic_logs = 13;

Parameter
NameDescription
valueboolean

The trafficLogs to set.

Returns
TypeDescription
Endpoint.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Endpoint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Endpoint.Builder
Overrides

setUpdateTime(Timestamp value)

public Endpoint.Builder setUpdateTime(Timestamp value)

Output only. The update time timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Endpoint.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Endpoint.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The update time timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Endpoint.Builder