Class EndpointPolicy.Builder (0.15.0)

public static final class EndpointPolicy.Builder extends GeneratedMessageV3.Builder<EndpointPolicy.Builder> implements EndpointPolicyOrBuilder

EndpointPolicy is a resource that helps apply desired configuration on the endpoints that match specific criteria. For example, this resource can be used to apply "authentication config" an all endpoints that serve on port 8080.

Protobuf type google.events.cloud.networkservices.v1.EndpointPolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EndpointPolicy build()
Returns
Type Description
EndpointPolicy

buildPartial()

public EndpointPolicy buildPartial()
Returns
Type Description
EndpointPolicy

clear()

public EndpointPolicy.Builder clear()
Returns
Type Description
EndpointPolicy.Builder
Overrides

clearAuthorizationPolicy()

public EndpointPolicy.Builder clearAuthorizationPolicy()

Optional. This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints. Refer to Authorization. If this field is not specified, authorization is disabled(no authz checks) for this endpoint.

string authorization_policy = 7;

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

clearClientTlsPolicy()

public EndpointPolicy.Builder clearClientTlsPolicy()

Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints. More specifically, it is applied to the outgoing traffic from the proxy to the endpoint. This is typically used for sidecar model where the proxy identifies itself as endpoint to the control plane, with the connection between sidecar and endpoint requiring authentication. If this field is not set, authentication is disabled(open). Applicable only when EndpointPolicyType is SIDECAR_PROXY.

string client_tls_policy = 13;

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

clearCreateTime()

public EndpointPolicy.Builder clearCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
EndpointPolicy.Builder

clearDescription()

public EndpointPolicy.Builder clearDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 11;

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

clearEndpointMatcher()

public EndpointPolicy.Builder clearEndpointMatcher()

Required. A matcher that selects endpoints to which the policies should be applied.

.google.events.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9;

Returns
Type Description
EndpointPolicy.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

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

clearName()

public EndpointPolicy.Builder clearName()

Required. Name of the EndpointPolicy resource. It matches pattern projects/{project}/locations/global/endpointPolicies/{endpoint_policy}.

string name = 1;

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public EndpointPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
EndpointPolicy.Builder
Overrides

clearServerTlsPolicy()

public EndpointPolicy.Builder clearServerTlsPolicy()

Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends. If this field is not set, authentication is disabled(open) for this endpoint.

string server_tls_policy = 12;

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

clearTrafficPortSelector()

public EndpointPolicy.Builder clearTrafficPortSelector()

Optional. Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports.

.google.events.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10;

Returns
Type Description
EndpointPolicy.Builder

clearType()

public EndpointPolicy.Builder clearType()

Required. The type of endpoint policy. This is primarily used to validate the configuration.

.google.events.cloud.networkservices.v1.EndpointPolicy.EndpointPolicyType type = 5;

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

clearUpdateTime()

public EndpointPolicy.Builder clearUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
EndpointPolicy.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Set of label tags associated with the EndpointPolicy resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAuthorizationPolicy()

public String getAuthorizationPolicy()

Optional. This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints. Refer to Authorization. If this field is not specified, authorization is disabled(no authz checks) for this endpoint.

string authorization_policy = 7;

Returns
Type Description
String

The authorizationPolicy.

getAuthorizationPolicyBytes()

public ByteString getAuthorizationPolicyBytes()

Optional. This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints. Refer to Authorization. If this field is not specified, authorization is disabled(no authz checks) for this endpoint.

string authorization_policy = 7;

Returns
Type Description
ByteString

The bytes for authorizationPolicy.

getClientTlsPolicy()

public String getClientTlsPolicy()

Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints. More specifically, it is applied to the outgoing traffic from the proxy to the endpoint. This is typically used for sidecar model where the proxy identifies itself as endpoint to the control plane, with the connection between sidecar and endpoint requiring authentication. If this field is not set, authentication is disabled(open). Applicable only when EndpointPolicyType is SIDECAR_PROXY.

string client_tls_policy = 13;

Returns
Type Description
String

The clientTlsPolicy.

getClientTlsPolicyBytes()

public ByteString getClientTlsPolicyBytes()

Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints. More specifically, it is applied to the outgoing traffic from the proxy to the endpoint. This is typically used for sidecar model where the proxy identifies itself as endpoint to the control plane, with the connection between sidecar and endpoint requiring authentication. If this field is not set, authentication is disabled(open). Applicable only when EndpointPolicyType is SIDECAR_PROXY.

string client_tls_policy = 13;

Returns
Type Description
ByteString

The bytes for clientTlsPolicy.

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public EndpointPolicy getDefaultInstanceForType()
Returns
Type Description
EndpointPolicy

getDescription()

public String getDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 11;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 11;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndpointMatcher()

public EndpointMatcher getEndpointMatcher()

Required. A matcher that selects endpoints to which the policies should be applied.

.google.events.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9;

Returns
Type Description
EndpointMatcher

The endpointMatcher.

getEndpointMatcherBuilder()

public EndpointMatcher.Builder getEndpointMatcherBuilder()

Required. A matcher that selects endpoints to which the policies should be applied.

