Class ControlOuterClass.UsageRecord.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ControlOuterClass.UsageRecord.Builder>
com.google.protobuf.GeneratedMessage.Builder<ControlOuterClass.UsageRecord.Builder>
moby.buildkit.v1.ControlOuterClass.UsageRecord.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,ControlOuterClass.UsageRecordOrBuilder
- Enclosing class:
ControlOuterClass.UsageRecord
public static final class ControlOuterClass.UsageRecord.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ControlOuterClass.UsageRecord.Builder>
implements ControlOuterClass.UsageRecordOrBuilder
Protobuf type
moby.buildkit.v1.UsageRecord
-
Method Summary
Modifier and TypeMethodDescriptionaddAllParents
(Iterable<String> values) repeated string Parents = 12;
addParents
(String value) repeated string Parents = 12;
addParentsBytes
(com.google.protobuf.ByteString value) repeated string Parents = 12;
build()
clear()
.google.protobuf.Timestamp CreatedAt = 6;
string Description = 9;
clearID()
string ID = 1;
bool InUse = 3;
.google.protobuf.Timestamp LastUsedAt = 7;
bool Mutable = 2;
Deprecated.moby.buildkit.v1.UsageRecord.Parent is deprecated.repeated string Parents = 12;
string RecordType = 10;
bool Shared = 11;
int64 Size = 4;
int64 UsageCount = 8;
.google.protobuf.Timestamp CreatedAt = 6;
.google.protobuf.Timestamp CreatedAt = 6;
.google.protobuf.Timestamp CreatedAt = 6;
string Description = 9;
com.google.protobuf.ByteString
string Description = 9;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getID()
string ID = 1;
com.google.protobuf.ByteString
string ID = 1;
boolean
getInUse()
bool InUse = 3;
.google.protobuf.Timestamp LastUsedAt = 7;
.google.protobuf.Timestamp LastUsedAt = 7;
.google.protobuf.Timestamp LastUsedAt = 7;
boolean
bool Mutable = 2;
Deprecated.moby.buildkit.v1.UsageRecord.Parent is deprecated.com.google.protobuf.ByteString
Deprecated.moby.buildkit.v1.UsageRecord.Parent is deprecated.getParents
(int index) repeated string Parents = 12;
com.google.protobuf.ByteString
getParentsBytes
(int index) repeated string Parents = 12;
int
repeated string Parents = 12;
com.google.protobuf.ProtocolStringList
repeated string Parents = 12;
string RecordType = 10;
com.google.protobuf.ByteString
string RecordType = 10;
boolean
bool Shared = 11;
long
getSize()
int64 Size = 4;
long
int64 UsageCount = 8;
boolean
.google.protobuf.Timestamp CreatedAt = 6;
boolean
.google.protobuf.Timestamp LastUsedAt = 7;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeCreatedAt
(Timestamp value) .google.protobuf.Timestamp CreatedAt = 6;
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeLastUsedAt
(Timestamp value) .google.protobuf.Timestamp LastUsedAt = 7;
setCreatedAt
(Timestamp value) .google.protobuf.Timestamp CreatedAt = 6;
setCreatedAt
(Timestamp.Builder builderForValue) .google.protobuf.Timestamp CreatedAt = 6;
setDescription
(String value) string Description = 9;
setDescriptionBytes
(com.google.protobuf.ByteString value) string Description = 9;
string ID = 1;
setIDBytes
(com.google.protobuf.ByteString value) string ID = 1;
setInUse
(boolean value) bool InUse = 3;
setLastUsedAt
(Timestamp value) .google.protobuf.Timestamp LastUsedAt = 7;
setLastUsedAt
(Timestamp.Builder builderForValue) .google.protobuf.Timestamp LastUsedAt = 7;
setMutable
(boolean value) bool Mutable = 2;
Deprecated.moby.buildkit.v1.UsageRecord.Parent is deprecated.setParentBytes
(com.google.protobuf.ByteString value) Deprecated.moby.buildkit.v1.UsageRecord.Parent is deprecated.setParents
(int index, String value) repeated string Parents = 12;
setRecordType
(String value) string RecordType = 10;
setRecordTypeBytes
(com.google.protobuf.ByteString value) string RecordType = 10;
setShared
(boolean value) bool Shared = 11;
setSize
(long value) int64 Size = 4;
setUsageCount
(long value) int64 UsageCount = 8;
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<ControlOuterClass.UsageRecord.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<ControlOuterClass.UsageRecord.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<ControlOuterClass.UsageRecord.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<ControlOuterClass.UsageRecord.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<ControlOuterClass.UsageRecord.Builder>
-
mergeFrom
public ControlOuterClass.UsageRecord.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<ControlOuterClass.UsageRecord.Builder>
- Throws:
IOException
-
getID
string ID = 1;
- Specified by:
getID
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The iD.
-
getIDBytes
public com.google.protobuf.ByteString getIDBytes()string ID = 1;
- Specified by:
getIDBytes
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The bytes for iD.
-
setID
string ID = 1;
- Parameters:
value
- The iD to set.- Returns:
- This builder for chaining.
-
clearID
string ID = 1;
- Returns:
- This builder for chaining.
-
setIDBytes
string ID = 1;
- Parameters:
value
- The bytes for iD to set.- Returns:
- This builder for chaining.
-
getMutable
public boolean getMutable()bool Mutable = 2;
- Specified by:
getMutable
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The mutable.
-
setMutable
bool Mutable = 2;
- Parameters:
value
- The mutable to set.- Returns:
- This builder for chaining.
-
clearMutable
bool Mutable = 2;
- Returns:
- This builder for chaining.
-
getInUse
public boolean getInUse()bool InUse = 3;
- Specified by:
getInUse
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The inUse.
-
setInUse
bool InUse = 3;
- Parameters:
value
- The inUse to set.- Returns:
- This builder for chaining.
-
clearInUse
bool InUse = 3;
- Returns:
- This builder for chaining.
-
getSize
public long getSize()int64 Size = 4;
- Specified by:
getSize
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The size.
-
setSize
int64 Size = 4;
- Parameters:
value
- The size to set.- Returns:
- This builder for chaining.
-
clearSize
int64 Size = 4;
- Returns:
- This builder for chaining.
-
getParent
Deprecated.moby.buildkit.v1.UsageRecord.Parent is deprecated. See github.com/moby/buildkit/api/services/control/control.proto;l=49string Parent = 5 [deprecated = true];
- Specified by:
getParent
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The parent.
-
getParentBytes
Deprecated.moby.buildkit.v1.UsageRecord.Parent is deprecated. See github.com/moby/buildkit/api/services/control/control.proto;l=49string Parent = 5 [deprecated = true];
- Specified by:
getParentBytes
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The bytes for parent.
-
setParent
Deprecated.moby.buildkit.v1.UsageRecord.Parent is deprecated. See github.com/moby/buildkit/api/services/control/control.proto;l=49string Parent = 5 [deprecated = true];
- Parameters:
value
- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Deprecated.moby.buildkit.v1.UsageRecord.Parent is deprecated. See github.com/moby/buildkit/api/services/control/control.proto;l=49string Parent = 5 [deprecated = true];
- Returns:
- This builder for chaining.
-
setParentBytes
@Deprecated public ControlOuterClass.UsageRecord.Builder setParentBytes(com.google.protobuf.ByteString value) Deprecated.moby.buildkit.v1.UsageRecord.Parent is deprecated. See github.com/moby/buildkit/api/services/control/control.proto;l=49string Parent = 5 [deprecated = true];
- Parameters:
value
- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasCreatedAt
public boolean hasCreatedAt().google.protobuf.Timestamp CreatedAt = 6;
- Specified by:
hasCreatedAt
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- Whether the createdAt field is set.
-
getCreatedAt
.google.protobuf.Timestamp CreatedAt = 6;
- Specified by:
getCreatedAt
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The createdAt.
-
setCreatedAt
.google.protobuf.Timestamp CreatedAt = 6;
-
setCreatedAt
.google.protobuf.Timestamp CreatedAt = 6;
-
mergeCreatedAt
.google.protobuf.Timestamp CreatedAt = 6;
-
clearCreatedAt
.google.protobuf.Timestamp CreatedAt = 6;
-
getCreatedAtBuilder
.google.protobuf.Timestamp CreatedAt = 6;
-
getCreatedAtOrBuilder
.google.protobuf.Timestamp CreatedAt = 6;
- Specified by:
getCreatedAtOrBuilder
in interfaceControlOuterClass.UsageRecordOrBuilder
-
hasLastUsedAt
public boolean hasLastUsedAt().google.protobuf.Timestamp LastUsedAt = 7;
- Specified by:
hasLastUsedAt
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- Whether the lastUsedAt field is set.
-
getLastUsedAt
.google.protobuf.Timestamp LastUsedAt = 7;
- Specified by:
getLastUsedAt
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The lastUsedAt.
-
setLastUsedAt
.google.protobuf.Timestamp LastUsedAt = 7;
-
setLastUsedAt
.google.protobuf.Timestamp LastUsedAt = 7;
-
mergeLastUsedAt
.google.protobuf.Timestamp LastUsedAt = 7;
-
clearLastUsedAt
.google.protobuf.Timestamp LastUsedAt = 7;
-
getLastUsedAtBuilder
.google.protobuf.Timestamp LastUsedAt = 7;
-
getLastUsedAtOrBuilder
.google.protobuf.Timestamp LastUsedAt = 7;
- Specified by:
getLastUsedAtOrBuilder
in interfaceControlOuterClass.UsageRecordOrBuilder
-
getUsageCount
public long getUsageCount()int64 UsageCount = 8;
- Specified by:
getUsageCount
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The usageCount.
-
setUsageCount
int64 UsageCount = 8;
- Parameters:
value
- The usageCount to set.- Returns:
- This builder for chaining.
-
clearUsageCount
int64 UsageCount = 8;
- Returns:
- This builder for chaining.
-
getDescription
string Description = 9;
- Specified by:
getDescription
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()string Description = 9;
- Specified by:
getDescriptionBytes
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The bytes for description.
-
setDescription
string Description = 9;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
string Description = 9;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public ControlOuterClass.UsageRecord.Builder setDescriptionBytes(com.google.protobuf.ByteString value) string Description = 9;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getRecordType
string RecordType = 10;
- Specified by:
getRecordType
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The recordType.
-
getRecordTypeBytes
public com.google.protobuf.ByteString getRecordTypeBytes()string RecordType = 10;
- Specified by:
getRecordTypeBytes
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The bytes for recordType.
-
setRecordType
string RecordType = 10;
- Parameters:
value
- The recordType to set.- Returns:
- This builder for chaining.
-
clearRecordType
string RecordType = 10;
- Returns:
- This builder for chaining.
-
setRecordTypeBytes
public ControlOuterClass.UsageRecord.Builder setRecordTypeBytes(com.google.protobuf.ByteString value) string RecordType = 10;
- Parameters:
value
- The bytes for recordType to set.- Returns:
- This builder for chaining.
-
getParentsList
public com.google.protobuf.ProtocolStringList getParentsList()repeated string Parents = 12;
- Specified by:
getParentsList
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- A list containing the parents.
-
getParentsCount
public int getParentsCount()repeated string Parents = 12;
- Specified by:
getParentsCount
in interfaceControlOuterClass.UsageRecordOrBuilder
- Returns:
- The count of parents.
-
getParents
repeated string Parents = 12;
- Specified by:
getParents
in interfaceControlOuterClass.UsageRecordOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The parents at the given index.
-
getParentsBytes
public com.google.protobuf.ByteString getParentsBytes(int index) repeated string Parents = 12;
- Specified by:
getParentsBytes
in interfaceControlOuterClass.UsageRecordOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the parents at the given index.
-
setParents
repeated string Parents = 12;
- Parameters:
index
- The index to set the value at.value
- The parents to set.- Returns:
- This builder for chaining.
-
addParents
repeated string Parents = 12;
- Parameters:
value
- The parents to add.- Returns:
- This builder for chaining.
-
addAllParents
repeated string Parents = 12;
- Parameters:
values
- The parents to add.- Returns:
- This builder for chaining.
-
clearParents
repeated string Parents = 12;
- Returns:
- This builder for chaining.
-
addParentsBytes
repeated string Parents = 12;
- Parameters:
value
- The bytes of the parents to add.- Returns:
- This builder for chaining.
-