public static final class OSPolicy.Resource.File.Gcs.Builder extends GeneratedMessageV3.Builder<OSPolicy.Resource.File.Gcs.Builder> implements OSPolicy.Resource.File.GcsOrBuilder
Specifies a file available as a Cloud Storage Object.
Protobuf type google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 OSPolicy.Resource.File.Gcs.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public OSPolicy.Resource.File.Gcs build()
buildPartial()
public OSPolicy.Resource.File.Gcs buildPartial()
clear()
public OSPolicy.Resource.File.Gcs.Builder clear()
Overrides
clearBucket()
public OSPolicy.Resource.File.Gcs.Builder clearBucket()
Required. Bucket of the Cloud Storage object.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public OSPolicy.Resource.File.Gcs.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearGeneration()
public OSPolicy.Resource.File.Gcs.Builder clearGeneration()
Generation number of the Cloud Storage object.
int64 generation = 3;
clearObject()
public OSPolicy.Resource.File.Gcs.Builder clearObject()
Required. Name of the Cloud Storage object.
string object = 2 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public OSPolicy.Resource.File.Gcs.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public OSPolicy.Resource.File.Gcs.Builder clone()
Overrides
getBucket()
public String getBucket()
Required. Bucket of the Cloud Storage object.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
String | The bucket.
|
getBucketBytes()
public ByteString getBucketBytes()
Required. Bucket of the Cloud Storage object.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
ByteString | The bytes for bucket.
|
getDefaultInstanceForType()
public OSPolicy.Resource.File.Gcs getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getGeneration()
public long getGeneration()
Generation number of the Cloud Storage object.
int64 generation = 3;
Returns |
---|
Type | Description |
long | The generation.
|
getObject()
public String getObject()
Required. Name of the Cloud Storage object.
string object = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
String | The object.
|
getObjectBytes()
public ByteString getObjectBytes()
Required. Name of the Cloud Storage object.
string object = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
ByteString | The bytes for object.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(OSPolicy.Resource.File.Gcs other)
public OSPolicy.Resource.File.Gcs.Builder mergeFrom(OSPolicy.Resource.File.Gcs other)
public OSPolicy.Resource.File.Gcs.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public OSPolicy.Resource.File.Gcs.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OSPolicy.Resource.File.Gcs.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setBucket(String value)
public OSPolicy.Resource.File.Gcs.Builder setBucket(String value)
Required. Bucket of the Cloud Storage object.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | String
The bucket to set.
|
setBucketBytes(ByteString value)
public OSPolicy.Resource.File.Gcs.Builder setBucketBytes(ByteString value)
Required. Bucket of the Cloud Storage object.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for bucket to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public OSPolicy.Resource.File.Gcs.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setGeneration(long value)
public OSPolicy.Resource.File.Gcs.Builder setGeneration(long value)
Generation number of the Cloud Storage object.
int64 generation = 3;
Parameter |
---|
Name | Description |
value | long
The generation to set.
|
setObject(String value)
public OSPolicy.Resource.File.Gcs.Builder setObject(String value)
Required. Name of the Cloud Storage object.
string object = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | String
The object to set.
|
setObjectBytes(ByteString value)
public OSPolicy.Resource.File.Gcs.Builder setObjectBytes(ByteString value)
Required. Name of the Cloud Storage object.
string object = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for object to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OSPolicy.Resource.File.Gcs.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final OSPolicy.Resource.File.Gcs.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides