Class UpdateSinkRequest.Builder

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

public static final class UpdateSinkRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder> implements UpdateSinkRequestOrBuilder
 The parameters to `UpdateSink`.
 
Protobuf type google.logging.v2.UpdateSinkRequest
  • 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<UpdateSinkRequest.Builder>
    • clear

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

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

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

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

      public UpdateSinkRequest.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<UpdateSinkRequest.Builder>
    • setField

      public UpdateSinkRequest.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<UpdateSinkRequest.Builder>
    • clearField

      public UpdateSinkRequest.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<UpdateSinkRequest.Builder>
    • clearOneof

      public UpdateSinkRequest.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<UpdateSinkRequest.Builder>
    • setRepeatedField

      public UpdateSinkRequest.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<UpdateSinkRequest.Builder>
    • addRepeatedField

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

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

      public UpdateSinkRequest.Builder mergeFrom(UpdateSinkRequest other)
    • isInitialized

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

      public UpdateSinkRequest.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<UpdateSinkRequest.Builder>
      Throws:
      IOException
    • getSinkName

      public String getSinkName()
       Required. The full resource name of the sink to update, including the
       parent resource and the sink identifier:
      
           "projects/[PROJECT_ID]/sinks/[SINK_ID]"
           "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
           "folders/[FOLDER_ID]/sinks/[SINK_ID]"
      
       For example:
      
         `"projects/my-project/sinks/my-sink"`
       
      string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getSinkName in interface UpdateSinkRequestOrBuilder
      Returns:
      The sinkName.
    • getSinkNameBytes

      public com.google.protobuf.ByteString getSinkNameBytes()
       Required. The full resource name of the sink to update, including the
       parent resource and the sink identifier:
      
           "projects/[PROJECT_ID]/sinks/[SINK_ID]"
           "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
           "folders/[FOLDER_ID]/sinks/[SINK_ID]"
      
       For example:
      
         `"projects/my-project/sinks/my-sink"`
       
      string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getSinkNameBytes in interface UpdateSinkRequestOrBuilder
      Returns:
      The bytes for sinkName.
    • setSinkName

      public UpdateSinkRequest.Builder setSinkName(String value)
       Required. The full resource name of the sink to update, including the
       parent resource and the sink identifier:
      
           "projects/[PROJECT_ID]/sinks/[SINK_ID]"
           "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
           "folders/[FOLDER_ID]/sinks/[SINK_ID]"
      
       For example:
      
         `"projects/my-project/sinks/my-sink"`
       
      string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The sinkName to set.
      Returns:
      This builder for chaining.
    • clearSinkName

      public UpdateSinkRequest.Builder clearSinkName()
       Required. The full resource name of the sink to update, including the
       parent resource and the sink identifier:
      
           "projects/[PROJECT_ID]/sinks/[SINK_ID]"
           "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
           "folders/[FOLDER_ID]/sinks/[SINK_ID]"
      
       For example:
      
         `"projects/my-project/sinks/my-sink"`
       
      string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSinkNameBytes

      public UpdateSinkRequest.Builder setSinkNameBytes(com.google.protobuf.ByteString value)
       Required. The full resource name of the sink to update, including the
       parent resource and the sink identifier:
      
           "projects/[PROJECT_ID]/sinks/[SINK_ID]"
           "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
           "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
           "folders/[FOLDER_ID]/sinks/[SINK_ID]"
      
       For example:
      
         `"projects/my-project/sinks/my-sink"`
       
      string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for sinkName to set.
      Returns:
      This builder for chaining.
    • hasSink

      public boolean hasSink()
       Required. The updated sink, whose name is the same identifier that appears
       as part of `sink_name`.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSink in interface UpdateSinkRequestOrBuilder
      Returns:
      Whether the sink field is set.
    • getSink

      public LogSink getSink()
       Required. The updated sink, whose name is the same identifier that appears
       as part of `sink_name`.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSink in interface UpdateSinkRequestOrBuilder
      Returns:
      The sink.
    • setSink

      public UpdateSinkRequest.Builder setSink(LogSink value)
       Required. The updated sink, whose name is the same identifier that appears
       as part of `sink_name`.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
    • setSink

      public UpdateSinkRequest.Builder setSink(LogSink.Builder builderForValue)
       Required. The updated sink, whose name is the same identifier that appears
       as part of `sink_name`.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeSink

      public UpdateSinkRequest.Builder mergeSink(LogSink value)
       Required. The updated sink, whose name is the same identifier that appears
       as part of `sink_name`.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearSink

      public UpdateSinkRequest.Builder clearSink()
       Required. The updated sink, whose name is the same identifier that appears
       as part of `sink_name`.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSinkBuilder

      public LogSink.Builder getSinkBuilder()
       Required. The updated sink, whose name is the same identifier that appears
       as part of `sink_name`.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSinkOrBuilder

      public LogSinkOrBuilder getSinkOrBuilder()
       Required. The updated sink, whose name is the same identifier that appears
       as part of `sink_name`.
       
      .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSinkOrBuilder in interface UpdateSinkRequestOrBuilder
    • getUniqueWriterIdentity

      public boolean getUniqueWriterIdentity()
       Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
       for a description of this field. When updating a sink, the effect of this
       field on the value of `writer_identity` in the updated sink depends on both
       the old and new values of this field:
      
       +   If the old and new values of this field are both false or both true,
           then there is no change to the sink's `writer_identity`.
       +   If the old value is false and the new value is true, then
           `writer_identity` is changed to a unique service account.
       +   It is an error if the old value is true and the new value is
           set to false or defaulted to false.
       
      bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUniqueWriterIdentity in interface UpdateSinkRequestOrBuilder
      Returns:
      The uniqueWriterIdentity.
    • setUniqueWriterIdentity

      public UpdateSinkRequest.Builder setUniqueWriterIdentity(boolean value)
       Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
       for a description of this field. When updating a sink, the effect of this
       field on the value of `writer_identity` in the updated sink depends on both
       the old and new values of this field:
      
       +   If the old and new values of this field are both false or both true,
           then there is no change to the sink's `writer_identity`.
       +   If the old value is false and the new value is true, then
           `writer_identity` is changed to a unique service account.
       +   It is an error if the old value is true and the new value is
           set to false or defaulted to false.
       
      bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The uniqueWriterIdentity to set.
      Returns:
      This builder for chaining.
    • clearUniqueWriterIdentity

      public UpdateSinkRequest.Builder clearUniqueWriterIdentity()
       Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
       for a description of this field. When updating a sink, the effect of this
       field on the value of `writer_identity` in the updated sink depends on both
       the old and new values of this field:
      
       +   If the old and new values of this field are both false or both true,
           then there is no change to the sink's `writer_identity`.
       +   If the old value is false and the new value is true, then
           `writer_identity` is changed to a unique service account.
       +   It is an error if the old value is true and the new value is
           set to false or defaulted to false.
       
      bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasUpdateMask

      public boolean hasUpdateMask()
       Optional. Field mask that specifies the fields in `sink` that need
       an update. A sink field will be overwritten if, and only if, it is
       in the update mask. `name` and output only fields cannot be updated.
      
       An empty `updateMask` is temporarily treated as using the following mask
       for backwards compatibility purposes:
      
         `destination,filter,includeChildren`
      
       At some point in the future, behavior will be removed and specifying an
       empty `updateMask` will be an error.
      
       For a detailed `FieldMask` definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=filter`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasUpdateMask in interface UpdateSinkRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Optional. Field mask that specifies the fields in `sink` that need
       an update. A sink field will be overwritten if, and only if, it is
       in the update mask. `name` and output only fields cannot be updated.
      
       An empty `updateMask` is temporarily treated as using the following mask
       for backwards compatibility purposes:
      
         `destination,filter,includeChildren`
      
       At some point in the future, behavior will be removed and specifying an
       empty `updateMask` will be an error.
      
       For a detailed `FieldMask` definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=filter`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMask in interface UpdateSinkRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateSinkRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Optional. Field mask that specifies the fields in `sink` that need
       an update. A sink field will be overwritten if, and only if, it is
       in the update mask. `name` and output only fields cannot be updated.
      
       An empty `updateMask` is temporarily treated as using the following mask
       for backwards compatibility purposes:
      
         `destination,filter,includeChildren`
      
       At some point in the future, behavior will be removed and specifying an
       empty `updateMask` will be an error.
      
       For a detailed `FieldMask` definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=filter`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setUpdateMask

      public UpdateSinkRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Optional. Field mask that specifies the fields in `sink` that need
       an update. A sink field will be overwritten if, and only if, it is
       in the update mask. `name` and output only fields cannot be updated.
      
       An empty `updateMask` is temporarily treated as using the following mask
       for backwards compatibility purposes:
      
         `destination,filter,includeChildren`
      
       At some point in the future, behavior will be removed and specifying an
       empty `updateMask` will be an error.
      
       For a detailed `FieldMask` definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=filter`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeUpdateMask

      public UpdateSinkRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Optional. Field mask that specifies the fields in `sink` that need
       an update. A sink field will be overwritten if, and only if, it is
       in the update mask. `name` and output only fields cannot be updated.
      
       An empty `updateMask` is temporarily treated as using the following mask
       for backwards compatibility purposes:
      
         `destination,filter,includeChildren`
      
       At some point in the future, behavior will be removed and specifying an
       empty `updateMask` will be an error.
      
       For a detailed `FieldMask` definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=filter`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearUpdateMask

      public UpdateSinkRequest.Builder clearUpdateMask()
       Optional. Field mask that specifies the fields in `sink` that need
       an update. A sink field will be overwritten if, and only if, it is
       in the update mask. `name` and output only fields cannot be updated.
      
       An empty `updateMask` is temporarily treated as using the following mask
       for backwards compatibility purposes:
      
         `destination,filter,includeChildren`
      
       At some point in the future, behavior will be removed and specifying an
       empty `updateMask` will be an error.
      
       For a detailed `FieldMask` definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=filter`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Optional. Field mask that specifies the fields in `sink` that need
       an update. A sink field will be overwritten if, and only if, it is
       in the update mask. `name` and output only fields cannot be updated.
      
       An empty `updateMask` is temporarily treated as using the following mask
       for backwards compatibility purposes:
      
         `destination,filter,includeChildren`
      
       At some point in the future, behavior will be removed and specifying an
       empty `updateMask` will be an error.
      
       For a detailed `FieldMask` definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=filter`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Optional. Field mask that specifies the fields in `sink` that need
       an update. A sink field will be overwritten if, and only if, it is
       in the update mask. `name` and output only fields cannot be updated.
      
       An empty `updateMask` is temporarily treated as using the following mask
       for backwards compatibility purposes:
      
         `destination,filter,includeChildren`
      
       At some point in the future, behavior will be removed and specifying an
       empty `updateMask` will be an error.
      
       For a detailed `FieldMask` definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
      
       For example: `updateMask=filter`
       
      .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateSinkRequestOrBuilder
    • setUnknownFields

      public final UpdateSinkRequest.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<UpdateSinkRequest.Builder>
    • mergeUnknownFields

      public final UpdateSinkRequest.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<UpdateSinkRequest.Builder>