Package com.google.monitoring.v3
Class Service.GkeNamespace.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Service.GkeNamespace.Builder>
com.google.monitoring.v3.Service.GkeNamespace.Builder
- All Implemented Interfaces:
Service.GkeNamespaceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Service.GkeNamespace
public static final class Service.GkeNamespace.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Service.GkeNamespace.Builder>
implements Service.GkeNamespaceOrBuilder
GKE Namespace. The field names correspond to the resource metadata labels on monitored resources that fall under a namespace (for example, `k8s_container` or `k8s_pod`).Protobuf type
google.monitoring.v3.Service.GkeNamespace-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The name of the parent cluster.The location of the parent cluster.The name of this namespace.Output only.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 this namespace.com.google.protobuf.ByteStringThe name of this namespace.Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Service.GkeNamespace 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 this namespace.setNamespaceNameBytes(com.google.protobuf.ByteString value) The name of this namespace.setProjectId(String value) Output only.setProjectIdBytes(com.google.protobuf.ByteString value) Output only.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.GkeNamespace.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.GkeNamespace.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.GkeNamespace.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.GkeNamespace.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Service.GkeNamespace.Builder>
-
mergeFrom
public Service.GkeNamespace.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.GkeNamespace.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.GkeNamespaceOrBuilder- 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.GkeNamespaceOrBuilder- 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.GkeNamespaceOrBuilder- 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.GkeNamespaceOrBuilder- 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.GkeNamespaceOrBuilder- Returns:
- The clusterName.
-
getClusterNameBytes
public com.google.protobuf.ByteString getClusterNameBytes()The name of the parent cluster.
string cluster_name = 3;- Specified by:
getClusterNameBytesin interfaceService.GkeNamespaceOrBuilder- 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 this namespace.
string namespace_name = 4;- Specified by:
getNamespaceNamein interfaceService.GkeNamespaceOrBuilder- Returns:
- The namespaceName.
-
getNamespaceNameBytes
public com.google.protobuf.ByteString getNamespaceNameBytes()The name of this namespace.
string namespace_name = 4;- Specified by:
getNamespaceNameBytesin interfaceService.GkeNamespaceOrBuilder- Returns:
- The bytes for namespaceName.
-
setNamespaceName
The name of this namespace.
string namespace_name = 4;- Parameters:
value- The namespaceName to set.- Returns:
- This builder for chaining.
-
clearNamespaceName
The name of this namespace.
string namespace_name = 4;- Returns:
- This builder for chaining.
-
setNamespaceNameBytes
The name of this namespace.
string namespace_name = 4;- Parameters:
value- The bytes for namespaceName to set.- Returns:
- This builder for chaining.
-