- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.6
- 2.4.3
- 2.3.2
public static final class OSPolicy.Resource.File.Builder extends GeneratedMessageV3.Builder<OSPolicy.Resource.File.Builder> implements OSPolicy.Resource.FileOrBuilder
A remote or local file.
Protobuf type google.cloud.osconfig.v1alpha.OSPolicy.Resource.File
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > OSPolicy.Resource.File.BuilderImplements
OSPolicy.Resource.FileOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OSPolicy.Resource.File.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
OSPolicy.Resource.File.Builder |
build()
public OSPolicy.Resource.File build()
Type | Description |
OSPolicy.Resource.File |
buildPartial()
public OSPolicy.Resource.File buildPartial()
Type | Description |
OSPolicy.Resource.File |
clear()
public OSPolicy.Resource.File.Builder clear()
Type | Description |
OSPolicy.Resource.File.Builder |
clearAllowInsecure()
public OSPolicy.Resource.File.Builder clearAllowInsecure()
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
bool allow_insecure = 4;
Type | Description |
OSPolicy.Resource.File.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public OSPolicy.Resource.File.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
OSPolicy.Resource.File.Builder |
clearGcs()
public OSPolicy.Resource.File.Builder clearGcs()
A Cloud Storage object.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;
Type | Description |
OSPolicy.Resource.File.Builder |
clearLocalPath()
public OSPolicy.Resource.File.Builder clearLocalPath()
A local path within the VM to use.
string local_path = 3;
Type | Description |
OSPolicy.Resource.File.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public OSPolicy.Resource.File.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
OSPolicy.Resource.File.Builder |
clearRemote()
public OSPolicy.Resource.File.Builder clearRemote()
A generic remote file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;
Type | Description |
OSPolicy.Resource.File.Builder |
clearType()
public OSPolicy.Resource.File.Builder clearType()
Type | Description |
OSPolicy.Resource.File.Builder |
clone()
public OSPolicy.Resource.File.Builder clone()
Type | Description |
OSPolicy.Resource.File.Builder |
getAllowInsecure()
public boolean getAllowInsecure()
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
bool allow_insecure = 4;
Type | Description |
boolean | The allowInsecure. |
getDefaultInstanceForType()
public OSPolicy.Resource.File getDefaultInstanceForType()
Type | Description |
OSPolicy.Resource.File |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getGcs()
public OSPolicy.Resource.File.Gcs getGcs()
A Cloud Storage object.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;
Type | Description |
OSPolicy.Resource.File.Gcs | The gcs. |
getGcsBuilder()
public OSPolicy.Resource.File.Gcs.Builder getGcsBuilder()
A Cloud Storage object.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;
Type | Description |
OSPolicy.Resource.File.Gcs.Builder |
getGcsOrBuilder()
public OSPolicy.Resource.File.GcsOrBuilder getGcsOrBuilder()
A Cloud Storage object.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;
Type | Description |
OSPolicy.Resource.File.GcsOrBuilder |
getLocalPath()
public String getLocalPath()
A local path within the VM to use.
string local_path = 3;
Type | Description |
String | The localPath. |
getLocalPathBytes()
public ByteString getLocalPathBytes()
A local path within the VM to use.
string local_path = 3;
Type | Description |
ByteString | The bytes for localPath. |
getRemote()
public OSPolicy.Resource.File.Remote getRemote()
A generic remote file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;
Type | Description |
OSPolicy.Resource.File.Remote | The remote. |
getRemoteBuilder()
public OSPolicy.Resource.File.Remote.Builder getRemoteBuilder()
A generic remote file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;
Type | Description |
OSPolicy.Resource.File.Remote.Builder |
getRemoteOrBuilder()
public OSPolicy.Resource.File.RemoteOrBuilder getRemoteOrBuilder()
A generic remote file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;
Type | Description |
OSPolicy.Resource.File.RemoteOrBuilder |
getTypeCase()
public OSPolicy.Resource.File.TypeCase getTypeCase()
Type | Description |
OSPolicy.Resource.File.TypeCase |
hasGcs()
public boolean hasGcs()
A Cloud Storage object.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;
Type | Description |
boolean | Whether the gcs field is set. |
hasLocalPath()
public boolean hasLocalPath()
A local path within the VM to use.
string local_path = 3;
Type | Description |
boolean | Whether the localPath field is set. |
hasRemote()
public boolean hasRemote()
A generic remote file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;
Type | Description |
boolean | Whether the remote field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(OSPolicy.Resource.File other)
public OSPolicy.Resource.File.Builder mergeFrom(OSPolicy.Resource.File other)
Name | Description |
other | OSPolicy.Resource.File |
Type | Description |
OSPolicy.Resource.File.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OSPolicy.Resource.File.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OSPolicy.Resource.File.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public OSPolicy.Resource.File.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
OSPolicy.Resource.File.Builder |
mergeGcs(OSPolicy.Resource.File.Gcs value)
public OSPolicy.Resource.File.Builder mergeGcs(OSPolicy.Resource.File.Gcs value)
A Cloud Storage object.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;
Name | Description |
value | OSPolicy.Resource.File.Gcs |
Type | Description |
OSPolicy.Resource.File.Builder |
mergeRemote(OSPolicy.Resource.File.Remote value)
public OSPolicy.Resource.File.Builder mergeRemote(OSPolicy.Resource.File.Remote value)
A generic remote file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;
Name | Description |
value | OSPolicy.Resource.File.Remote |
Type | Description |
OSPolicy.Resource.File.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OSPolicy.Resource.File.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
OSPolicy.Resource.File.Builder |
setAllowInsecure(boolean value)
public OSPolicy.Resource.File.Builder setAllowInsecure(boolean value)
Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.
bool allow_insecure = 4;
Name | Description |
value | boolean The allowInsecure to set. |
Type | Description |
OSPolicy.Resource.File.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public OSPolicy.Resource.File.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
OSPolicy.Resource.File.Builder |
setGcs(OSPolicy.Resource.File.Gcs value)
public OSPolicy.Resource.File.Builder setGcs(OSPolicy.Resource.File.Gcs value)
A Cloud Storage object.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;
Name | Description |
value | OSPolicy.Resource.File.Gcs |
Type | Description |
OSPolicy.Resource.File.Builder |
setGcs(OSPolicy.Resource.File.Gcs.Builder builderForValue)
public OSPolicy.Resource.File.Builder setGcs(OSPolicy.Resource.File.Gcs.Builder builderForValue)
A Cloud Storage object.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;
Name | Description |
builderForValue | OSPolicy.Resource.File.Gcs.Builder |
Type | Description |
OSPolicy.Resource.File.Builder |
setLocalPath(String value)
public OSPolicy.Resource.File.Builder setLocalPath(String value)
A local path within the VM to use.
string local_path = 3;
Name | Description |
value | String The localPath to set. |
Type | Description |
OSPolicy.Resource.File.Builder | This builder for chaining. |
setLocalPathBytes(ByteString value)
public OSPolicy.Resource.File.Builder setLocalPathBytes(ByteString value)
A local path within the VM to use.
string local_path = 3;
Name | Description |
value | ByteString The bytes for localPath to set. |
Type | Description |
OSPolicy.Resource.File.Builder | This builder for chaining. |
setRemote(OSPolicy.Resource.File.Remote value)
public OSPolicy.Resource.File.Builder setRemote(OSPolicy.Resource.File.Remote value)
A generic remote file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;
Name | Description |
value | OSPolicy.Resource.File.Remote |
Type | Description |
OSPolicy.Resource.File.Builder |
setRemote(OSPolicy.Resource.File.Remote.Builder builderForValue)
public OSPolicy.Resource.File.Builder setRemote(OSPolicy.Resource.File.Remote.Builder builderForValue)
A generic remote file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;
Name | Description |
builderForValue | OSPolicy.Resource.File.Remote.Builder |
Type | Description |
OSPolicy.Resource.File.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OSPolicy.Resource.File.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
OSPolicy.Resource.File.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final OSPolicy.Resource.File.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
OSPolicy.Resource.File.Builder |