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
Modifier and Type | Method and Description |
---|---|
UpdateSinkRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
UpdateSinkRequest |
build() |
UpdateSinkRequest |
buildPartial() |
UpdateSinkRequest.Builder |
clear() |
UpdateSinkRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
UpdateSinkRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
UpdateSinkRequest.Builder |
clearSink()
Required.
|
UpdateSinkRequest.Builder |
clearSinkName()
Required.
|
UpdateSinkRequest.Builder |
clearUniqueWriterIdentity()
Optional.
|
UpdateSinkRequest.Builder |
clearUpdateMask()
Optional.
|
UpdateSinkRequest.Builder |
clone() |
UpdateSinkRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
LogSink |
getSink()
Required.
|
LogSink.Builder |
getSinkBuilder()
Required.
|
String |
getSinkName()
Required.
|
com.google.protobuf.ByteString |
getSinkNameBytes()
Required.
|
LogSinkOrBuilder |
getSinkOrBuilder()
Required.
|
boolean |
getUniqueWriterIdentity()
Optional.
|
com.google.protobuf.FieldMask |
getUpdateMask()
Optional.
|
com.google.protobuf.FieldMask.Builder |
getUpdateMaskBuilder()
Optional.
|
com.google.protobuf.FieldMaskOrBuilder |
getUpdateMaskOrBuilder()
Optional.
|
boolean |
hasSink()
Required.
|
boolean |
hasUpdateMask()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
UpdateSinkRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
UpdateSinkRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
UpdateSinkRequest.Builder |
mergeFrom(UpdateSinkRequest other) |
UpdateSinkRequest.Builder |
mergeSink(LogSink value)
Required.
|
UpdateSinkRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
UpdateSinkRequest.Builder |
mergeUpdateMask(com.google.protobuf.FieldMask value)
Optional.
|
UpdateSinkRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
UpdateSinkRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
UpdateSinkRequest.Builder |
setSink(LogSink.Builder builderForValue)
Required.
|
UpdateSinkRequest.Builder |
setSink(LogSink value)
Required.
|
UpdateSinkRequest.Builder |
setSinkName(String value)
Required.
|
UpdateSinkRequest.Builder |
setSinkNameBytes(com.google.protobuf.ByteString value)
Required.
|
UpdateSinkRequest.Builder |
setUniqueWriterIdentity(boolean value)
Optional.
|
UpdateSinkRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
UpdateSinkRequest.Builder |
setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
Optional.
|
UpdateSinkRequest.Builder |
setUpdateMask(com.google.protobuf.FieldMask value)
Optional.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>
public UpdateSinkRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>
public UpdateSinkRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public UpdateSinkRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public UpdateSinkRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public UpdateSinkRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>
public UpdateSinkRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>
public UpdateSinkRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>
public UpdateSinkRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>
public UpdateSinkRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>
public UpdateSinkRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>
public UpdateSinkRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<UpdateSinkRequest.Builder>
public UpdateSinkRequest.Builder mergeFrom(UpdateSinkRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>
public UpdateSinkRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<UpdateSinkRequest.Builder>
IOException
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) = { ... }
getSinkName
in interface UpdateSinkRequestOrBuilder
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) = { ... }
getSinkNameBytes
in interface UpdateSinkRequestOrBuilder
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) = { ... }
value
- The sinkName to set.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) = { ... }
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) = { ... }
value
- The bytes for sinkName to set.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];
hasSink
in interface UpdateSinkRequestOrBuilder
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];
getSink
in interface UpdateSinkRequestOrBuilder
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];
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];
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];
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];
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];
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];
getSinkOrBuilder
in interface UpdateSinkRequestOrBuilder
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];
getUniqueWriterIdentity
in interface UpdateSinkRequestOrBuilder
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];
value
- The uniqueWriterIdentity to set.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];
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];
hasUpdateMask
in interface UpdateSinkRequestOrBuilder
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];
getUpdateMask
in interface UpdateSinkRequestOrBuilder
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];
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];
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];
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];
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];
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];
getUpdateMaskOrBuilder
in interface UpdateSinkRequestOrBuilder
public final UpdateSinkRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>
public final UpdateSinkRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.