Class KubernetesEndpointAggregator.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<KubernetesEndpointAggregator.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<KubernetesEndpointAggregator.Builder>
com.linecorp.centraldogma.xds.k8s.v1.KubernetesEndpointAggregator.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, KubernetesEndpointAggregatorOrBuilder, Cloneable
Enclosing class:
KubernetesEndpointAggregator

public static final class KubernetesEndpointAggregator.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<KubernetesEndpointAggregator.Builder> implements KubernetesEndpointAggregatorOrBuilder
Protobuf type centraldogma.xds.k8s.v1.KubernetesEndpointAggregator
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesEndpointAggregator.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.GeneratedMessageV3.Builder<KubernetesEndpointAggregator.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.GeneratedMessageV3.Builder<KubernetesEndpointAggregator.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesEndpointAggregator.Builder>
    • setField

      public KubernetesEndpointAggregator.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesEndpointAggregator.Builder>
    • clearField

      public KubernetesEndpointAggregator.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesEndpointAggregator.Builder>
    • clearOneof

      public KubernetesEndpointAggregator.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesEndpointAggregator.Builder>
    • setRepeatedField

      public KubernetesEndpointAggregator.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesEndpointAggregator.Builder>
    • addRepeatedField

      public KubernetesEndpointAggregator.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesEndpointAggregator.Builder>
    • mergeFrom

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

    • isInitialized

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

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

      public String getName()
      Format: groups/{group}/k8s/endpointAggregators/{endpoint}
      
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface KubernetesEndpointAggregatorOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      Format: groups/{group}/k8s/endpointAggregators/{endpoint}
      
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface KubernetesEndpointAggregatorOrBuilder
      Returns:
      The bytes for name.
    • setName

      Format: groups/{group}/k8s/endpointAggregators/{endpoint}
      
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      Format: groups/{group}/k8s/endpointAggregators/{endpoint}
      
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public KubernetesEndpointAggregator.Builder setNameBytes(com.google.protobuf.ByteString value)
      Format: groups/{group}/k8s/endpointAggregators/{endpoint}
      
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getClusterName

      public String getClusterName()
      string cluster_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getClusterName in interface KubernetesEndpointAggregatorOrBuilder
      Returns:
      The clusterName.
    • getClusterNameBytes

      public com.google.protobuf.ByteString getClusterNameBytes()
      string cluster_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getClusterNameBytes in interface KubernetesEndpointAggregatorOrBuilder
      Returns:
      The bytes for clusterName.
    • setClusterName

      public KubernetesEndpointAggregator.Builder setClusterName(String value)
      string cluster_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The clusterName to set.
      Returns:
      This builder for chaining.
    • clearClusterName

      public KubernetesEndpointAggregator.Builder clearClusterName()
      string cluster_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setClusterNameBytes

      public KubernetesEndpointAggregator.Builder setClusterNameBytes(com.google.protobuf.ByteString value)
      string cluster_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for clusterName to set.
      Returns:
      This builder for chaining.
    • hasPolicy

      public boolean hasPolicy()
      .envoy.config.endpoint.v3.ClusterLoadAssignment.Policy policy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPolicy in interface KubernetesEndpointAggregatorOrBuilder
      Returns:
      Whether the policy field is set.
    • getPolicy

      public io.envoyproxy.envoy.config.endpoint.v3.ClusterLoadAssignment.Policy getPolicy()
      .envoy.config.endpoint.v3.ClusterLoadAssignment.Policy policy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPolicy in interface KubernetesEndpointAggregatorOrBuilder
      Returns:
      The policy.
    • setPolicy

      public KubernetesEndpointAggregator.Builder setPolicy(io.envoyproxy.envoy.config.endpoint.v3.ClusterLoadAssignment.Policy value)
      .envoy.config.endpoint.v3.ClusterLoadAssignment.Policy policy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setPolicy

      public KubernetesEndpointAggregator.Builder setPolicy(io.envoyproxy.envoy.config.endpoint.v3.ClusterLoadAssignment.Policy.Builder builderForValue)
      .envoy.config.endpoint.v3.ClusterLoadAssignment.Policy policy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergePolicy

      public KubernetesEndpointAggregator.Builder mergePolicy(io.envoyproxy.envoy.config.endpoint.v3.ClusterLoadAssignment.Policy value)
      .envoy.config.endpoint.v3.ClusterLoadAssignment.Policy policy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearPolicy

      .envoy.config.endpoint.v3.ClusterLoadAssignment.Policy policy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getPolicyBuilder

      public io.envoyproxy.envoy.config.endpoint.v3.ClusterLoadAssignment.Policy.Builder getPolicyBuilder()
      .envoy.config.endpoint.v3.ClusterLoadAssignment.Policy policy = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getPolicyOrBuilder

      public io.envoyproxy.envoy.config.endpoint.v3.ClusterLoadAssignment.PolicyOrBuilder getPolicyOrBuilder()
      .envoy.config.endpoint.v3.ClusterLoadAssignment.Policy policy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPolicyOrBuilder in interface KubernetesEndpointAggregatorOrBuilder
    • getLocalityLbEndpointsList

      public List<KubernetesLocalityLbEndpoints> getLocalityLbEndpointsList()
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLocalityLbEndpointsList in interface KubernetesEndpointAggregatorOrBuilder
    • getLocalityLbEndpointsCount

      public int getLocalityLbEndpointsCount()
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLocalityLbEndpointsCount in interface KubernetesEndpointAggregatorOrBuilder
    • getLocalityLbEndpoints

      public KubernetesLocalityLbEndpoints getLocalityLbEndpoints(int index)
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLocalityLbEndpoints in interface KubernetesEndpointAggregatorOrBuilder
    • setLocalityLbEndpoints

      public KubernetesEndpointAggregator.Builder setLocalityLbEndpoints(int index, KubernetesLocalityLbEndpoints value)
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
    • setLocalityLbEndpoints

      public KubernetesEndpointAggregator.Builder setLocalityLbEndpoints(int index, KubernetesLocalityLbEndpoints.Builder builderForValue)
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
    • addLocalityLbEndpoints

      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
    • addLocalityLbEndpoints

      public KubernetesEndpointAggregator.Builder addLocalityLbEndpoints(int index, KubernetesLocalityLbEndpoints value)
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
    • addLocalityLbEndpoints

      public KubernetesEndpointAggregator.Builder addLocalityLbEndpoints(KubernetesLocalityLbEndpoints.Builder builderForValue)
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
    • addLocalityLbEndpoints

      public KubernetesEndpointAggregator.Builder addLocalityLbEndpoints(int index, KubernetesLocalityLbEndpoints.Builder builderForValue)
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
    • addAllLocalityLbEndpoints

      public KubernetesEndpointAggregator.Builder addAllLocalityLbEndpoints(Iterable<? extends KubernetesLocalityLbEndpoints> values)
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearLocalityLbEndpoints

      public KubernetesEndpointAggregator.Builder clearLocalityLbEndpoints()
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
    • removeLocalityLbEndpoints

      public KubernetesEndpointAggregator.Builder removeLocalityLbEndpoints(int index)
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
    • getLocalityLbEndpointsBuilder

      public KubernetesLocalityLbEndpoints.Builder getLocalityLbEndpointsBuilder(int index)
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
    • getLocalityLbEndpointsOrBuilder

      public KubernetesLocalityLbEndpointsOrBuilder getLocalityLbEndpointsOrBuilder(int index)
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLocalityLbEndpointsOrBuilder in interface KubernetesEndpointAggregatorOrBuilder
    • getLocalityLbEndpointsOrBuilderList

      public List<? extends KubernetesLocalityLbEndpointsOrBuilder> getLocalityLbEndpointsOrBuilderList()
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLocalityLbEndpointsOrBuilderList in interface KubernetesEndpointAggregatorOrBuilder
    • addLocalityLbEndpointsBuilder

      public KubernetesLocalityLbEndpoints.Builder addLocalityLbEndpointsBuilder()
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
    • addLocalityLbEndpointsBuilder

      public KubernetesLocalityLbEndpoints.Builder addLocalityLbEndpointsBuilder(int index)
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
    • getLocalityLbEndpointsBuilderList

      public List<KubernetesLocalityLbEndpoints.Builder> getLocalityLbEndpointsBuilderList()
      repeated .centraldogma.xds.k8s.v1.KubernetesLocalityLbEndpoints locality_lb_endpoints = 4 [(.google.api.field_behavior) = REQUIRED];
    • setUnknownFields

      public final KubernetesEndpointAggregator.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesEndpointAggregator.Builder>
    • mergeUnknownFields

      public final KubernetesEndpointAggregator.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesEndpointAggregator.Builder>