.google.events.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9;

Returns
Type Description
EndpointMatcher.Builder

getEndpointMatcherOrBuilder()

public EndpointMatcherOrBuilder getEndpointMatcherOrBuilder()

Required. A matcher that selects endpoints to which the policies should be applied.

.google.events.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9;

Returns
Type Description
EndpointMatcherOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Set of label tags associated with the EndpointPolicy resource.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Set of label tags associated with the EndpointPolicy resource.

map<string, string> labels = 4;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Set of label tags associated with the EndpointPolicy resource.

map<string, string> labels = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Set of label tags associated with the EndpointPolicy resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Required. Name of the EndpointPolicy resource. It matches pattern projects/{project}/locations/global/endpointPolicies/{endpoint_policy}.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the EndpointPolicy resource. It matches pattern projects/{project}/locations/global/endpointPolicies/{endpoint_policy}.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getServerTlsPolicy()

public String getServerTlsPolicy()

Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends. If this field is not set, authentication is disabled(open) for this endpoint.

string server_tls_policy = 12;

Returns
Type Description
String

The serverTlsPolicy.

getServerTlsPolicyBytes()

public ByteString getServerTlsPolicyBytes()

Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends. If this field is not set, authentication is disabled(open) for this endpoint.

string server_tls_policy = 12;

Returns
Type Description
ByteString

The bytes for serverTlsPolicy.

getTrafficPortSelector()

public TrafficPortSelector getTrafficPortSelector()

Optional. Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports.

.google.events.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10;

Returns
Type Description
TrafficPortSelector

The trafficPortSelector.

getTrafficPortSelectorBuilder()

public TrafficPortSelector.Builder getTrafficPortSelectorBuilder()

Optional. Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports.

.google.events.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10;

Returns
Type Description
TrafficPortSelector.Builder

getTrafficPortSelectorOrBuilder()

public TrafficPortSelectorOrBuilder getTrafficPortSelectorOrBuilder()

Optional. Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports.

.google.events.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10;

Returns
Type Description
TrafficPortSelectorOrBuilder

getType()

public EndpointPolicy.EndpointPolicyType getType()

Required. The type of endpoint policy. This is primarily used to validate the configuration.

.google.events.cloud.networkservices.v1.EndpointPolicy.EndpointPolicyType type = 5;

Returns
Type Description
EndpointPolicy.EndpointPolicyType

The type.

getTypeValue()

public int getTypeValue()

Required. The type of endpoint policy. This is primarily used to validate the configuration.

.google.events.cloud.networkservices.v1.EndpointPolicy.EndpointPolicyType type = 5;

Returns
Type Description
int

The enum numeric value on the wire for type.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
boolean

Whether the createTime field is set.

hasEndpointMatcher()

public boolean hasEndpointMatcher()

Required. A matcher that selects endpoints to which the policies should be applied.

.google.events.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9;

Returns
Type Description
boolean

Whether the endpointMatcher field is set.

hasTrafficPortSelector()

public boolean hasTrafficPortSelector()

Optional. Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports.

.google.events.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10;

Returns
Type Description
boolean

Whether the trafficPortSelector field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public EndpointPolicy.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
EndpointPolicy.Builder

mergeEndpointMatcher(EndpointMatcher value)

public EndpointPolicy.Builder mergeEndpointMatcher(EndpointMatcher value)

Required. A matcher that selects endpoints to which the policies should be applied.

.google.events.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9;

Parameter
Name Description
value EndpointMatcher
Returns
Type Description
EndpointPolicy.Builder

