public static final class CreateSinkRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder> implements CreateSinkRequestOrBuilder
The parameters to `CreateSink`.Protobuf type
google.logging.v2.CreateSinkRequest
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<CreateSinkRequest.Builder>
public CreateSinkRequest.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<CreateSinkRequest.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<CreateSinkRequest.Builder>
public CreateSinkRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public CreateSinkRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public CreateSinkRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public CreateSinkRequest.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<CreateSinkRequest.Builder>
public CreateSinkRequest.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<CreateSinkRequest.Builder>
public CreateSinkRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
public CreateSinkRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
public CreateSinkRequest.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<CreateSinkRequest.Builder>
public CreateSinkRequest.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<CreateSinkRequest.Builder>
public CreateSinkRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<CreateSinkRequest.Builder>
public CreateSinkRequest.Builder mergeFrom(CreateSinkRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
public CreateSinkRequest.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<CreateSinkRequest.Builder>
IOException
public String getParent()
Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples: `"projects/my-project"` `"organizations/123456789"`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParent
in interface CreateSinkRequestOrBuilder
public com.google.protobuf.ByteString getParentBytes()
Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples: `"projects/my-project"` `"organizations/123456789"`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParentBytes
in interface CreateSinkRequestOrBuilder
public CreateSinkRequest.Builder setParent(String value)
Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples: `"projects/my-project"` `"organizations/123456789"`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The parent to set.public CreateSinkRequest.Builder clearParent()
Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples: `"projects/my-project"` `"organizations/123456789"`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public CreateSinkRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples: `"projects/my-project"` `"organizations/123456789"`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The bytes for parent to set.public boolean hasSink()
Required. The new sink, whose `name` parameter is a sink identifier that is not already in use.
.google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
hasSink
in interface CreateSinkRequestOrBuilder
public LogSink getSink()
Required. The new sink, whose `name` parameter is a sink identifier that is not already in use.
.google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
getSink
in interface CreateSinkRequestOrBuilder
public CreateSinkRequest.Builder setSink(LogSink value)
Required. The new sink, whose `name` parameter is a sink identifier that is not already in use.
.google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateSinkRequest.Builder setSink(LogSink.Builder builderForValue)
Required. The new sink, whose `name` parameter is a sink identifier that is not already in use.
.google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateSinkRequest.Builder mergeSink(LogSink value)
Required. The new sink, whose `name` parameter is a sink identifier that is not already in use.
.google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateSinkRequest.Builder clearSink()
Required. The new sink, whose `name` parameter is a sink identifier that is not already in use.
.google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
public LogSink.Builder getSinkBuilder()
Required. The new sink, whose `name` parameter is a sink identifier that is not already in use.
.google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
public LogSinkOrBuilder getSinkOrBuilder()
Required. The new sink, whose `name` parameter is a sink identifier that is not already in use.
.google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
getSinkOrBuilder
in interface CreateSinkRequestOrBuilder
public boolean getUniqueWriterIdentity()
Optional. Determines the kind of IAM identity returned as `writer_identity` in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as `writer_identity` is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself. If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of `writer_identity` will be a unique service account used only for exports from the new sink. For more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink].
bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL];
getUniqueWriterIdentity
in interface CreateSinkRequestOrBuilder
public CreateSinkRequest.Builder setUniqueWriterIdentity(boolean value)
Optional. Determines the kind of IAM identity returned as `writer_identity` in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as `writer_identity` is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself. If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of `writer_identity` will be a unique service account used only for exports from the new sink. For more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink].
bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL];
value
- The uniqueWriterIdentity to set.public CreateSinkRequest.Builder clearUniqueWriterIdentity()
Optional. Determines the kind of IAM identity returned as `writer_identity` in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as `writer_identity` is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself. If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of `writer_identity` will be a unique service account used only for exports from the new sink. For more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink].
bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL];
public final CreateSinkRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
public final CreateSinkRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSinkRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.