Class Service.GkeWorkload.Builder

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

public static final class Service.GkeWorkload.Builder extends com.google.protobuf.GeneratedMessage.Builder<Service.GkeWorkload.Builder> implements Service.GkeWorkloadOrBuilder
 A GKE Workload (Deployment, StatefulSet, etc). The field names correspond
 to the metadata labels on monitored resources that fall under a workload
 (for example, `k8s_container` or `k8s_pod`).
 
Protobuf type google.monitoring.v3.Service.GkeWorkload
  • 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.GkeWorkload.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.GkeWorkload.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.GkeWorkload.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Service.GkeWorkload.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.GkeWorkload.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.GkeWorkloadOrBuilder
      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.GkeWorkloadOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public Service.GkeWorkload.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.GkeWorkload.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.GkeWorkload.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.GkeWorkloadOrBuilder
      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.GkeWorkloadOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public Service.GkeWorkload.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.GkeWorkload.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.GkeWorkload.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.GkeWorkloadOrBuilder
      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.GkeWorkloadOrBuilder
      Returns:
      The bytes for clusterName.
    • setClusterName

      public Service.GkeWorkload.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.GkeWorkload.Builder clearClusterName()
       The name of the parent cluster.
       
      string cluster_name = 3;
      Returns:
      This builder for chaining.
    • setClusterNameBytes

      public Service.GkeWorkload.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.GkeWorkloadOrBuilder
      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.GkeWorkloadOrBuilder
      Returns:
      The bytes for namespaceName.
    • setNamespaceName

      public Service.GkeWorkload.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.GkeWorkload.Builder clearNamespaceName()
       The name of the parent namespace.
       
      string namespace_name = 4;
      Returns:
      This builder for chaining.
    • setNamespaceNameBytes

      public Service.GkeWorkload.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.
    • getTopLevelControllerType

      public String getTopLevelControllerType()
       The type of this workload (for example, "Deployment" or "DaemonSet")
       
      string top_level_controller_type = 5;
      Specified by:
      getTopLevelControllerType in interface Service.GkeWorkloadOrBuilder
      Returns:
      The topLevelControllerType.
    • getTopLevelControllerTypeBytes

      public com.google.protobuf.ByteString getTopLevelControllerTypeBytes()
       The type of this workload (for example, "Deployment" or "DaemonSet")
       
      string top_level_controller_type = 5;
      Specified by:
      getTopLevelControllerTypeBytes in interface Service.GkeWorkloadOrBuilder
      Returns:
      The bytes for topLevelControllerType.
    • setTopLevelControllerType

      public Service.GkeWorkload.Builder setTopLevelControllerType(String value)
       The type of this workload (for example, "Deployment" or "DaemonSet")
       
      string top_level_controller_type = 5;
      Parameters:
      value - The topLevelControllerType to set.
      Returns:
      This builder for chaining.
    • clearTopLevelControllerType

      public Service.GkeWorkload.Builder clearTopLevelControllerType()
       The type of this workload (for example, "Deployment" or "DaemonSet")
       
      string top_level_controller_type = 5;
      Returns:
      This builder for chaining.
    • setTopLevelControllerTypeBytes

      public Service.GkeWorkload.Builder setTopLevelControllerTypeBytes(com.google.protobuf.ByteString value)
       The type of this workload (for example, "Deployment" or "DaemonSet")
       
      string top_level_controller_type = 5;
      Parameters:
      value - The bytes for topLevelControllerType to set.
      Returns:
      This builder for chaining.
    • getTopLevelControllerName

      public String getTopLevelControllerName()
       The name of this workload.
       
      string top_level_controller_name = 6;
      Specified by:
      getTopLevelControllerName in interface Service.GkeWorkloadOrBuilder
      Returns:
      The topLevelControllerName.
    • getTopLevelControllerNameBytes

      public com.google.protobuf.ByteString getTopLevelControllerNameBytes()
       The name of this workload.
       
      string top_level_controller_name = 6;
      Specified by:
      getTopLevelControllerNameBytes in interface Service.GkeWorkloadOrBuilder
      Returns:
      The bytes for topLevelControllerName.
    • setTopLevelControllerName

      public Service.GkeWorkload.Builder setTopLevelControllerName(String value)
       The name of this workload.
       
      string top_level_controller_name = 6;
      Parameters:
      value - The topLevelControllerName to set.
      Returns:
      This builder for chaining.
    • clearTopLevelControllerName

      public Service.GkeWorkload.Builder clearTopLevelControllerName()
       The name of this workload.
       
      string top_level_controller_name = 6;
      Returns:
      This builder for chaining.
    • setTopLevelControllerNameBytes

      public Service.GkeWorkload.Builder setTopLevelControllerNameBytes(com.google.protobuf.ByteString value)
       The name of this workload.
       
      string top_level_controller_name = 6;
      Parameters:
      value - The bytes for topLevelControllerName to set.
      Returns:
      This builder for chaining.