public static final class CreateSinkRequest.Builder extends GeneratedMessageV3.Builder<CreateSinkRequest.Builder> implements CreateSinkRequestOrBuilder
The parameters to CreateSink
.
Protobuf type google.logging.v2.CreateSinkRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateSinkRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateSinkRequest build()
buildPartial()
public CreateSinkRequest buildPartial()
clear()
public CreateSinkRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateSinkRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateSinkRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParent()
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) = { ... }
clearSink()
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];
clearUniqueWriterIdentity()
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.
bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL];
clone()
public CreateSinkRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateSinkRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getParent()
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) = { ... }
Returns |
Type |
Description |
String |
The parent.
|
getParentBytes()
public 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) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for parent.
|
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];
Returns |
Type |
Description |
LogSink |
The sink.
|
getSinkBuilder()
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];
getSinkOrBuilder()
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];
getUniqueWriterIdentity()
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.
bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
The uniqueWriterIdentity.
|
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];
Returns |
Type |
Description |
boolean |
Whether the sink field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateSinkRequest other)
public CreateSinkRequest.Builder mergeFrom(CreateSinkRequest other)
public CreateSinkRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateSinkRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeSink(LogSink value)
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];
Parameter |
Name |
Description |
value |
LogSink
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateSinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateSinkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setParent(String value)
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) = { ... }
Parameter |
Name |
Description |
value |
String
The parent to set.
|
setParentBytes(ByteString value)
public CreateSinkRequest.Builder setParentBytes(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) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for parent to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateSinkRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSink(LogSink value)
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];
Parameter |
Name |
Description |
value |
LogSink
|
setSink(LogSink.Builder builderForValue)
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];
setUniqueWriterIdentity(boolean value)
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.
bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
boolean
The uniqueWriterIdentity to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateSinkRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides