Class UpdateSinkRequest.Builder (3.8.0)

public static final class UpdateSinkRequest.Builder extends GeneratedMessageV3.Builder<UpdateSinkRequest.Builder> implements UpdateSinkRequestOrBuilder

The parameters to UpdateSink.

Protobuf type google.logging.v2.UpdateSinkRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateSinkRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateSinkRequest.Builder
Overrides

build()

public UpdateSinkRequest build()
Returns
TypeDescription
UpdateSinkRequest

buildPartial()

public UpdateSinkRequest buildPartial()
Returns
TypeDescription
UpdateSinkRequest

clear()

public UpdateSinkRequest.Builder clear()
Returns
TypeDescription
UpdateSinkRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateSinkRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateSinkRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateSinkRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateSinkRequest.Builder
Overrides

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];

Returns
TypeDescription
UpdateSinkRequest.Builder

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
TypeDescription
UpdateSinkRequest.Builder

This builder for chaining.

clearUniqueWriterIdentity()

public UpdateSinkRequest.Builder clearUniqueWriterIdentity()

Optional. See sinks.create 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
TypeDescription
UpdateSinkRequest.Builder

This builder for chaining.

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];

Returns
TypeDescription
UpdateSinkRequest.Builder

clone()

public UpdateSinkRequest.Builder clone()
Returns
TypeDescription
UpdateSinkRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateSinkRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateSinkRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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];

Returns
TypeDescription
LogSink

The sink.

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];

Returns
TypeDescription
LogSink.Builder

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) = { ... }

Returns
TypeDescription
String

The sinkName.

getSinkNameBytes()

public 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for sinkName.

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];

Returns
TypeDescription
LogSinkOrBuilder

getUniqueWriterIdentity()

public boolean getUniqueWriterIdentity()

Optional. See sinks.create 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
TypeDescription
boolean

The uniqueWriterIdentity.

getUpdateMask()

public 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];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public 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];

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public 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];

Returns
TypeDescription
FieldMaskOrBuilder

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];

Returns
TypeDescription
boolean

Whether the sink field is set.

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];

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateSinkRequest other)

public UpdateSinkRequest.Builder mergeFrom(UpdateSinkRequest other)
Parameter
NameDescription
otherUpdateSinkRequest
Returns
TypeDescription
UpdateSinkRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateSinkRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateSinkRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateSinkRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateSinkRequest.Builder
Overrides

mergeSink(LogSink value)

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];

Parameter
NameDescription
valueLogSink
Returns
TypeDescription
UpdateSinkRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateSinkRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateSinkRequest.Builder mergeUpdateMask(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];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateSinkRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateSinkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateSinkRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpdateSinkRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateSinkRequest.Builder
Overrides

setSink(LogSink value)

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];

Parameter
NameDescription
valueLogSink
Returns
TypeDescription
UpdateSinkRequest.Builder

setSink(LogSink.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueLogSink.Builder
Returns
TypeDescription
UpdateSinkRequest.Builder

setSinkName(String value)

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) = { ... }

Parameter
NameDescription
valueString

The sinkName to set.

Returns
TypeDescription
UpdateSinkRequest.Builder

This builder for chaining.

setSinkNameBytes(ByteString value)

public UpdateSinkRequest.Builder setSinkNameBytes(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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for sinkName to set.

Returns
TypeDescription
UpdateSinkRequest.Builder

This builder for chaining.

setUniqueWriterIdentity(boolean value)

public UpdateSinkRequest.Builder setUniqueWriterIdentity(boolean value)

Optional. See sinks.create 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];

Parameter
NameDescription
valueboolean

The uniqueWriterIdentity to set.

Returns
TypeDescription
UpdateSinkRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSinkRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateSinkRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateSinkRequest.Builder setUpdateMask(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];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateSinkRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSinkRequest.Builder setUpdateMask(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];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateSinkRequest.Builder