public static final class CreateBucketRequest.Builder extends GeneratedMessageV3.Builder<CreateBucketRequest.Builder> implements CreateBucketRequestOrBuilder
The parameters to CreateBucket
.
Protobuf type google.logging.v2.CreateBucketRequest
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateBucketRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateBucketRequest build()
Returns
buildPartial()
public CreateBucketRequest buildPartial()
Returns
clear()
public CreateBucketRequest.Builder clear()
Returns
Overrides
clearBucket()
public CreateBucketRequest.Builder clearBucket()
Required. The new bucket. The region specified in the new bucket must be compliant
with any Location Restriction Org Policy. The name field in the bucket is
ignored.
.google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
clearBucketId()
public CreateBucketRequest.Builder clearBucketId()
Required. A client-assigned identifier such as "my-bucket"
. Identifiers are
limited to 100 characters and can include only letters, digits,
underscores, hyphens, and periods.
string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public CreateBucketRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateBucketRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public CreateBucketRequest.Builder clearParent()
Required. The resource in which to create the bucket:
"projects/[PROJECT_ID]/locations/[LOCATION_ID]"
Example: "projects/my-logging-project/locations/global"
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clone()
public CreateBucketRequest.Builder clone()
Returns
Overrides
getBucket()
public LogBucket getBucket()
Required. The new bucket. The region specified in the new bucket must be compliant
with any Location Restriction Org Policy. The name field in the bucket is
ignored.
.google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getBucketBuilder()
public LogBucket.Builder getBucketBuilder()
Required. The new bucket. The region specified in the new bucket must be compliant
with any Location Restriction Org Policy. The name field in the bucket is
ignored.
.google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getBucketId()
public String getBucketId()
Required. A client-assigned identifier such as "my-bucket"
. Identifiers are
limited to 100 characters and can include only letters, digits,
underscores, hyphens, and periods.
string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The bucketId.
|
getBucketIdBytes()
public ByteString getBucketIdBytes()
Required. A client-assigned identifier such as "my-bucket"
. Identifiers are
limited to 100 characters and can include only letters, digits,
underscores, hyphens, and periods.
string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getBucketOrBuilder()
public LogBucketOrBuilder getBucketOrBuilder()
Required. The new bucket. The region specified in the new bucket must be compliant
with any Location Restriction Org Policy. The name field in the bucket is
ignored.
.google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getDefaultInstanceForType()
public CreateBucketRequest getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getParent()
public String getParent()
Required. The resource in which to create the bucket:
"projects/[PROJECT_ID]/locations/[LOCATION_ID]"
Example: "projects/my-logging-project/locations/global"
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 bucket:
"projects/[PROJECT_ID]/locations/[LOCATION_ID]"
Example: "projects/my-logging-project/locations/global"
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
hasBucket()
public boolean hasBucket()
Required. The new bucket. The region specified in the new bucket must be compliant
with any Location Restriction Org Policy. The name field in the bucket is
ignored.
.google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the bucket field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeBucket(LogBucket value)
public CreateBucketRequest.Builder mergeBucket(LogBucket value)
Required. The new bucket. The region specified in the new bucket must be compliant
with any Location Restriction Org Policy. The name field in the bucket is
ignored.
.google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeFrom(CreateBucketRequest other)
public CreateBucketRequest.Builder mergeFrom(CreateBucketRequest other)
Parameter
Returns
public CreateBucketRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateBucketRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateBucketRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setBucket(LogBucket value)
public CreateBucketRequest.Builder setBucket(LogBucket value)
Required. The new bucket. The region specified in the new bucket must be compliant
with any Location Restriction Org Policy. The name field in the bucket is
ignored.
.google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setBucket(LogBucket.Builder builderForValue)
public CreateBucketRequest.Builder setBucket(LogBucket.Builder builderForValue)
Required. The new bucket. The region specified in the new bucket must be compliant
with any Location Restriction Org Policy. The name field in the bucket is
ignored.
.google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setBucketId(String value)
public CreateBucketRequest.Builder setBucketId(String value)
Required. A client-assigned identifier such as "my-bucket"
. Identifiers are
limited to 100 characters and can include only letters, digits,
underscores, hyphens, and periods.
string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | String
The bucketId to set.
|
Returns
setBucketIdBytes(ByteString value)
public CreateBucketRequest.Builder setBucketIdBytes(ByteString value)
Required. A client-assigned identifier such as "my-bucket"
. Identifiers are
limited to 100 characters and can include only letters, digits,
underscores, hyphens, and periods.
string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | ByteString
The bytes for bucketId to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateBucketRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setParent(String value)
public CreateBucketRequest.Builder setParent(String value)
Required. The resource in which to create the bucket:
"projects/[PROJECT_ID]/locations/[LOCATION_ID]"
Example: "projects/my-logging-project/locations/global"
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public CreateBucketRequest.Builder setParentBytes(ByteString value)
Required. The resource in which to create the bucket:
"projects/[PROJECT_ID]/locations/[LOCATION_ID]"
Example: "projects/my-logging-project/locations/global"
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateBucketRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateBucketRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides