Package com.google.cloud.osconfig.v1
Interface OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
OSPolicy.Resource.RepositoryResource.AptRepository
,OSPolicy.Resource.RepositoryResource.AptRepository.Builder
- Enclosing class:
- OSPolicy.Resource.RepositoryResource
public static interface OSPolicy.Resource.RepositoryResource.AptRepositoryOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType
getArchiveType()
Required.int
getArchiveTypeValue()
Required.String
getComponents(int index)
Required.com.google.protobuf.ByteString
getComponentsBytes(int index)
Required.int
getComponentsCount()
Required.List<String>
getComponentsList()
Required.String
getDistribution()
Required.com.google.protobuf.ByteString
getDistributionBytes()
Required.String
getGpgKey()
URI of the key file for this repository.com.google.protobuf.ByteString
getGpgKeyBytes()
URI of the key file for this repository.String
getUri()
Required.com.google.protobuf.ByteString
getUriBytes()
Required.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getArchiveTypeValue
int getArchiveTypeValue()
Required. Type of archive files in this repository.
.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType archive_type = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The enum numeric value on the wire for archiveType.
-
getArchiveType
OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType getArchiveType()
Required. Type of archive files in this repository.
.google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType archive_type = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The archiveType.
-
getUri
String getUri()
Required. URI for this repository.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The uri.
-
getUriBytes
com.google.protobuf.ByteString getUriBytes()
Required. URI for this repository.
string uri = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The bytes for uri.
-
getDistribution
String getDistribution()
Required. Distribution of this repository.
string distribution = 3 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The distribution.
-
getDistributionBytes
com.google.protobuf.ByteString getDistributionBytes()
Required. Distribution of this repository.
string distribution = 3 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The bytes for distribution.
-
getComponentsList
List<String> getComponentsList()
Required. List of components for this repository. Must contain at least one item.
repeated string components = 4 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- A list containing the components.
-
getComponentsCount
int getComponentsCount()
Required. List of components for this repository. Must contain at least one item.
repeated string components = 4 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The count of components.
-
getComponents
String getComponents(int index)
Required. List of components for this repository. Must contain at least one item.
repeated string components = 4 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
index
- The index of the element to return.- Returns:
- The components at the given index.
-
getComponentsBytes
com.google.protobuf.ByteString getComponentsBytes(int index)
Required. List of components for this repository. Must contain at least one item.
repeated string components = 4 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the components at the given index.
-
getGpgKey
String getGpgKey()
URI of the key file for this repository. The agent maintains a keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg`.
string gpg_key = 5;
- Returns:
- The gpgKey.
-
getGpgKeyBytes
com.google.protobuf.ByteString getGpgKeyBytes()
URI of the key file for this repository. The agent maintains a keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg`.
string gpg_key = 5;
- Returns:
- The bytes for gpgKey.
-
-