Class EndpointPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EndpointPolicy.Builder>
com.google.cloud.networkservices.v1.EndpointPolicy.Builder
All Implemented Interfaces:
EndpointPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
EndpointPolicy

public static final class EndpointPolicy.Builder extends com.google.protobuf.GeneratedMessage.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.cloud.networkservices.v1.EndpointPolicy
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<EndpointPolicy.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<EndpointPolicy.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public EndpointPolicy.Builder mergeFrom(EndpointPolicy other)
    • isInitialized

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

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

      public String getName()
       Identifier. Name of the EndpointPolicy resource. It matches pattern
       `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface EndpointPolicyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Name of the EndpointPolicy resource. It matches pattern
       `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface EndpointPolicyOrBuilder
      Returns:
      The bytes for name.
    • setName

      public EndpointPolicy.Builder setName(String value)
       Identifier. Name of the EndpointPolicy resource. It matches pattern
       `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public EndpointPolicy.Builder clearName()
       Identifier. Name of the EndpointPolicy resource. It matches pattern
       `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public EndpointPolicy.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Name of the EndpointPolicy resource. It matches pattern
       `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

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

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface EndpointPolicyOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public EndpointPolicy.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public EndpointPolicy.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public EndpointPolicy.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public EndpointPolicy.Builder clearCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface EndpointPolicyOrBuilder
    • hasUpdateTime

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

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface EndpointPolicyOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public EndpointPolicy.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public EndpointPolicy.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public EndpointPolicy.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public EndpointPolicy.Builder clearUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface EndpointPolicyOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: EndpointPolicyOrBuilder
       Optional. Set of label tags associated with the EndpointPolicy resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface EndpointPolicyOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Set of label tags associated with the EndpointPolicy resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface EndpointPolicyOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface EndpointPolicyOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Set of label tags associated with the EndpointPolicy resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface EndpointPolicyOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Set of label tags associated with the EndpointPolicy resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface EndpointPolicyOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Set of label tags associated with the EndpointPolicy resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface EndpointPolicyOrBuilder
    • clearLabels

      public EndpointPolicy.Builder clearLabels()
    • removeLabels

      public EndpointPolicy.Builder removeLabels(String key)
       Optional. Set of label tags associated with the EndpointPolicy resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

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

      public EndpointPolicy.Builder putLabels(String key, String value)
       Optional. Set of label tags associated with the EndpointPolicy resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public EndpointPolicy.Builder putAllLabels(Map<String,String> values)
       Optional. Set of label tags associated with the EndpointPolicy resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getTypeValue

      public int getTypeValue()
       Required. The type of endpoint policy. This is primarily used to validate
       the configuration.
       
      .google.cloud.networkservices.v1.EndpointPolicy.EndpointPolicyType type = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTypeValue in interface EndpointPolicyOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public EndpointPolicy.Builder setTypeValue(int value)
       Required. The type of endpoint policy. This is primarily used to validate
       the configuration.
       
      .google.cloud.networkservices.v1.EndpointPolicy.EndpointPolicyType type = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

       Required. The type of endpoint policy. This is primarily used to validate
       the configuration.
       
      .google.cloud.networkservices.v1.EndpointPolicy.EndpointPolicyType type = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getType in interface EndpointPolicyOrBuilder
      Returns:
      The type.
    • setType

       Required. The type of endpoint policy. This is primarily used to validate
       the configuration.
       
      .google.cloud.networkservices.v1.EndpointPolicy.EndpointPolicyType type = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public EndpointPolicy.Builder clearType()
       Required. The type of endpoint policy. This is primarily used to validate
       the configuration.
       
      .google.cloud.networkservices.v1.EndpointPolicy.EndpointPolicyType type = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • 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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAuthorizationPolicy in interface EndpointPolicyOrBuilder
      Returns:
      The authorizationPolicy.
    • getAuthorizationPolicyBytes

      public com.google.protobuf.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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAuthorizationPolicyBytes in interface EndpointPolicyOrBuilder
      Returns:
      The bytes for authorizationPolicy.
    • setAuthorizationPolicy

      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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The authorizationPolicy to set.
      Returns:
      This builder for chaining.
    • 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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAuthorizationPolicyBytes

      public EndpointPolicy.Builder setAuthorizationPolicyBytes(com.google.protobuf.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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for authorizationPolicy to set.
      Returns:
      This builder for chaining.
    • hasEndpointMatcher

      public boolean hasEndpointMatcher()
       Required. A matcher that selects endpoints to which the policies should be
       applied.
       
      .google.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasEndpointMatcher in interface EndpointPolicyOrBuilder
      Returns:
      Whether the endpointMatcher field is set.
    • getEndpointMatcher

      public EndpointMatcher getEndpointMatcher()
       Required. A matcher that selects endpoints to which the policies should be
       applied.
       
      .google.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndpointMatcher in interface EndpointPolicyOrBuilder
      Returns:
      The endpointMatcher.
    • setEndpointMatcher

      public EndpointPolicy.Builder setEndpointMatcher(EndpointMatcher value)
       Required. A matcher that selects endpoints to which the policies should be
       applied.
       
      .google.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9 [(.google.api.field_behavior) = REQUIRED];
    • setEndpointMatcher

      public EndpointPolicy.Builder setEndpointMatcher(EndpointMatcher.Builder builderForValue)
       Required. A matcher that selects endpoints to which the policies should be
       applied.
       
      .google.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9 [(.google.api.field_behavior) = REQUIRED];
    • mergeEndpointMatcher

      public EndpointPolicy.Builder mergeEndpointMatcher(EndpointMatcher value)
       Required. A matcher that selects endpoints to which the policies should be
       applied.
       
      .google.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9 [(.google.api.field_behavior) = REQUIRED];
    • clearEndpointMatcher

      public EndpointPolicy.Builder clearEndpointMatcher()
       Required. A matcher that selects endpoints to which the policies should be
       applied.
       
      .google.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9 [(.google.api.field_behavior) = REQUIRED];
    • getEndpointMatcherBuilder

      public EndpointMatcher.Builder getEndpointMatcherBuilder()
       Required. A matcher that selects endpoints to which the policies should be
       applied.
       
      .google.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9 [(.google.api.field_behavior) = REQUIRED];
    • getEndpointMatcherOrBuilder

      public EndpointMatcherOrBuilder getEndpointMatcherOrBuilder()
       Required. A matcher that selects endpoints to which the policies should be
       applied.
       
      .google.cloud.networkservices.v1.EndpointMatcher endpoint_matcher = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndpointMatcherOrBuilder in interface EndpointPolicyOrBuilder
    • 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.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTrafficPortSelector in interface EndpointPolicyOrBuilder
      Returns:
      Whether the trafficPortSelector field is set.
    • 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.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTrafficPortSelector in interface EndpointPolicyOrBuilder
      Returns:
      The trafficPortSelector.
    • setTrafficPortSelector

      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.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10 [(.google.api.field_behavior) = OPTIONAL];
    • setTrafficPortSelector

      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.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTrafficPortSelector

      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.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10 [(.google.api.field_behavior) = OPTIONAL];
    • 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.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10 [(.google.api.field_behavior) = OPTIONAL];
    • 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.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10 [(.google.api.field_behavior) = OPTIONAL];
    • 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.cloud.networkservices.v1.TrafficPortSelector traffic_port_selector = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTrafficPortSelectorOrBuilder in interface EndpointPolicyOrBuilder
    • getDescription

      public String getDescription()
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface EndpointPolicyOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface EndpointPolicyOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public EndpointPolicy.Builder setDescription(String value)
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 11 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public EndpointPolicy.Builder clearDescription()
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 11 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public EndpointPolicy.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 11 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • 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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getServerTlsPolicy in interface EndpointPolicyOrBuilder
      Returns:
      The serverTlsPolicy.
    • getServerTlsPolicyBytes

      public com.google.protobuf.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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getServerTlsPolicyBytes in interface EndpointPolicyOrBuilder
      Returns:
      The bytes for serverTlsPolicy.
    • setServerTlsPolicy

      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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The serverTlsPolicy to set.
      Returns:
      This builder for chaining.
    • 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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setServerTlsPolicyBytes

      public EndpointPolicy.Builder setServerTlsPolicyBytes(com.google.protobuf.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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for serverTlsPolicy to set.
      Returns:
      This builder for chaining.
    • 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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getClientTlsPolicy in interface EndpointPolicyOrBuilder
      Returns:
      The clientTlsPolicy.
    • getClientTlsPolicyBytes

      public com.google.protobuf.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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getClientTlsPolicyBytes in interface EndpointPolicyOrBuilder
      Returns:
      The bytes for clientTlsPolicy.
    • setClientTlsPolicy

      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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The clientTlsPolicy to set.
      Returns:
      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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setClientTlsPolicyBytes

      public EndpointPolicy.Builder setClientTlsPolicyBytes(com.google.protobuf.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 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for clientTlsPolicy to set.
      Returns:
      This builder for chaining.