Class Service.BasicService.Builder

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

public static final class Service.BasicService.Builder extends com.google.protobuf.GeneratedMessage.Builder<Service.BasicService.Builder> implements Service.BasicServiceOrBuilder
 A well-known service type, defined by its service type and service labels.
 Documentation and examples
 [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
 
Protobuf type google.monitoring.v3.Service.BasicService
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Service.BasicService.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Service.BasicService.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public String getServiceType()
       The type of service that this basic service defines, e.g.
       APP_ENGINE service type.
       Documentation and valid values
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      string service_type = 1;
      Specified by:
      getServiceType in interface Service.BasicServiceOrBuilder
      Returns:
      The serviceType.
    • getServiceTypeBytes

      public com.google.protobuf.ByteString getServiceTypeBytes()
       The type of service that this basic service defines, e.g.
       APP_ENGINE service type.
       Documentation and valid values
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      string service_type = 1;
      Specified by:
      getServiceTypeBytes in interface Service.BasicServiceOrBuilder
      Returns:
      The bytes for serviceType.
    • setServiceType

      public Service.BasicService.Builder setServiceType(String value)
       The type of service that this basic service defines, e.g.
       APP_ENGINE service type.
       Documentation and valid values
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      string service_type = 1;
      Parameters:
      value - The serviceType to set.
      Returns:
      This builder for chaining.
    • clearServiceType

      public Service.BasicService.Builder clearServiceType()
       The type of service that this basic service defines, e.g.
       APP_ENGINE service type.
       Documentation and valid values
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      string service_type = 1;
      Returns:
      This builder for chaining.
    • setServiceTypeBytes

      public Service.BasicService.Builder setServiceTypeBytes(com.google.protobuf.ByteString value)
       The type of service that this basic service defines, e.g.
       APP_ENGINE service type.
       Documentation and valid values
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      string service_type = 1;
      Parameters:
      value - The bytes for serviceType to set.
      Returns:
      This builder for chaining.
    • getServiceLabelsCount

      public int getServiceLabelsCount()
      Description copied from interface: Service.BasicServiceOrBuilder
       Labels that specify the resource that emits the monitoring data which
       is used for SLO reporting of this `Service`.
       Documentation and valid values for given service types
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      map<string, string> service_labels = 2;
      Specified by:
      getServiceLabelsCount in interface Service.BasicServiceOrBuilder
    • containsServiceLabels

      public boolean containsServiceLabels(String key)
       Labels that specify the resource that emits the monitoring data which
       is used for SLO reporting of this `Service`.
       Documentation and valid values for given service types
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      map<string, string> service_labels = 2;
      Specified by:
      containsServiceLabels in interface Service.BasicServiceOrBuilder
    • getServiceLabels

      @Deprecated public Map<String,String> getServiceLabels()
      Deprecated.
      Specified by:
      getServiceLabels in interface Service.BasicServiceOrBuilder
    • getServiceLabelsMap

      public Map<String,String> getServiceLabelsMap()
       Labels that specify the resource that emits the monitoring data which
       is used for SLO reporting of this `Service`.
       Documentation and valid values for given service types
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      map<string, string> service_labels = 2;
      Specified by:
      getServiceLabelsMap in interface Service.BasicServiceOrBuilder
    • getServiceLabelsOrDefault

      public String getServiceLabelsOrDefault(String key, String defaultValue)
       Labels that specify the resource that emits the monitoring data which
       is used for SLO reporting of this `Service`.
       Documentation and valid values for given service types
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      map<string, string> service_labels = 2;
      Specified by:
      getServiceLabelsOrDefault in interface Service.BasicServiceOrBuilder
    • getServiceLabelsOrThrow

      public String getServiceLabelsOrThrow(String key)
       Labels that specify the resource that emits the monitoring data which
       is used for SLO reporting of this `Service`.
       Documentation and valid values for given service types
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      map<string, string> service_labels = 2;
      Specified by:
      getServiceLabelsOrThrow in interface Service.BasicServiceOrBuilder
    • clearServiceLabels

      public Service.BasicService.Builder clearServiceLabels()
    • removeServiceLabels

      public Service.BasicService.Builder removeServiceLabels(String key)
       Labels that specify the resource that emits the monitoring data which
       is used for SLO reporting of this `Service`.
       Documentation and valid values for given service types
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      map<string, string> service_labels = 2;
    • getMutableServiceLabels

      @Deprecated public Map<String,String> getMutableServiceLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putServiceLabels

      public Service.BasicService.Builder putServiceLabels(String key, String value)
       Labels that specify the resource that emits the monitoring data which
       is used for SLO reporting of this `Service`.
       Documentation and valid values for given service types
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      map<string, string> service_labels = 2;
    • putAllServiceLabels

      public Service.BasicService.Builder putAllServiceLabels(Map<String,String> values)
       Labels that specify the resource that emits the monitoring data which
       is used for SLO reporting of this `Service`.
       Documentation and valid values for given service types
       [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
       
      map<string, string> service_labels = 2;