public static final class UpdateSinkRequest.Builder extends GeneratedMessageV3.Builder<UpdateSinkRequest.Builder> implements UpdateSinkRequestOrBuilder
The parameters to `UpdateSink`.Protobuf type
google.logging.v2.UpdateSinkRequestgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic UpdateSinkRequest build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic UpdateSinkRequest buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic UpdateSinkRequest.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest.Builder mergeFrom(UpdateSinkRequest other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<UpdateSinkRequest.Builder>java.io.IOExceptionpublic java.lang.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]"
Example: `"projects/my-project-id/sinks/my-sink-id"`.
string sink_name = 1;getSinkName in interface UpdateSinkRequestOrBuilderpublic 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]"
Example: `"projects/my-project-id/sinks/my-sink-id"`.
string sink_name = 1;getSinkNameBytes in interface UpdateSinkRequestOrBuilderpublic UpdateSinkRequest.Builder setSinkName(java.lang.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]"
Example: `"projects/my-project-id/sinks/my-sink-id"`.
string sink_name = 1;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]"
Example: `"projects/my-project-id/sinks/my-sink-id"`.
string sink_name = 1;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]"
Example: `"projects/my-project-id/sinks/my-sink-id"`.
string sink_name = 1;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;hasSink in interface UpdateSinkRequestOrBuilderpublic 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;getSink in interface UpdateSinkRequestOrBuilderpublic 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;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;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;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;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;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;getSinkOrBuilder in interface UpdateSinkRequestOrBuilderpublic boolean getUniqueWriterIdentity()
Optional. See
[sinks.create](/logging/docs/api/reference/rest/v2/projects.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;getUniqueWriterIdentity in interface UpdateSinkRequestOrBuilderpublic UpdateSinkRequest.Builder setUniqueWriterIdentity(boolean value)
Optional. See
[sinks.create](/logging/docs/api/reference/rest/v2/projects.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;public UpdateSinkRequest.Builder clearUniqueWriterIdentity()
Optional. See
[sinks.create](/logging/docs/api/reference/rest/v2/projects.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;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#fieldmask Example: `updateMask=filter`.
.google.protobuf.FieldMask update_mask = 4;hasUpdateMask in interface UpdateSinkRequestOrBuilderpublic 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#fieldmask Example: `updateMask=filter`.
.google.protobuf.FieldMask update_mask = 4;getUpdateMask in interface UpdateSinkRequestOrBuilderpublic 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#fieldmask Example: `updateMask=filter`.
.google.protobuf.FieldMask update_mask = 4;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#fieldmask Example: `updateMask=filter`.
.google.protobuf.FieldMask update_mask = 4;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#fieldmask Example: `updateMask=filter`.
.google.protobuf.FieldMask update_mask = 4;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#fieldmask Example: `updateMask=filter`.
.google.protobuf.FieldMask update_mask = 4;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#fieldmask Example: `updateMask=filter`.
.google.protobuf.FieldMask update_mask = 4;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#fieldmask Example: `updateMask=filter`.
.google.protobuf.FieldMask update_mask = 4;getUpdateMaskOrBuilder in interface UpdateSinkRequestOrBuilderpublic final UpdateSinkRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public final UpdateSinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>