Class Service.GkeService.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Service.GkeService.Builder>
com.google.monitoring.v3.Service.GkeService.Builder
All Implemented Interfaces:
Service.GkeServiceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Service.GkeService

public static final class Service.GkeService.Builder extends com.google.protobuf.GeneratedMessage.Builder<Service.GkeService.Builder> implements Service.GkeServiceOrBuilder
 GKE Service. The "service" here represents a
 [Kubernetes service
 object](https://kubernetes.io/docs/concepts/services-networking/service).
 The field names correspond to the resource labels on [`k8s_service`
 monitored
 resources](https://cloud.google.com/monitoring/api/resources#tag_k8s_service).
 
Protobuf type google.monitoring.v3.Service.GkeService
  • Method Details

    • getDescriptor

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

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

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

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

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

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

    • isInitialized

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

      public Service.GkeService.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<Service.GkeService.Builder>
      Throws:
      IOException
    • getProjectId

      public String getProjectId()
       Output only. The project this resource lives in. For legacy services
       migrated from the `Custom` type, this may be a distinct project from the
       one parenting the service itself.
       
      string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProjectId in interface Service.GkeServiceOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Output only. The project this resource lives in. For legacy services
       migrated from the `Custom` type, this may be a distinct project from the
       one parenting the service itself.
       
      string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProjectIdBytes in interface Service.GkeServiceOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public Service.GkeService.Builder setProjectId(String value)
       Output only. The project this resource lives in. For legacy services
       migrated from the `Custom` type, this may be a distinct project from the
       one parenting the service itself.
       
      string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public Service.GkeService.Builder clearProjectId()
       Output only. The project this resource lives in. For legacy services
       migrated from the `Custom` type, this may be a distinct project from the
       one parenting the service itself.
       
      string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public Service.GkeService.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       Output only. The project this resource lives in. For legacy services
       migrated from the `Custom` type, this may be a distinct project from the
       one parenting the service itself.
       
      string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getLocation

      public String getLocation()
       The location of the parent cluster. This may be a zone or region.
       
      string location = 2;
      Specified by:
      getLocation in interface Service.GkeServiceOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       The location of the parent cluster. This may be a zone or region.
       
      string location = 2;
      Specified by:
      getLocationBytes in interface Service.GkeServiceOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public Service.GkeService.Builder setLocation(String value)
       The location of the parent cluster. This may be a zone or region.
       
      string location = 2;
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public Service.GkeService.Builder clearLocation()
       The location of the parent cluster. This may be a zone or region.
       
      string location = 2;
      Returns:
      This builder for chaining.
    • setLocationBytes

      public Service.GkeService.Builder setLocationBytes(com.google.protobuf.ByteString value)
       The location of the parent cluster. This may be a zone or region.
       
      string location = 2;
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getClusterName

      public String getClusterName()
       The name of the parent cluster.
       
      string cluster_name = 3;
      Specified by:
      getClusterName in interface Service.GkeServiceOrBuilder
      Returns:
      The clusterName.
    • getClusterNameBytes

      public com.google.protobuf.ByteString getClusterNameBytes()
       The name of the parent cluster.
       
      string cluster_name = 3;
      Specified by:
      getClusterNameBytes in interface Service.GkeServiceOrBuilder
      Returns:
      The bytes for clusterName.
    • setClusterName

      public Service.GkeService.Builder setClusterName(String value)
       The name of the parent cluster.
       
      string cluster_name = 3;
      Parameters:
      value - The clusterName to set.
      Returns:
      This builder for chaining.
    • clearClusterName

      public Service.GkeService.Builder clearClusterName()
       The name of the parent cluster.
       
      string cluster_name = 3;
      Returns:
      This builder for chaining.
    • setClusterNameBytes

      public Service.GkeService.Builder setClusterNameBytes(com.google.protobuf.ByteString value)
       The name of the parent cluster.
       
      string cluster_name = 3;
      Parameters:
      value - The bytes for clusterName to set.
      Returns:
      This builder for chaining.
    • getNamespaceName

      public String getNamespaceName()
       The name of the parent namespace.
       
      string namespace_name = 4;
      Specified by:
      getNamespaceName in interface Service.GkeServiceOrBuilder
      Returns:
      The namespaceName.
    • getNamespaceNameBytes

      public com.google.protobuf.ByteString getNamespaceNameBytes()
       The name of the parent namespace.
       
      string namespace_name = 4;
      Specified by:
      getNamespaceNameBytes in interface Service.GkeServiceOrBuilder
      Returns:
      The bytes for namespaceName.
    • setNamespaceName

      public Service.GkeService.Builder setNamespaceName(String value)
       The name of the parent namespace.
       
      string namespace_name = 4;
      Parameters:
      value - The namespaceName to set.
      Returns:
      This builder for chaining.
    • clearNamespaceName

      public Service.GkeService.Builder clearNamespaceName()
       The name of the parent namespace.
       
      string namespace_name = 4;
      Returns:
      This builder for chaining.
    • setNamespaceNameBytes

      public Service.GkeService.Builder setNamespaceNameBytes(com.google.protobuf.ByteString value)
       The name of the parent namespace.
       
      string namespace_name = 4;
      Parameters:
      value - The bytes for namespaceName to set.
      Returns:
      This builder for chaining.
    • getServiceName

      public String getServiceName()
       The name of this service.
       
      string service_name = 5;
      Specified by:
      getServiceName in interface Service.GkeServiceOrBuilder
      Returns:
      The serviceName.
    • getServiceNameBytes

      public com.google.protobuf.ByteString getServiceNameBytes()
       The name of this service.
       
      string service_name = 5;
      Specified by:
      getServiceNameBytes in interface Service.GkeServiceOrBuilder
      Returns:
      The bytes for serviceName.
    • setServiceName

      public Service.GkeService.Builder setServiceName(String value)
       The name of this service.
       
      string service_name = 5;
      Parameters:
      value - The serviceName to set.
      Returns:
      This builder for chaining.
    • clearServiceName

      public Service.GkeService.Builder clearServiceName()
       The name of this service.
       
      string service_name = 5;
      Returns:
      This builder for chaining.
    • setServiceNameBytes

      public Service.GkeService.Builder setServiceNameBytes(com.google.protobuf.ByteString value)
       The name of this service.
       
      string service_name = 5;
      Parameters:
      value - The bytes for serviceName to set.
      Returns:
      This builder for chaining.