congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MonitoredResource$Builder.buildPartial
Code IndexAdd Tabnine to your IDE (free)

How to use
buildPartial
method
in
com.google.api.MonitoredResource$Builder

Best Java code snippets using com.google.api.MonitoredResource$Builder.buildPartial (Showing top 11 results out of 315)

origin: googleapis/google-cloud-java

if (subBuilder != null) {
 subBuilder.mergeFrom(resource_);
 resource_ = subBuilder.buildPartial();
origin: googleapis/google-cloud-java

if (subBuilder != null) {
 subBuilder.mergeFrom(resource_);
 resource_ = subBuilder.buildPartial();
origin: googleapis/google-cloud-java

if (subBuilder != null) {
 subBuilder.mergeFrom((com.google.api.MonitoredResource) resource_);
 resource_ = subBuilder.buildPartial();
origin: com.google.api.grpc/grpc-google-monitoring-v3

if (subBuilder != null) {
 subBuilder.mergeFrom(resource_);
 resource_ = subBuilder.buildPartial();
origin: com.google.api.grpc/grpc-google-monitoring-v3

/**
 * <pre>
 * The associated resource. A fully-specified monitored resource used to
 * identify the time series.
 * </pre>
 *
 * <code>optional .google.api.MonitoredResource resource = 2;</code>
 */
public Builder mergeResource(com.google.api.MonitoredResource value) {
 if (resourceBuilder_ == null) {
  if (resource_ != null) {
   resource_ =
    com.google.api.MonitoredResource.newBuilder(resource_).mergeFrom(value).buildPartial();
  } else {
   resource_ = value;
  }
  onChanged();
 } else {
  resourceBuilder_.mergeFrom(value);
 }
 return this;
}
/**
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

public com.google.api.MonitoredResource build() {
 com.google.api.MonitoredResource result = buildPartial();
 if (!result.isInitialized()) {
  throw newUninitializedMessageException(result);
 }
 return result;
}
origin: googleapis/google-cloud-java

if (subBuilder != null) {
 subBuilder.mergeFrom(resource_);
 resource_ = subBuilder.buildPartial();
origin: googleapis/google-cloud-java

   com.google.api.MonitoredResource.newBuilder(resource_)
     .mergeFrom(value)
     .buildPartial();
} else {
 resource_ = value;
origin: googleapis/google-cloud-java

       (com.google.api.MonitoredResource) resource_)
     .mergeFrom(value)
     .buildPartial();
} else {
 resource_ = value;
origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * Required. The primary monitored resource associated with this log entry.
 * Example: a log entry that reports a database error would be
 * associated with the monitored resource designating the particular
 * database that reported the error.
 * </pre>
 *
 * <code>.google.api.MonitoredResource resource = 8;</code>
 */
public Builder mergeResource(com.google.api.MonitoredResource value) {
 if (resourceBuilder_ == null) {
  if (resource_ != null) {
   resource_ =
     com.google.api.MonitoredResource.newBuilder(resource_)
       .mergeFrom(value)
       .buildPartial();
  } else {
   resource_ = value;
  }
  onChanged();
 } else {
  resourceBuilder_.mergeFrom(value);
 }
 return this;
}
/**
origin: googleapis/google-cloud-java

/**
 *
 *
 * <pre>
 * The associated monitored resource.  Custom metrics can use only certain
 * monitored resource types in their time series data.
 * </pre>
 *
 * <code>.google.api.MonitoredResource resource = 2;</code>
 */
public Builder mergeResource(com.google.api.MonitoredResource value) {
 if (resourceBuilder_ == null) {
  if (resource_ != null) {
   resource_ =
     com.google.api.MonitoredResource.newBuilder(resource_)
       .mergeFrom(value)
       .buildPartial();
  } else {
   resource_ = value;
  }
  onChanged();
 } else {
  resourceBuilder_.mergeFrom(value);
 }
 return this;
}
/**
com.google.apiMonitoredResource$BuilderbuildPartial

Popular methods of MonitoredResource$Builder

  • build
  • setType
    Required. The monitored resource type. This field must match the `type` field of a [MonitoredReso
  • mergeFrom
  • putLabels
    Required. Values for all of the labels listed in the associated monitored resource descriptor. Fo
  • putAllLabels
    Required. Values for all of the labels listed in the associated monitored resource descriptor. Fo
  • getLabelsMap
    Required. Values for all of the labels listed in the associated monitored resource descriptor. Fo
  • <init>
  • clone
  • getType
    Required. The monitored resource type. This field must match the `type` field of a [MonitoredReso
  • internalGetLabels
  • internalGetMutableLabels
  • maybeForceBuilderInitialization
  • internalGetMutableLabels,
  • maybeForceBuilderInitialization,
  • newUninitializedMessageException,
  • onBuilt,
  • onChanged

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now