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,
java.lang.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 |
clone() |
UpdateSinkRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
LogSink |
getSink()
Required.
|
LogSink.Builder |
getSinkBuilder()
Required.
|
java.lang.String |
getSinkName()
Required.
|
SinkNameOneof |
getSinkNameAsSinkNameOneof() |
com.google.protobuf.ByteString |
getSinkNameBytes()
Required.
|
LogSinkOrBuilder |
getSinkOrBuilder()
Required.
|
boolean |
getUniqueWriterIdentity()
Optional.
|
boolean |
hasSink()
Required.
|
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 |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
UpdateSinkRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
UpdateSinkRequest.Builder |
setSink(LogSink.Builder builderForValue)
Required.
|
UpdateSinkRequest.Builder |
setSink(LogSink value)
Required.
|
UpdateSinkRequest.Builder |
setSinkName(java.lang.String value)
Required.
|
UpdateSinkRequest.Builder |
setSinkNameBytes(com.google.protobuf.ByteString value)
Required.
|
UpdateSinkRequest.Builder |
setSinkNameWithSinkNameOneof(SinkNameOneof value) |
UpdateSinkRequest.Builder |
setUniqueWriterIdentity(boolean value)
Optional.
|
UpdateSinkRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic UpdateSinkRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic UpdateSinkRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic UpdateSinkRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField 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.BuilderclearField 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.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField 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.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public UpdateSinkRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.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 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]"
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(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]"
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`. If `sink_name` does not exist, then this method creates a new sink.
.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`. If `sink_name` does not exist, then this method creates a new sink.
.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`. If `sink_name` does not exist, then this method creates a new sink.
.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`. If `sink_name` does not exist, then this method creates a new sink.
.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`. If `sink_name` does not exist, then this method creates a new sink.
.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`. If `sink_name` does not exist, then this method creates a new sink.
.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`. If `sink_name` does not exist, then this method creates a new sink.
.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`. If `sink_name` does not exist, then this method creates a new sink.
.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 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 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 false.
bool unique_writer_identity = 3;public final UpdateSinkRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields 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.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSinkRequest.Builder>public final UpdateSinkRequest.Builder setSinkNameWithSinkNameOneof(SinkNameOneof value)
public final SinkNameOneof getSinkNameAsSinkNameOneof()