Tabnine Logo
CreateExclusionRequest.newBuilder
Code IndexAdd Tabnine to your IDE (free)

How to use
newBuilder
method
in
com.google.logging.v2.CreateExclusionRequest

Best Java code snippets using com.google.logging.v2.CreateExclusionRequest.newBuilder (Showing top 5 results out of 315)

origin: googleapis/google-cloud-java

@java.lang.Override
public Builder newBuilderForType() {
 return newBuilder();
}
origin: googleapis/google-cloud-java

/**
 * Creates a new exclusion in a specified parent resource. Only log entries belonging to that
 * resource can be excluded. You can have up to 10 exclusions in a resource.
 *
 * <p>Sample code:
 *
 * <pre><code>
 * try (ConfigClient configClient = ConfigClient.create()) {
 *   ParentName parent = ProjectName.of("[PROJECT]");
 *   LogExclusion exclusion = LogExclusion.newBuilder().build();
 *   LogExclusion response = configClient.createExclusion(parent, exclusion);
 * }
 * </code></pre>
 *
 * @param parent Required. The parent resource in which to create the exclusion:
 *     <p>"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
 *     "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
 *     <p>Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
 * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that
 *     is not already used in the parent resource.
 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
 */
public final LogExclusion createExclusion(ParentName parent, LogExclusion exclusion) {
 CreateExclusionRequest request =
   CreateExclusionRequest.newBuilder()
     .setParent(parent == null ? null : parent.toString())
     .setExclusion(exclusion)
     .build();
 return createExclusion(request);
}
origin: googleapis/google-cloud-java

/**
 * Creates a new exclusion in a specified parent resource. Only log entries belonging to that
 * resource can be excluded. You can have up to 10 exclusions in a resource.
 *
 * <p>Sample code:
 *
 * <pre><code>
 * try (ConfigClient configClient = ConfigClient.create()) {
 *   ParentName parent = ProjectName.of("[PROJECT]");
 *   LogExclusion exclusion = LogExclusion.newBuilder().build();
 *   LogExclusion response = configClient.createExclusion(parent.toString(), exclusion);
 * }
 * </code></pre>
 *
 * @param parent Required. The parent resource in which to create the exclusion:
 *     <p>"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
 *     "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
 *     <p>Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
 * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that
 *     is not already used in the parent resource.
 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
 */
public final LogExclusion createExclusion(String parent, LogExclusion exclusion) {
 CreateExclusionRequest request =
   CreateExclusionRequest.newBuilder().setParent(parent).setExclusion(exclusion).build();
 return createExclusion(request);
}
origin: com.google.cloud/google-cloud-logging

/**
 * Creates a new exclusion in a specified parent resource. Only log entries belonging to that
 * resource can be excluded. You can have up to 10 exclusions in a resource.
 *
 * <p>Sample code:
 *
 * <pre><code>
 * try (ConfigClient configClient = ConfigClient.create()) {
 *   ParentName parent = ProjectName.of("[PROJECT]");
 *   LogExclusion exclusion = LogExclusion.newBuilder().build();
 *   LogExclusion response = configClient.createExclusion(parent, exclusion);
 * }
 * </code></pre>
 *
 * @param parent Required. The parent resource in which to create the exclusion:
 *     <p>"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
 *     "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
 *     <p>Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
 * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that
 *     is not already used in the parent resource.
 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
 */
public final LogExclusion createExclusion(ParentName parent, LogExclusion exclusion) {
 CreateExclusionRequest request =
   CreateExclusionRequest.newBuilder()
     .setParent(parent == null ? null : parent.toString())
     .setExclusion(exclusion)
     .build();
 return createExclusion(request);
}
origin: com.google.cloud/google-cloud-logging

/**
 * Creates a new exclusion in a specified parent resource. Only log entries belonging to that
 * resource can be excluded. You can have up to 10 exclusions in a resource.
 *
 * <p>Sample code:
 *
 * <pre><code>
 * try (ConfigClient configClient = ConfigClient.create()) {
 *   ParentName parent = ProjectName.of("[PROJECT]");
 *   LogExclusion exclusion = LogExclusion.newBuilder().build();
 *   LogExclusion response = configClient.createExclusion(parent.toString(), exclusion);
 * }
 * </code></pre>
 *
 * @param parent Required. The parent resource in which to create the exclusion:
 *     <p>"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
 *     "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
 *     <p>Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
 * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that
 *     is not already used in the parent resource.
 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
 */
public final LogExclusion createExclusion(String parent, LogExclusion exclusion) {
 CreateExclusionRequest request =
   CreateExclusionRequest.newBuilder().setParent(parent).setExclusion(exclusion).build();
 return createExclusion(request);
}
com.google.logging.v2CreateExclusionRequestnewBuilder

Popular methods of CreateExclusionRequest

  • getDefaultInstance
  • getExclusion
    Required. The new exclusion, whose `name` parameter is an exclusion name that is not already used
  • getParent
    Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organiz
  • <init>
  • getDescriptor
  • getParentBytes
    Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organiz
  • hasExclusion
    Required. The new exclusion, whose `name` parameter is an exclusion name that is not already used
  • isInitialized
  • makeExtensionsImmutable
  • parseUnknownFieldProto3
  • toBuilder
  • toBuilder

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Sublime Text plugins
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