Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
xyz.block.ftl.v1.GetArtefactDiffsResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: xyz/block/ftl/v1/ftl.proto
// Protobuf Java Version: 3.25.4
package xyz.block.ftl.v1;
/**
* Protobuf type {@code xyz.block.ftl.v1.GetArtefactDiffsResponse}
*/
public final class GetArtefactDiffsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.GetArtefactDiffsResponse)
GetArtefactDiffsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetArtefactDiffsResponse.newBuilder() to construct.
private GetArtefactDiffsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private GetArtefactDiffsResponse() {
missingDigests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
clientArtefacts_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetArtefactDiffsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_GetArtefactDiffsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_GetArtefactDiffsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.v1.GetArtefactDiffsResponse.class, xyz.block.ftl.v1.GetArtefactDiffsResponse.Builder.class);
}
public static final int MISSING_DIGESTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList missingDigests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string missing_digests = 1;
* @return A list containing the missingDigests.
*/
public com.google.protobuf.ProtocolStringList
getMissingDigestsList() {
return missingDigests_;
}
/**
* repeated string missing_digests = 1;
* @return The count of missingDigests.
*/
public int getMissingDigestsCount() {
return missingDigests_.size();
}
/**
* repeated string missing_digests = 1;
* @param index The index of the element to return.
* @return The missingDigests at the given index.
*/
public java.lang.String getMissingDigests(int index) {
return missingDigests_.get(index);
}
/**
* repeated string missing_digests = 1;
* @param index The index of the value to return.
* @return The bytes of the missingDigests at the given index.
*/
public com.google.protobuf.ByteString
getMissingDigestsBytes(int index) {
return missingDigests_.getByteString(index);
}
public static final int CLIENT_ARTEFACTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List clientArtefacts_;
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
@java.lang.Override
public java.util.List getClientArtefactsList() {
return clientArtefacts_;
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
@java.lang.Override
public java.util.List
getClientArtefactsOrBuilderList() {
return clientArtefacts_;
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
@java.lang.Override
public int getClientArtefactsCount() {
return clientArtefacts_.size();
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
@java.lang.Override
public xyz.block.ftl.v1.DeploymentArtefact getClientArtefacts(int index) {
return clientArtefacts_.get(index);
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
@java.lang.Override
public xyz.block.ftl.v1.DeploymentArtefactOrBuilder getClientArtefactsOrBuilder(
int index) {
return clientArtefacts_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < missingDigests_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, missingDigests_.getRaw(i));
}
for (int i = 0; i < clientArtefacts_.size(); i++) {
output.writeMessage(2, clientArtefacts_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < missingDigests_.size(); i++) {
dataSize += computeStringSizeNoTag(missingDigests_.getRaw(i));
}
size += dataSize;
size += 1 * getMissingDigestsList().size();
}
for (int i = 0; i < clientArtefacts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, clientArtefacts_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof xyz.block.ftl.v1.GetArtefactDiffsResponse)) {
return super.equals(obj);
}
xyz.block.ftl.v1.GetArtefactDiffsResponse other = (xyz.block.ftl.v1.GetArtefactDiffsResponse) obj;
if (!getMissingDigestsList()
.equals(other.getMissingDigestsList())) return false;
if (!getClientArtefactsList()
.equals(other.getClientArtefactsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getMissingDigestsCount() > 0) {
hash = (37 * hash) + MISSING_DIGESTS_FIELD_NUMBER;
hash = (53 * hash) + getMissingDigestsList().hashCode();
}
if (getClientArtefactsCount() > 0) {
hash = (37 * hash) + CLIENT_ARTEFACTS_FIELD_NUMBER;
hash = (53 * hash) + getClientArtefactsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static xyz.block.ftl.v1.GetArtefactDiffsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.GetArtefactDiffsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.v1.GetArtefactDiffsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.GetArtefactDiffsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.v1.GetArtefactDiffsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.GetArtefactDiffsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.v1.GetArtefactDiffsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.GetArtefactDiffsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static xyz.block.ftl.v1.GetArtefactDiffsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.GetArtefactDiffsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static xyz.block.ftl.v1.GetArtefactDiffsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.GetArtefactDiffsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(xyz.block.ftl.v1.GetArtefactDiffsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code xyz.block.ftl.v1.GetArtefactDiffsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.GetArtefactDiffsResponse)
xyz.block.ftl.v1.GetArtefactDiffsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_GetArtefactDiffsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_GetArtefactDiffsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.v1.GetArtefactDiffsResponse.class, xyz.block.ftl.v1.GetArtefactDiffsResponse.Builder.class);
}
// Construct using xyz.block.ftl.v1.GetArtefactDiffsResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
missingDigests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
if (clientArtefactsBuilder_ == null) {
clientArtefacts_ = java.util.Collections.emptyList();
} else {
clientArtefacts_ = null;
clientArtefactsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_GetArtefactDiffsResponse_descriptor;
}
@java.lang.Override
public xyz.block.ftl.v1.GetArtefactDiffsResponse getDefaultInstanceForType() {
return xyz.block.ftl.v1.GetArtefactDiffsResponse.getDefaultInstance();
}
@java.lang.Override
public xyz.block.ftl.v1.GetArtefactDiffsResponse build() {
xyz.block.ftl.v1.GetArtefactDiffsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xyz.block.ftl.v1.GetArtefactDiffsResponse buildPartial() {
xyz.block.ftl.v1.GetArtefactDiffsResponse result = new xyz.block.ftl.v1.GetArtefactDiffsResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(xyz.block.ftl.v1.GetArtefactDiffsResponse result) {
if (clientArtefactsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
clientArtefacts_ = java.util.Collections.unmodifiableList(clientArtefacts_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.clientArtefacts_ = clientArtefacts_;
} else {
result.clientArtefacts_ = clientArtefactsBuilder_.build();
}
}
private void buildPartial0(xyz.block.ftl.v1.GetArtefactDiffsResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
missingDigests_.makeImmutable();
result.missingDigests_ = missingDigests_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xyz.block.ftl.v1.GetArtefactDiffsResponse) {
return mergeFrom((xyz.block.ftl.v1.GetArtefactDiffsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xyz.block.ftl.v1.GetArtefactDiffsResponse other) {
if (other == xyz.block.ftl.v1.GetArtefactDiffsResponse.getDefaultInstance()) return this;
if (!other.missingDigests_.isEmpty()) {
if (missingDigests_.isEmpty()) {
missingDigests_ = other.missingDigests_;
bitField0_ |= 0x00000001;
} else {
ensureMissingDigestsIsMutable();
missingDigests_.addAll(other.missingDigests_);
}
onChanged();
}
if (clientArtefactsBuilder_ == null) {
if (!other.clientArtefacts_.isEmpty()) {
if (clientArtefacts_.isEmpty()) {
clientArtefacts_ = other.clientArtefacts_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureClientArtefactsIsMutable();
clientArtefacts_.addAll(other.clientArtefacts_);
}
onChanged();
}
} else {
if (!other.clientArtefacts_.isEmpty()) {
if (clientArtefactsBuilder_.isEmpty()) {
clientArtefactsBuilder_.dispose();
clientArtefactsBuilder_ = null;
clientArtefacts_ = other.clientArtefacts_;
bitField0_ = (bitField0_ & ~0x00000002);
clientArtefactsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getClientArtefactsFieldBuilder() : null;
} else {
clientArtefactsBuilder_.addAllMessages(other.clientArtefacts_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
ensureMissingDigestsIsMutable();
missingDigests_.add(s);
break;
} // case 10
case 18: {
xyz.block.ftl.v1.DeploymentArtefact m =
input.readMessage(
xyz.block.ftl.v1.DeploymentArtefact.parser(),
extensionRegistry);
if (clientArtefactsBuilder_ == null) {
ensureClientArtefactsIsMutable();
clientArtefacts_.add(m);
} else {
clientArtefactsBuilder_.addMessage(m);
}
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList missingDigests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureMissingDigestsIsMutable() {
if (!missingDigests_.isModifiable()) {
missingDigests_ = new com.google.protobuf.LazyStringArrayList(missingDigests_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated string missing_digests = 1;
* @return A list containing the missingDigests.
*/
public com.google.protobuf.ProtocolStringList
getMissingDigestsList() {
missingDigests_.makeImmutable();
return missingDigests_;
}
/**
* repeated string missing_digests = 1;
* @return The count of missingDigests.
*/
public int getMissingDigestsCount() {
return missingDigests_.size();
}
/**
* repeated string missing_digests = 1;
* @param index The index of the element to return.
* @return The missingDigests at the given index.
*/
public java.lang.String getMissingDigests(int index) {
return missingDigests_.get(index);
}
/**
* repeated string missing_digests = 1;
* @param index The index of the value to return.
* @return The bytes of the missingDigests at the given index.
*/
public com.google.protobuf.ByteString
getMissingDigestsBytes(int index) {
return missingDigests_.getByteString(index);
}
/**
* repeated string missing_digests = 1;
* @param index The index to set the value at.
* @param value The missingDigests to set.
* @return This builder for chaining.
*/
public Builder setMissingDigests(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMissingDigestsIsMutable();
missingDigests_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string missing_digests = 1;
* @param value The missingDigests to add.
* @return This builder for chaining.
*/
public Builder addMissingDigests(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMissingDigestsIsMutable();
missingDigests_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string missing_digests = 1;
* @param values The missingDigests to add.
* @return This builder for chaining.
*/
public Builder addAllMissingDigests(
java.lang.Iterable values) {
ensureMissingDigestsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, missingDigests_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string missing_digests = 1;
* @return This builder for chaining.
*/
public Builder clearMissingDigests() {
missingDigests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string missing_digests = 1;
* @param value The bytes of the missingDigests to add.
* @return This builder for chaining.
*/
public Builder addMissingDigestsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureMissingDigestsIsMutable();
missingDigests_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List clientArtefacts_ =
java.util.Collections.emptyList();
private void ensureClientArtefactsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
clientArtefacts_ = new java.util.ArrayList(clientArtefacts_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xyz.block.ftl.v1.DeploymentArtefact, xyz.block.ftl.v1.DeploymentArtefact.Builder, xyz.block.ftl.v1.DeploymentArtefactOrBuilder> clientArtefactsBuilder_;
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public java.util.List getClientArtefactsList() {
if (clientArtefactsBuilder_ == null) {
return java.util.Collections.unmodifiableList(clientArtefacts_);
} else {
return clientArtefactsBuilder_.getMessageList();
}
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public int getClientArtefactsCount() {
if (clientArtefactsBuilder_ == null) {
return clientArtefacts_.size();
} else {
return clientArtefactsBuilder_.getCount();
}
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public xyz.block.ftl.v1.DeploymentArtefact getClientArtefacts(int index) {
if (clientArtefactsBuilder_ == null) {
return clientArtefacts_.get(index);
} else {
return clientArtefactsBuilder_.getMessage(index);
}
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public Builder setClientArtefacts(
int index, xyz.block.ftl.v1.DeploymentArtefact value) {
if (clientArtefactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientArtefactsIsMutable();
clientArtefacts_.set(index, value);
onChanged();
} else {
clientArtefactsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public Builder setClientArtefacts(
int index, xyz.block.ftl.v1.DeploymentArtefact.Builder builderForValue) {
if (clientArtefactsBuilder_ == null) {
ensureClientArtefactsIsMutable();
clientArtefacts_.set(index, builderForValue.build());
onChanged();
} else {
clientArtefactsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public Builder addClientArtefacts(xyz.block.ftl.v1.DeploymentArtefact value) {
if (clientArtefactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientArtefactsIsMutable();
clientArtefacts_.add(value);
onChanged();
} else {
clientArtefactsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public Builder addClientArtefacts(
int index, xyz.block.ftl.v1.DeploymentArtefact value) {
if (clientArtefactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientArtefactsIsMutable();
clientArtefacts_.add(index, value);
onChanged();
} else {
clientArtefactsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public Builder addClientArtefacts(
xyz.block.ftl.v1.DeploymentArtefact.Builder builderForValue) {
if (clientArtefactsBuilder_ == null) {
ensureClientArtefactsIsMutable();
clientArtefacts_.add(builderForValue.build());
onChanged();
} else {
clientArtefactsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public Builder addClientArtefacts(
int index, xyz.block.ftl.v1.DeploymentArtefact.Builder builderForValue) {
if (clientArtefactsBuilder_ == null) {
ensureClientArtefactsIsMutable();
clientArtefacts_.add(index, builderForValue.build());
onChanged();
} else {
clientArtefactsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public Builder addAllClientArtefacts(
java.lang.Iterable values) {
if (clientArtefactsBuilder_ == null) {
ensureClientArtefactsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, clientArtefacts_);
onChanged();
} else {
clientArtefactsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public Builder clearClientArtefacts() {
if (clientArtefactsBuilder_ == null) {
clientArtefacts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
clientArtefactsBuilder_.clear();
}
return this;
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public Builder removeClientArtefacts(int index) {
if (clientArtefactsBuilder_ == null) {
ensureClientArtefactsIsMutable();
clientArtefacts_.remove(index);
onChanged();
} else {
clientArtefactsBuilder_.remove(index);
}
return this;
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public xyz.block.ftl.v1.DeploymentArtefact.Builder getClientArtefactsBuilder(
int index) {
return getClientArtefactsFieldBuilder().getBuilder(index);
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public xyz.block.ftl.v1.DeploymentArtefactOrBuilder getClientArtefactsOrBuilder(
int index) {
if (clientArtefactsBuilder_ == null) {
return clientArtefacts_.get(index); } else {
return clientArtefactsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public java.util.List
getClientArtefactsOrBuilderList() {
if (clientArtefactsBuilder_ != null) {
return clientArtefactsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(clientArtefacts_);
}
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public xyz.block.ftl.v1.DeploymentArtefact.Builder addClientArtefactsBuilder() {
return getClientArtefactsFieldBuilder().addBuilder(
xyz.block.ftl.v1.DeploymentArtefact.getDefaultInstance());
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public xyz.block.ftl.v1.DeploymentArtefact.Builder addClientArtefactsBuilder(
int index) {
return getClientArtefactsFieldBuilder().addBuilder(
index, xyz.block.ftl.v1.DeploymentArtefact.getDefaultInstance());
}
/**
*
* Artefacts that the client already has, and their path+executable status.
*
*
* repeated .xyz.block.ftl.v1.DeploymentArtefact client_artefacts = 2;
*/
public java.util.List
getClientArtefactsBuilderList() {
return getClientArtefactsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xyz.block.ftl.v1.DeploymentArtefact, xyz.block.ftl.v1.DeploymentArtefact.Builder, xyz.block.ftl.v1.DeploymentArtefactOrBuilder>
getClientArtefactsFieldBuilder() {
if (clientArtefactsBuilder_ == null) {
clientArtefactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
xyz.block.ftl.v1.DeploymentArtefact, xyz.block.ftl.v1.DeploymentArtefact.Builder, xyz.block.ftl.v1.DeploymentArtefactOrBuilder>(
clientArtefacts_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
clientArtefacts_ = null;
}
return clientArtefactsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xyz.block.ftl.v1.GetArtefactDiffsResponse)
}
// @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.GetArtefactDiffsResponse)
private static final xyz.block.ftl.v1.GetArtefactDiffsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xyz.block.ftl.v1.GetArtefactDiffsResponse();
}
public static xyz.block.ftl.v1.GetArtefactDiffsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetArtefactDiffsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public xyz.block.ftl.v1.GetArtefactDiffsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}