Package com.google.monitoring.v3
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The name of the parent cluster.The location of the parent cluster.The name of the parent namespace.Output only.The name of this workload.The type of this workload (for example, "Deployment" or "DaemonSet")The name of the parent cluster.com.google.protobuf.ByteStringThe name of the parent cluster.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe location of the parent cluster.com.google.protobuf.ByteStringThe location of the parent cluster.The name of the parent namespace.com.google.protobuf.ByteStringThe name of the parent namespace.Output only.com.google.protobuf.ByteStringOutput only.The name of this workload.com.google.protobuf.ByteStringThe name of this workload.The type of this workload (for example, "Deployment" or "DaemonSet")com.google.protobuf.ByteStringThe type of this workload (for example, "Deployment" or "DaemonSet")protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Service.GkeWorkload other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setClusterName(String value) The name of the parent cluster.setClusterNameBytes(com.google.protobuf.ByteString value) The name of the parent cluster.setLocation(String value) The location of the parent cluster.setLocationBytes(com.google.protobuf.ByteString value) The location of the parent cluster.setNamespaceName(String value) The name of the parent namespace.setNamespaceNameBytes(com.google.protobuf.ByteString value) The name of the parent namespace.setProjectId(String value) Output only.setProjectIdBytes(com.google.protobuf.ByteString value) Output only.setTopLevelControllerName(String value) The name of this workload.setTopLevelControllerNameBytes(com.google.protobuf.ByteString value) The name of this workload.setTopLevelControllerType(String value) The type of this workload (for example, "Deployment" or "DaemonSet")setTopLevelControllerTypeBytes(com.google.protobuf.ByteString value) The type of this workload (for example, "Deployment" or "DaemonSet")Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Service.GkeWorkload.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Service.GkeWorkload.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Service.GkeWorkload.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Service.GkeWorkload.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Service.GkeWorkload.Builder>- Throws:
IOException
-
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:
getProjectIdin interfaceService.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:
getProjectIdBytesin interfaceService.GkeWorkloadOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
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
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
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
The location of the parent cluster. This may be a zone or region.
string location = 2;- Specified by:
getLocationin interfaceService.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:
getLocationBytesin interfaceService.GkeWorkloadOrBuilder- Returns:
- The bytes for location.
-
setLocation
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
The location of the parent cluster. This may be a zone or region.
string location = 2;- Returns:
- This builder for chaining.
-
setLocationBytes
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
The name of the parent cluster.
string cluster_name = 3;- Specified by:
getClusterNamein interfaceService.GkeWorkloadOrBuilder- Returns:
- The clusterName.
-
getClusterNameBytes
public com.google.protobuf.ByteString getClusterNameBytes()The name of the parent cluster.
string cluster_name = 3;- Specified by:
getClusterNameBytesin interfaceService.GkeWorkloadOrBuilder- Returns:
- The bytes for clusterName.
-
setClusterName
The name of the parent cluster.
string cluster_name = 3;- Parameters:
value- The clusterName to set.- Returns:
- This builder for chaining.
-
clearClusterName
The name of the parent cluster.
string cluster_name = 3;- Returns:
- This builder for chaining.
-
setClusterNameBytes
The name of the parent cluster.
string cluster_name = 3;- Parameters:
value- The bytes for clusterName to set.- Returns:
- This builder for chaining.
-
getNamespaceName
The name of the parent namespace.
string namespace_name = 4;- Specified by:
getNamespaceNamein interfaceService.GkeWorkloadOrBuilder- Returns:
- The namespaceName.
-
getNamespaceNameBytes
public com.google.protobuf.ByteString getNamespaceNameBytes()The name of the parent namespace.
string namespace_name = 4;- Specified by:
getNamespaceNameBytesin interfaceService.GkeWorkloadOrBuilder- Returns:
- The bytes for namespaceName.
-
setNamespaceName
The name of the parent namespace.
string namespace_name = 4;- Parameters:
value- The namespaceName to set.- Returns:
- This builder for chaining.
-
clearNamespaceName
The name of the parent namespace.
string namespace_name = 4;- Returns:
- This builder for chaining.
-
setNamespaceNameBytes
The name of the parent namespace.
string namespace_name = 4;- Parameters:
value- The bytes for namespaceName to set.- Returns:
- This builder for chaining.
-
getTopLevelControllerType
The type of this workload (for example, "Deployment" or "DaemonSet")
string top_level_controller_type = 5;- Specified by:
getTopLevelControllerTypein interfaceService.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:
getTopLevelControllerTypeBytesin interfaceService.GkeWorkloadOrBuilder- Returns:
- The bytes for topLevelControllerType.
-
setTopLevelControllerType
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
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
The name of this workload.
string top_level_controller_name = 6;- Specified by:
getTopLevelControllerNamein interfaceService.GkeWorkloadOrBuilder- Returns:
- The topLevelControllerName.
-
getTopLevelControllerNameBytes
public com.google.protobuf.ByteString getTopLevelControllerNameBytes()The name of this workload.
string top_level_controller_name = 6;- Specified by:
getTopLevelControllerNameBytesin interfaceService.GkeWorkloadOrBuilder- Returns:
- The bytes for topLevelControllerName.
-
setTopLevelControllerName
The name of this workload.
string top_level_controller_name = 6;- Parameters:
value- The topLevelControllerName to set.- Returns:
- This builder for chaining.
-
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.
-