Package dev.sigstore.proto.trustroot.v1
Class Service.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Service.Builder>
dev.sigstore.proto.trustroot.v1.Service.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ServiceOrBuilder
,Cloneable
- Enclosing class:
- Service
public static final class Service.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Service.Builder>
implements ServiceOrBuilder
Service represents an instance of a service that is a part of Sigstore infrastructure. When selecting one or multiple services from a list of services, clients MUST: * Use the API version hint to determine the service with the highest API version that the client is compatible with. * Only select services within the specified validity period and that have the newest validity start date. When selecting multiple services, clients MUST: * Use the ServiceConfiguration to determine how many services MUST be selected. Clients MUST return an error if there are not enough services that meet the selection criteria. * Group services by `operator` and select at most one service from an operator. During verification, clients MUST treat valid verification metadata from the operator as valid only once towards a threshold. * Select services from only the highest supported API version.Protobuf type
dev.sigstore.trustroot.v1.Service
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
Specifies the major API version.Specifies the name of the service operator.clearUrl()
URL of the service.Validity period of a service.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
Specifies the major API version.Specifies the name of the service operator.com.google.protobuf.ByteString
Specifies the name of the service operator.getUrl()
URL of the service.com.google.protobuf.ByteString
URL of the service.Validity period of a service.Validity period of a service.Validity period of a service.boolean
Validity period of a service.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeValidFor
(TimeRange value) Validity period of a service.setMajorApiVersion
(int value) Specifies the major API version.setOperator
(String value) Specifies the name of the service operator.setOperatorBytes
(com.google.protobuf.ByteString value) Specifies the name of the service operator.URL of the service.setUrlBytes
(com.google.protobuf.ByteString value) URL of the service.setValidFor
(TimeRange value) Validity period of a service.setValidFor
(TimeRange.Builder builderForValue) Validity period of a service.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Service.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Service.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Service.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Service.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Service.Builder>
-
mergeFrom
public Service.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Service.Builder>
- Throws:
IOException
-
getUrl
URL of the service. MUST include scheme and authority. MAY include path.
string url = 1;
- Specified by:
getUrl
in interfaceServiceOrBuilder
- Returns:
- The url.
-
getUrlBytes
public com.google.protobuf.ByteString getUrlBytes()URL of the service. MUST include scheme and authority. MAY include path.
string url = 1;
- Specified by:
getUrlBytes
in interfaceServiceOrBuilder
- Returns:
- The bytes for url.
-
setUrl
URL of the service. MUST include scheme and authority. MAY include path.
string url = 1;
- Parameters:
value
- The url to set.- Returns:
- This builder for chaining.
-
clearUrl
URL of the service. MUST include scheme and authority. MAY include path.
string url = 1;
- Returns:
- This builder for chaining.
-
setUrlBytes
URL of the service. MUST include scheme and authority. MAY include path.
string url = 1;
- Parameters:
value
- The bytes for url to set.- Returns:
- This builder for chaining.
-
getMajorApiVersion
public int getMajorApiVersion()Specifies the major API version. A value of 0 represents a service that has not yet been released.
uint32 major_api_version = 2;
- Specified by:
getMajorApiVersion
in interfaceServiceOrBuilder
- Returns:
- The majorApiVersion.
-
setMajorApiVersion
Specifies the major API version. A value of 0 represents a service that has not yet been released.
uint32 major_api_version = 2;
- Parameters:
value
- The majorApiVersion to set.- Returns:
- This builder for chaining.
-
clearMajorApiVersion
Specifies the major API version. A value of 0 represents a service that has not yet been released.
uint32 major_api_version = 2;
- Returns:
- This builder for chaining.
-
hasValidFor
public boolean hasValidFor()Validity period of a service. A service that has only a start date SHOULD be considered the most recent instance of that service, but the client MUST NOT assume there is only one valid instance. The TimeRange MUST be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 3;
- Specified by:
hasValidFor
in interfaceServiceOrBuilder
- Returns:
- Whether the validFor field is set.
-
getValidFor
Validity period of a service. A service that has only a start date SHOULD be considered the most recent instance of that service, but the client MUST NOT assume there is only one valid instance. The TimeRange MUST be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 3;
- Specified by:
getValidFor
in interfaceServiceOrBuilder
- Returns:
- The validFor.
-
setValidFor
Validity period of a service. A service that has only a start date SHOULD be considered the most recent instance of that service, but the client MUST NOT assume there is only one valid instance. The TimeRange MUST be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 3;
-
setValidFor
Validity period of a service. A service that has only a start date SHOULD be considered the most recent instance of that service, but the client MUST NOT assume there is only one valid instance. The TimeRange MUST be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 3;
-
mergeValidFor
Validity period of a service. A service that has only a start date SHOULD be considered the most recent instance of that service, but the client MUST NOT assume there is only one valid instance. The TimeRange MUST be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 3;
-
clearValidFor
Validity period of a service. A service that has only a start date SHOULD be considered the most recent instance of that service, but the client MUST NOT assume there is only one valid instance. The TimeRange MUST be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 3;
-
getValidForBuilder
Validity period of a service. A service that has only a start date SHOULD be considered the most recent instance of that service, but the client MUST NOT assume there is only one valid instance. The TimeRange MUST be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 3;
-
getValidForOrBuilder
Validity period of a service. A service that has only a start date SHOULD be considered the most recent instance of that service, but the client MUST NOT assume there is only one valid instance. The TimeRange MUST be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 3;
- Specified by:
getValidForOrBuilder
in interfaceServiceOrBuilder
-
getOperator
Specifies the name of the service operator. When selecting multiple services, clients MUST use the operator to select services from distinct operators. Operator MUST be formatted as a scheme-less URI, e.g. sigstore.dev
string operator = 4;
- Specified by:
getOperator
in interfaceServiceOrBuilder
- Returns:
- The operator.
-
getOperatorBytes
public com.google.protobuf.ByteString getOperatorBytes()Specifies the name of the service operator. When selecting multiple services, clients MUST use the operator to select services from distinct operators. Operator MUST be formatted as a scheme-less URI, e.g. sigstore.dev
string operator = 4;
- Specified by:
getOperatorBytes
in interfaceServiceOrBuilder
- Returns:
- The bytes for operator.
-
setOperator
Specifies the name of the service operator. When selecting multiple services, clients MUST use the operator to select services from distinct operators. Operator MUST be formatted as a scheme-less URI, e.g. sigstore.dev
string operator = 4;
- Parameters:
value
- The operator to set.- Returns:
- This builder for chaining.
-
clearOperator
Specifies the name of the service operator. When selecting multiple services, clients MUST use the operator to select services from distinct operators. Operator MUST be formatted as a scheme-less URI, e.g. sigstore.dev
string operator = 4;
- Returns:
- This builder for chaining.
-
setOperatorBytes
Specifies the name of the service operator. When selecting multiple services, clients MUST use the operator to select services from distinct operators. Operator MUST be formatted as a scheme-less URI, e.g. sigstore.dev
string operator = 4;
- Parameters:
value
- The bytes for operator to set.- Returns:
- This builder for chaining.
-