public static final class OSPolicy.Resource.FileResource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.Resource.FileResource.Builder> implements OSPolicy.Resource.FileResourceOrBuilder
A resource that manages the state of a file.Protobuf type
google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource| Modifier and Type | Method and Description |
|---|---|
OSPolicy.Resource.FileResource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
OSPolicy.Resource.FileResource |
build() |
OSPolicy.Resource.FileResource |
buildPartial() |
OSPolicy.Resource.FileResource.Builder |
clear() |
OSPolicy.Resource.FileResource.Builder |
clearContent()
A a file with this content.
|
OSPolicy.Resource.FileResource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
OSPolicy.Resource.FileResource.Builder |
clearFile()
A remote or local source.
|
OSPolicy.Resource.FileResource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
OSPolicy.Resource.FileResource.Builder |
clearPath()
Required.
|
OSPolicy.Resource.FileResource.Builder |
clearPermissions()
Consists of three octal digits which represent, in
order, the permissions of the owner, group, and other users for the
file (similarly to the numeric mode used in the linux chmod
utility).
|
OSPolicy.Resource.FileResource.Builder |
clearSource() |
OSPolicy.Resource.FileResource.Builder |
clearState()
Required.
|
OSPolicy.Resource.FileResource.Builder |
clone() |
String |
getContent()
A a file with this content.
|
com.google.protobuf.ByteString |
getContentBytes()
A a file with this content.
|
OSPolicy.Resource.FileResource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
OSPolicy.Resource.File |
getFile()
A remote or local source.
|
OSPolicy.Resource.File.Builder |
getFileBuilder()
A remote or local source.
|
OSPolicy.Resource.FileOrBuilder |
getFileOrBuilder()
A remote or local source.
|
String |
getPath()
Required.
|
com.google.protobuf.ByteString |
getPathBytes()
Required.
|
String |
getPermissions()
Consists of three octal digits which represent, in
order, the permissions of the owner, group, and other users for the
file (similarly to the numeric mode used in the linux chmod
utility).
|
com.google.protobuf.ByteString |
getPermissionsBytes()
Consists of three octal digits which represent, in
order, the permissions of the owner, group, and other users for the
file (similarly to the numeric mode used in the linux chmod
utility).
|
OSPolicy.Resource.FileResource.SourceCase |
getSourceCase() |
OSPolicy.Resource.FileResource.DesiredState |
getState()
Required.
|
int |
getStateValue()
Required.
|
boolean |
hasContent()
A a file with this content.
|
boolean |
hasFile()
A remote or local source.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
OSPolicy.Resource.FileResource.Builder |
mergeFile(OSPolicy.Resource.File value)
A remote or local source.
|
OSPolicy.Resource.FileResource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
OSPolicy.Resource.FileResource.Builder |
mergeFrom(com.google.protobuf.Message other) |
OSPolicy.Resource.FileResource.Builder |
mergeFrom(OSPolicy.Resource.FileResource other) |
OSPolicy.Resource.FileResource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
OSPolicy.Resource.FileResource.Builder |
setContent(String value)
A a file with this content.
|
OSPolicy.Resource.FileResource.Builder |
setContentBytes(com.google.protobuf.ByteString value)
A a file with this content.
|
OSPolicy.Resource.FileResource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
OSPolicy.Resource.FileResource.Builder |
setFile(OSPolicy.Resource.File.Builder builderForValue)
A remote or local source.
|
OSPolicy.Resource.FileResource.Builder |
setFile(OSPolicy.Resource.File value)
A remote or local source.
|
OSPolicy.Resource.FileResource.Builder |
setPath(String value)
Required.
|
OSPolicy.Resource.FileResource.Builder |
setPathBytes(com.google.protobuf.ByteString value)
Required.
|
OSPolicy.Resource.FileResource.Builder |
setPermissions(String value)
Consists of three octal digits which represent, in
order, the permissions of the owner, group, and other users for the
file (similarly to the numeric mode used in the linux chmod
utility).
|
OSPolicy.Resource.FileResource.Builder |
setPermissionsBytes(com.google.protobuf.ByteString value)
Consists of three octal digits which represent, in
order, the permissions of the owner, group, and other users for the
file (similarly to the numeric mode used in the linux chmod
utility).
|
OSPolicy.Resource.FileResource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
OSPolicy.Resource.FileResource.Builder |
setState(OSPolicy.Resource.FileResource.DesiredState value)
Required.
|
OSPolicy.Resource.FileResource.Builder |
setStateValue(int value)
Required.
|
OSPolicy.Resource.FileResource.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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<OSPolicy.Resource.FileResource.Builder>public OSPolicy.Resource.FileResource.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.Resource.FileResource.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<OSPolicy.Resource.FileResource.Builder>public OSPolicy.Resource.FileResource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic OSPolicy.Resource.FileResource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic OSPolicy.Resource.FileResource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic OSPolicy.Resource.FileResource.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.Resource.FileResource.Builder>public OSPolicy.Resource.FileResource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.Resource.FileResource.Builder>public OSPolicy.Resource.FileResource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.Resource.FileResource.Builder>public OSPolicy.Resource.FileResource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.Resource.FileResource.Builder>public OSPolicy.Resource.FileResource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.Resource.FileResource.Builder>public OSPolicy.Resource.FileResource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.Resource.FileResource.Builder>public OSPolicy.Resource.FileResource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OSPolicy.Resource.FileResource.Builder>public OSPolicy.Resource.FileResource.Builder mergeFrom(OSPolicy.Resource.FileResource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.Resource.FileResource.Builder>public OSPolicy.Resource.FileResource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OSPolicy.Resource.FileResource.Builder>IOExceptionpublic OSPolicy.Resource.FileResource.SourceCase getSourceCase()
getSourceCase in interface OSPolicy.Resource.FileResourceOrBuilderpublic OSPolicy.Resource.FileResource.Builder clearSource()
public boolean hasFile()
A remote or local source.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File file = 1;hasFile in interface OSPolicy.Resource.FileResourceOrBuilderpublic OSPolicy.Resource.File getFile()
A remote or local source.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File file = 1;getFile in interface OSPolicy.Resource.FileResourceOrBuilderpublic OSPolicy.Resource.FileResource.Builder setFile(OSPolicy.Resource.File value)
A remote or local source.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File file = 1;public OSPolicy.Resource.FileResource.Builder setFile(OSPolicy.Resource.File.Builder builderForValue)
A remote or local source.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File file = 1;public OSPolicy.Resource.FileResource.Builder mergeFile(OSPolicy.Resource.File value)
A remote or local source.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File file = 1;public OSPolicy.Resource.FileResource.Builder clearFile()
A remote or local source.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File file = 1;public OSPolicy.Resource.File.Builder getFileBuilder()
A remote or local source.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File file = 1;public OSPolicy.Resource.FileOrBuilder getFileOrBuilder()
A remote or local source.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File file = 1;getFileOrBuilder in interface OSPolicy.Resource.FileResourceOrBuilderpublic boolean hasContent()
A a file with this content. The size of the content is limited to 1024 characters.
string content = 2;hasContent in interface OSPolicy.Resource.FileResourceOrBuilderpublic String getContent()
A a file with this content. The size of the content is limited to 1024 characters.
string content = 2;getContent in interface OSPolicy.Resource.FileResourceOrBuilderpublic com.google.protobuf.ByteString getContentBytes()
A a file with this content. The size of the content is limited to 1024 characters.
string content = 2;getContentBytes in interface OSPolicy.Resource.FileResourceOrBuilderpublic OSPolicy.Resource.FileResource.Builder setContent(String value)
A a file with this content. The size of the content is limited to 1024 characters.
string content = 2;value - The content to set.public OSPolicy.Resource.FileResource.Builder clearContent()
A a file with this content. The size of the content is limited to 1024 characters.
string content = 2;public OSPolicy.Resource.FileResource.Builder setContentBytes(com.google.protobuf.ByteString value)
A a file with this content. The size of the content is limited to 1024 characters.
string content = 2;value - The bytes for content to set.public String getPath()
Required. The absolute path of the file within the VM.
string path = 3 [(.google.api.field_behavior) = REQUIRED];getPath in interface OSPolicy.Resource.FileResourceOrBuilderpublic com.google.protobuf.ByteString getPathBytes()
Required. The absolute path of the file within the VM.
string path = 3 [(.google.api.field_behavior) = REQUIRED];getPathBytes in interface OSPolicy.Resource.FileResourceOrBuilderpublic OSPolicy.Resource.FileResource.Builder setPath(String value)
Required. The absolute path of the file within the VM.
string path = 3 [(.google.api.field_behavior) = REQUIRED];value - The path to set.public OSPolicy.Resource.FileResource.Builder clearPath()
Required. The absolute path of the file within the VM.
string path = 3 [(.google.api.field_behavior) = REQUIRED];public OSPolicy.Resource.FileResource.Builder setPathBytes(com.google.protobuf.ByteString value)
Required. The absolute path of the file within the VM.
string path = 3 [(.google.api.field_behavior) = REQUIRED];value - The bytes for path to set.public int getStateValue()
Required. Desired state of the file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredState state = 4 [(.google.api.field_behavior) = REQUIRED];
getStateValue in interface OSPolicy.Resource.FileResourceOrBuilderpublic OSPolicy.Resource.FileResource.Builder setStateValue(int value)
Required. Desired state of the file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredState state = 4 [(.google.api.field_behavior) = REQUIRED];
value - The enum numeric value on the wire for state to set.public OSPolicy.Resource.FileResource.DesiredState getState()
Required. Desired state of the file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredState state = 4 [(.google.api.field_behavior) = REQUIRED];
getState in interface OSPolicy.Resource.FileResourceOrBuilderpublic OSPolicy.Resource.FileResource.Builder setState(OSPolicy.Resource.FileResource.DesiredState value)
Required. Desired state of the file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredState state = 4 [(.google.api.field_behavior) = REQUIRED];
value - The state to set.public OSPolicy.Resource.FileResource.Builder clearState()
Required. Desired state of the file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredState state = 4 [(.google.api.field_behavior) = REQUIRED];
public String getPermissions()
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
string permissions = 5;getPermissions in interface OSPolicy.Resource.FileResourceOrBuilderpublic com.google.protobuf.ByteString getPermissionsBytes()
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
string permissions = 5;getPermissionsBytes in interface OSPolicy.Resource.FileResourceOrBuilderpublic OSPolicy.Resource.FileResource.Builder setPermissions(String value)
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
string permissions = 5;value - The permissions to set.public OSPolicy.Resource.FileResource.Builder clearPermissions()
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
string permissions = 5;public OSPolicy.Resource.FileResource.Builder setPermissionsBytes(com.google.protobuf.ByteString value)
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
string permissions = 5;value - The bytes for permissions to set.public final OSPolicy.Resource.FileResource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.Resource.FileResource.Builder>public final OSPolicy.Resource.FileResource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OSPolicy.Resource.FileResource.Builder>Copyright © 2023 Google LLC. All rights reserved.