Class CreateSinkRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
com.google.logging.v2.CreateSinkRequest.Builder
All Implemented Interfaces:
CreateSinkRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateSinkRequest

public static final class CreateSinkRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder> implements CreateSinkRequestOrBuilder
 The parameters to `CreateSink`.
 
Protobuf type google.logging.v2.CreateSinkRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
    • clear

      public CreateSinkRequest.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.GeneratedMessageV3.Builder<CreateSinkRequest.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.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
    • getDefaultInstanceForType

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

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

      public CreateSinkRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public CreateSinkRequest.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
    • setField

      public CreateSinkRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
    • clearField

      public CreateSinkRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
    • clearOneof

      public CreateSinkRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
    • setRepeatedField

      public CreateSinkRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
    • addRepeatedField

      public CreateSinkRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
    • mergeFrom

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

      public CreateSinkRequest.Builder mergeFrom(CreateSinkRequest other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
    • mergeFrom

      public CreateSinkRequest.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<CreateSinkRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The resource in which to create the sink:
      
           "projects/[PROJECT_ID]"
           "organizations/[ORGANIZATION_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]"
           "folders/[FOLDER_ID]"
      
       For examples:
      
         `"projects/my-project"`
         `"organizations/123456789"`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateSinkRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The resource in which to create the sink:
      
           "projects/[PROJECT_ID]"
           "organizations/[ORGANIZATION_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]"
           "folders/[FOLDER_ID]"
      
       For examples:
      
         `"projects/my-project"`
         `"organizations/123456789"`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateSinkRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateSinkRequest.Builder setParent(String value)
       Required. The resource in which to create the sink:
      
           "projects/[PROJECT_ID]"
           "organizations/[ORGANIZATION_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]"
           "folders/[FOLDER_ID]"
      
       For examples:
      
         `"projects/my-project"`
         `"organizations/123456789"`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateSinkRequest.Builder clearParent()
       Required. The resource in which to create the sink:
      
           "projects/[PROJECT_ID]"
           "organizations/[ORGANIZATION_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]"
           "folders/[FOLDER_ID]"
      
       For examples:
      
         `"projects/my-project"`
         `"organizations/123456789"`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateSinkRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource in which to create the sink:
      
           "projects/[PROJECT_ID]"
           "organizations/[ORGANIZATION_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]"
           "folders/[FOLDER_ID]"
      
       For examples:
      
         `"projects/my-project"`
         `"organizations/123456789"`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasSink

      public boolean hasSink()
       Required. The new sink, whose `name` parameter is a sink identifier that
       is not already in use.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSink in interface CreateSinkRequestOrBuilder
      Returns:
      Whether the sink field is set.
    • getSink

      public LogSink getSink()
       Required. The new sink, whose `name` parameter is a sink identifier that
       is not already in use.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSink in interface CreateSinkRequestOrBuilder
      Returns:
      The sink.
    • setSink

      public CreateSinkRequest.Builder setSink(LogSink value)
       Required. The new sink, whose `name` parameter is a sink identifier that
       is not already in use.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
    • setSink

      public CreateSinkRequest.Builder setSink(LogSink.Builder builderForValue)
       Required. The new sink, whose `name` parameter is a sink identifier that
       is not already in use.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeSink

      public CreateSinkRequest.Builder mergeSink(LogSink value)
       Required. The new sink, whose `name` parameter is a sink identifier that
       is not already in use.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearSink

      public CreateSinkRequest.Builder clearSink()
       Required. The new sink, whose `name` parameter is a sink identifier that
       is not already in use.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSinkBuilder

      public LogSink.Builder getSinkBuilder()
       Required. The new sink, whose `name` parameter is a sink identifier that
       is not already in use.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSinkOrBuilder

      public LogSinkOrBuilder getSinkOrBuilder()
       Required. The new sink, whose `name` parameter is a sink identifier that
       is not already in use.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSinkOrBuilder in interface CreateSinkRequestOrBuilder
    • getUniqueWriterIdentity

      public boolean getUniqueWriterIdentity()
       Optional. Determines the kind of IAM identity returned as `writer_identity`
       in the new sink. If this value is omitted or set to false, and if the
       sink's parent is a project, then the value returned as `writer_identity` is
       the same group or service account used by Cloud Logging before the addition
       of writer identities to this API. The sink's destination must be in the
       same project as the sink itself.
      
       If this field is set to true, or if the sink is owned by a non-project
       resource such as an organization, then the value of `writer_identity` will
       be a unique service account used only for exports from the new sink. For
       more information, see `writer_identity` in
       [LogSink][google.logging.v2.LogSink].
       
      bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUniqueWriterIdentity in interface CreateSinkRequestOrBuilder
      Returns:
      The uniqueWriterIdentity.
    • setUniqueWriterIdentity

      public CreateSinkRequest.Builder setUniqueWriterIdentity(boolean value)
       Optional. Determines the kind of IAM identity returned as `writer_identity`
       in the new sink. If this value is omitted or set to false, and if the
       sink's parent is a project, then the value returned as `writer_identity` is
       the same group or service account used by Cloud Logging before the addition
       of writer identities to this API. The sink's destination must be in the
       same project as the sink itself.
      
       If this field is set to true, or if the sink is owned by a non-project
       resource such as an organization, then the value of `writer_identity` will
       be a unique service account used only for exports from the new sink. For
       more information, see `writer_identity` in
       [LogSink][google.logging.v2.LogSink].
       
      bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The uniqueWriterIdentity to set.
      Returns:
      This builder for chaining.
    • clearUniqueWriterIdentity

      public CreateSinkRequest.Builder clearUniqueWriterIdentity()
       Optional. Determines the kind of IAM identity returned as `writer_identity`
       in the new sink. If this value is omitted or set to false, and if the
       sink's parent is a project, then the value returned as `writer_identity` is
       the same group or service account used by Cloud Logging before the addition
       of writer identities to this API. The sink's destination must be in the
       same project as the sink itself.
      
       If this field is set to true, or if the sink is owned by a non-project
       resource such as an organization, then the value of `writer_identity` will
       be a unique service account used only for exports from the new sink. For
       more information, see `writer_identity` in
       [LogSink][google.logging.v2.LogSink].
       
      bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final CreateSinkRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
    • mergeUnknownFields

      public final CreateSinkRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>