Interface EndpointPolicyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
EndpointPolicy, EndpointPolicy.Builder

@Generated public interface EndpointPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      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];
      Returns:
      The name.
    • getNameBytes

      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];
      Returns:
      The bytes for name.
    • hasCreateTime

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

      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];
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

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

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

      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];
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

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

      int getLabelsCount()
       Optional. Set of label tags associated with the EndpointPolicy resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • containsLabels

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

      Deprecated.
      Use getLabelsMap() instead.
    • getLabelsMap

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

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

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

      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];
      Returns:
      The enum numeric value on the wire for type.
    • 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];
      Returns:
      The type.
    • getAuthorizationPolicy

      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) = { ... }
      Returns:
      The authorizationPolicy.
    • getAuthorizationPolicyBytes

      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) = { ... }
      Returns:
      The bytes for authorizationPolicy.
    • hasEndpointMatcher

      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];
      Returns:
      Whether the endpointMatcher field is set.
    • getEndpointMatcher

      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];
      Returns:
      The endpointMatcher.
    • getEndpointMatcherOrBuilder

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

      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];
      Returns:
      Whether the trafficPortSelector field is set.
    • getTrafficPortSelector

      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];
      Returns:
      The trafficPortSelector.
    • getTrafficPortSelectorOrBuilder

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

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

      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];
      Returns:
      The bytes for description.
    • getServerTlsPolicy

      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) = { ... }
      Returns:
      The serverTlsPolicy.
    • getServerTlsPolicyBytes

      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) = { ... }
      Returns:
      The bytes for serverTlsPolicy.
    • getClientTlsPolicy

      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) = { ... }
      Returns:
      The clientTlsPolicy.
    • getClientTlsPolicyBytes

      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) = { ... }
      Returns:
      The bytes for clientTlsPolicy.