Package com.google.monitoring.v3
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 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 service.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 service.com.google.protobuf.ByteStringThe name of this service.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Service.GkeService 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.setServiceName(String value) The name of this service.setServiceNameBytes(com.google.protobuf.ByteString value) The name of this service.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.GkeService.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.GkeService.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.GkeService.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.GkeService.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Service.GkeService.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.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:
getProjectIdBytesin interfaceService.GkeServiceOrBuilder- 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.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:
getLocationBytesin interfaceService.GkeServiceOrBuilder- 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.GkeServiceOrBuilder- Returns:
- The clusterName.
-
getClusterNameBytes
public com.google.protobuf.ByteString getClusterNameBytes()The name of the parent cluster.
string cluster_name = 3;- Specified by:
getClusterNameBytesin interfaceService.GkeServiceOrBuilder- 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.GkeServiceOrBuilder- Returns:
- The namespaceName.
-
getNamespaceNameBytes
public com.google.protobuf.ByteString getNamespaceNameBytes()The name of the parent namespace.
string namespace_name = 4;- Specified by:
getNamespaceNameBytesin interfaceService.GkeServiceOrBuilder- 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.
-
getServiceName
The name of this service.
string service_name = 5;- Specified by:
getServiceNamein interfaceService.GkeServiceOrBuilder- Returns:
- The serviceName.
-
getServiceNameBytes
public com.google.protobuf.ByteString getServiceNameBytes()The name of this service.
string service_name = 5;- Specified by:
getServiceNameBytesin interfaceService.GkeServiceOrBuilder- Returns:
- The bytes for serviceName.
-
setServiceName
The name of this service.
string service_name = 5;- Parameters:
value- The serviceName to set.- Returns:
- This builder for chaining.
-
clearServiceName
The name of this service.
string service_name = 5;- Returns:
- This builder for chaining.
-
setServiceNameBytes
The name of this service.
string service_name = 5;- Parameters:
value- The bytes for serviceName to set.- Returns:
- This builder for chaining.
-