mergeFrom(EndpointPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTrafficPortSelector(TrafficPortSelector value)

public EndpointPolicy.Builder mergeTrafficPortSelector(TrafficPortSelector value)

Optional. Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports.

.google.events.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10;

Parameter
Name Description
value TrafficPortSelector
Returns
Type Description
EndpointPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EndpointPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EndpointPolicy.Builder
Overrides

mergeUpdateTime(Timestamp value)

public EndpointPolicy.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
EndpointPolicy.Builder

putAllLabels(Map<String,String> values)

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

Optional. Set of label tags associated with the EndpointPolicy resource.

map<string, string> labels = 4;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
EndpointPolicy.Builder

putLabels(String key, String value)

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

Optional. Set of label tags associated with the EndpointPolicy resource.

map<string, string> labels = 4;

Parameters
Name Description
key String
value String
Returns
Type Description
EndpointPolicy.Builder

removeLabels(String key)

public EndpointPolicy.Builder removeLabels(String key)

Optional. Set of label tags associated with the EndpointPolicy resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
EndpointPolicy.Builder

setAuthorizationPolicy(String value)

public EndpointPolicy.Builder setAuthorizationPolicy(String value)

Optional. This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints. Refer to Authorization. If this field is not specified, authorization is disabled(no authz checks) for this endpoint.

string authorization_policy = 7;

Parameter
Name Description
value String

The authorizationPolicy to set.

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

setAuthorizationPolicyBytes(ByteString value)

public EndpointPolicy.Builder setAuthorizationPolicyBytes(ByteString value)

Optional. This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints. Refer to Authorization. If this field is not specified, authorization is disabled(no authz checks) for this endpoint.

string authorization_policy = 7;

Parameter
Name Description
value ByteString

The bytes for authorizationPolicy to set.

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

setClientTlsPolicy(String value)

public EndpointPolicy.Builder setClientTlsPolicy(String value)

Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints. More specifically, it is applied to the outgoing traffic from the proxy to the endpoint. This is typically used for sidecar model where the proxy identifies itself as endpoint to the control plane, with the connection between sidecar and endpoint requiring authentication. If this field is not set, authentication is disabled(open). Applicable only when EndpointPolicyType is SIDECAR_PROXY.

string client_tls_policy = 13;

Parameter
Name Description
value String

The clientTlsPolicy to set.

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

setClientTlsPolicyBytes(ByteString value)

public EndpointPolicy.Builder setClientTlsPolicyBytes(ByteString value)

Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints. More specifically, it is applied to the outgoing traffic from the proxy to the endpoint. This is typically used for sidecar model where the proxy identifies itself as endpoint to the control plane, with the connection between sidecar and endpoint requiring authentication. If this field is not set, authentication is disabled(open). Applicable only when EndpointPolicyType is SIDECAR_PROXY.

string client_tls_policy = 13;

Parameter
Name Description
value ByteString

The bytes for clientTlsPolicy to set.

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public EndpointPolicy.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
EndpointPolicy.Builder

setCreateTime(Timestamp.Builder builderForValue)

public EndpointPolicy.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EndpointPolicy.Builder

setDescription(String value)

public EndpointPolicy.Builder setDescription(String value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 11;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public EndpointPolicy.Builder setDescriptionBytes(ByteString value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 11;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

setEndpointMatcher(EndpointMatcher value)

public EndpointPolicy.Builder setEndpointMatcher(EndpointMatcher value)

Required. A matcher that selects endpoints to which the policies should be applied.

.google.events.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9;

Parameter
Name Description
value EndpointMatcher
Returns
Type Description
EndpointPolicy.Builder

setEndpointMatcher(EndpointMatcher.Builder builderForValue)

public EndpointPolicy.Builder setEndpointMatcher(EndpointMatcher.Builder builderForValue)

Required. A matcher that selects endpoints to which the policies should be applied.

.google.events.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9;

Parameter
Name Description
builderForValue EndpointMatcher.Builder
Returns
Type Description
EndpointPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public EndpointPolicy.Builder setName(String value)

Required. Name of the EndpointPolicy resource. It matches pattern projects/{project}/locations/global/endpointPolicies/{endpoint_policy}.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

setNameBytes(ByteString value)

public EndpointPolicy.Builder setNameBytes(ByteString value)

Required. Name of the EndpointPolicy resource. It matches pattern projects/{project}/locations/global/endpointPolicies/{endpoint_policy}.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

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

public EndpointPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EndpointPolicy.Builder
Overrides

setServerTlsPolicy(String value)

public EndpointPolicy.Builder setServerTlsPolicy(String value)

Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends. If this field is not set, authentication is disabled(open) for this endpoint.

string server_tls_policy = 12;

Parameter
Name Description
value String

The serverTlsPolicy to set.

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

setServerTlsPolicyBytes(ByteString value)

public EndpointPolicy.Builder setServerTlsPolicyBytes(ByteString value)

Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends. If this field is not set, authentication is disabled(open) for this endpoint.

string server_tls_policy = 12;

Parameter
Name Description
value ByteString

The bytes for serverTlsPolicy to set.

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

setTrafficPortSelector(TrafficPortSelector value)

public EndpointPolicy.Builder setTrafficPortSelector(TrafficPortSelector value)

Optional. Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports.

.google.events.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10;

Parameter
Name Description
value TrafficPortSelector
Returns
Type Description
EndpointPolicy.Builder

setTrafficPortSelector(TrafficPortSelector.Builder builderForValue)

public EndpointPolicy.Builder setTrafficPortSelector(TrafficPortSelector.Builder builderForValue)

Optional. Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports.

.google.events.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10;

Parameter
Name Description
builderForValue TrafficPortSelector.Builder
Returns
Type Description
EndpointPolicy.Builder

setType(EndpointPolicy.EndpointPolicyType value)

public EndpointPolicy.Builder setType(EndpointPolicy.EndpointPolicyType value)

Required. The type of endpoint policy. This is primarily used to validate the configuration.

.google.events.cloud.networkservices.v1.EndpointPolicy.EndpointPolicyType type = 5;

Parameter
Name Description
value EndpointPolicy.EndpointPolicyType

The type to set.

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

setTypeValue(int value)

public EndpointPolicy.Builder setTypeValue(int value)

Required. The type of endpoint policy. This is primarily used to validate the configuration.

.google.events.cloud.networkservices.v1.EndpointPolicy.EndpointPolicyType type = 5;

Parameter
Name Description
value int

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

Returns
Type Description
EndpointPolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final EndpointPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EndpointPolicy.Builder
Overrides

setUpdateTime(Timestamp value)

public EndpointPolicy.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
EndpointPolicy.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public EndpointPolicy.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EndpointPolicy.Builder