Class Endpoint.Builder (1.41.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Endpoint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Endpoint.Builder
Overrides

build()

public Endpoint build()
Returns
Type Description
Endpoint

buildPartial()

public Endpoint buildPartial()
Returns
Type Description
Endpoint

clear()

public Endpoint.Builder clear()
Returns
Type Description
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
Type Description
Endpoint.Builder

clearDescription()

public Endpoint.Builder clearDescription()

User-provided description of the endpoint

string description = 8;

Returns
Type Description
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
Type Description
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
Type Description
Endpoint.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Endpoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Endpoint.Builder
Overrides

clearLabels()

public Endpoint.Builder clearLabels()
Returns
Type Description
Endpoint.Builder

clearName()

public Endpoint.Builder clearName()

Output only. The name of the endpoint.

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

Returns
Type Description
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
Type Description
Endpoint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Endpoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
Endpoint.Builder

clone()

public Endpoint.Builder clone()
Returns
Type Description
Endpoint.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

The labels of the endpoint.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The create time timestamp.

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

Returns
Type Description
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
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The create time timestamp.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Endpoint getDefaultInstanceForType()
Returns
Type Description
Endpoint

getDescription()

public String getDescription()

User-provided description of the endpoint

string description = 8;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User-provided description of the endpoint

string description = 8;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for endpointIp.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

The labels of the endpoint.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

The labels of the endpoint.

map<string, string> labels = 4;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

The labels of the endpoint.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Output only. The name of the endpoint.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the endpoint.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update time timestamp.

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

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The create time timestamp.

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

Returns
Type Description
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
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
Endpoint.Builder

mergeFrom(Endpoint other)

public Endpoint.Builder mergeFrom(Endpoint other)
Parameter
Name Description
other Endpoint
Returns
Type Description
Endpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Endpoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Endpoint.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Endpoint.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Endpoint.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Endpoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
Endpoint.Builder

removeLabels(String key)

public Endpoint.Builder removeLabels(String key)

The labels of the endpoint.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
Endpoint.Builder

setDescription(String value)

public Endpoint.Builder setDescription(String value)

User-provided description of the endpoint

string description = 8;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
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
Name Description
value String

The endpointForwardingRule to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for endpointForwardingRule to set.

Returns
Type Description
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
Name Description
value String

The endpointIp to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for endpointIp to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Endpoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
value String

The network to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value Endpoint.Severity

The severity to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value Endpoint.State

The state to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value boolean

The trafficLogs to set.

Returns
Type Description
Endpoint.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Endpoint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
Endpoint.Builder