All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.
com.netflix.genie.proto.ExecutionResource Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: genie.proto
package com.netflix.genie.proto;
/**
* Protobuf type {@code com.netflix.genie.proto.ExecutionResource}
*/
public final class ExecutionResource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.netflix.genie.proto.ExecutionResource)
ExecutionResourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecutionResource.newBuilder() to construct.
private ExecutionResource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecutionResource() {
id_ = "";
setupFile_ = "";
configs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
dependencies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecutionResource();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecutionResource(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
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();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
setupFile_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
configs_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
configs_.add(s);
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
dependencies_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
dependencies_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
configs_ = configs_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
dependencies_ = dependencies_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ExecutionResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ExecutionResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.netflix.genie.proto.ExecutionResource.class, com.netflix.genie.proto.ExecutionResource.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SETUP_FILE_FIELD_NUMBER = 2;
private volatile java.lang.Object setupFile_;
/**
* string setup_file = 2;
* @return The setupFile.
*/
@java.lang.Override
public java.lang.String getSetupFile() {
java.lang.Object ref = setupFile_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
setupFile_ = s;
return s;
}
}
/**
* string setup_file = 2;
* @return The bytes for setupFile.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSetupFileBytes() {
java.lang.Object ref = setupFile_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
setupFile_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONFIGS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList configs_;
/**
* repeated string configs = 3;
* @return A list containing the configs.
*/
public com.google.protobuf.ProtocolStringList
getConfigsList() {
return configs_;
}
/**
* repeated string configs = 3;
* @return The count of configs.
*/
public int getConfigsCount() {
return configs_.size();
}
/**
* repeated string configs = 3;
* @param index The index of the element to return.
* @return The configs at the given index.
*/
public java.lang.String getConfigs(int index) {
return configs_.get(index);
}
/**
* repeated string configs = 3;
* @param index The index of the value to return.
* @return The bytes of the configs at the given index.
*/
public com.google.protobuf.ByteString
getConfigsBytes(int index) {
return configs_.getByteString(index);
}
public static final int DEPENDENCIES_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList dependencies_;
/**
* repeated string dependencies = 4;
* @return A list containing the dependencies.
*/
public com.google.protobuf.ProtocolStringList
getDependenciesList() {
return dependencies_;
}
/**
* repeated string dependencies = 4;
* @return The count of dependencies.
*/
public int getDependenciesCount() {
return dependencies_.size();
}
/**
* repeated string dependencies = 4;
* @param index The index of the element to return.
* @return The dependencies at the given index.
*/
public java.lang.String getDependencies(int index) {
return dependencies_.get(index);
}
/**
* repeated string dependencies = 4;
* @param index The index of the value to return.
* @return The bytes of the dependencies at the given index.
*/
public com.google.protobuf.ByteString
getDependenciesBytes(int index) {
return dependencies_.getByteString(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 {
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!getSetupFileBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, setupFile_);
}
for (int i = 0; i < configs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, configs_.getRaw(i));
}
for (int i = 0; i < dependencies_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dependencies_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!getSetupFileBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, setupFile_);
}
{
int dataSize = 0;
for (int i = 0; i < configs_.size(); i++) {
dataSize += computeStringSizeNoTag(configs_.getRaw(i));
}
size += dataSize;
size += 1 * getConfigsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < dependencies_.size(); i++) {
dataSize += computeStringSizeNoTag(dependencies_.getRaw(i));
}
size += dataSize;
size += 1 * getDependenciesList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.netflix.genie.proto.ExecutionResource)) {
return super.equals(obj);
}
com.netflix.genie.proto.ExecutionResource other = (com.netflix.genie.proto.ExecutionResource) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getSetupFile()
.equals(other.getSetupFile())) return false;
if (!getConfigsList()
.equals(other.getConfigsList())) return false;
if (!getDependenciesList()
.equals(other.getDependenciesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + SETUP_FILE_FIELD_NUMBER;
hash = (53 * hash) + getSetupFile().hashCode();
if (getConfigsCount() > 0) {
hash = (37 * hash) + CONFIGS_FIELD_NUMBER;
hash = (53 * hash) + getConfigsList().hashCode();
}
if (getDependenciesCount() > 0) {
hash = (37 * hash) + DEPENDENCIES_FIELD_NUMBER;
hash = (53 * hash) + getDependenciesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.netflix.genie.proto.ExecutionResource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.netflix.genie.proto.ExecutionResource parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.netflix.genie.proto.ExecutionResource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.netflix.genie.proto.ExecutionResource parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.netflix.genie.proto.ExecutionResource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.netflix.genie.proto.ExecutionResource parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.netflix.genie.proto.ExecutionResource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.netflix.genie.proto.ExecutionResource 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 com.netflix.genie.proto.ExecutionResource parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.netflix.genie.proto.ExecutionResource 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 com.netflix.genie.proto.ExecutionResource parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.netflix.genie.proto.ExecutionResource 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(com.netflix.genie.proto.ExecutionResource 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 com.netflix.genie.proto.ExecutionResource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.netflix.genie.proto.ExecutionResource)
com.netflix.genie.proto.ExecutionResourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ExecutionResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ExecutionResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.netflix.genie.proto.ExecutionResource.class, com.netflix.genie.proto.ExecutionResource.Builder.class);
}
// Construct using com.netflix.genie.proto.ExecutionResource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
setupFile_ = "";
configs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
dependencies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ExecutionResource_descriptor;
}
@java.lang.Override
public com.netflix.genie.proto.ExecutionResource getDefaultInstanceForType() {
return com.netflix.genie.proto.ExecutionResource.getDefaultInstance();
}
@java.lang.Override
public com.netflix.genie.proto.ExecutionResource build() {
com.netflix.genie.proto.ExecutionResource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.netflix.genie.proto.ExecutionResource buildPartial() {
com.netflix.genie.proto.ExecutionResource result = new com.netflix.genie.proto.ExecutionResource(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.setupFile_ = setupFile_;
if (((bitField0_ & 0x00000001) != 0)) {
configs_ = configs_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.configs_ = configs_;
if (((bitField0_ & 0x00000002) != 0)) {
dependencies_ = dependencies_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.dependencies_ = dependencies_;
onBuilt();
return result;
}
@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 com.netflix.genie.proto.ExecutionResource) {
return mergeFrom((com.netflix.genie.proto.ExecutionResource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.netflix.genie.proto.ExecutionResource other) {
if (other == com.netflix.genie.proto.ExecutionResource.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getSetupFile().isEmpty()) {
setupFile_ = other.setupFile_;
onChanged();
}
if (!other.configs_.isEmpty()) {
if (configs_.isEmpty()) {
configs_ = other.configs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureConfigsIsMutable();
configs_.addAll(other.configs_);
}
onChanged();
}
if (!other.dependencies_.isEmpty()) {
if (dependencies_.isEmpty()) {
dependencies_ = other.dependencies_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDependenciesIsMutable();
dependencies_.addAll(other.dependencies_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.netflix.genie.proto.ExecutionResource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.netflix.genie.proto.ExecutionResource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object setupFile_ = "";
/**
* string setup_file = 2;
* @return The setupFile.
*/
public java.lang.String getSetupFile() {
java.lang.Object ref = setupFile_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
setupFile_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string setup_file = 2;
* @return The bytes for setupFile.
*/
public com.google.protobuf.ByteString
getSetupFileBytes() {
java.lang.Object ref = setupFile_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
setupFile_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string setup_file = 2;
* @param value The setupFile to set.
* @return This builder for chaining.
*/
public Builder setSetupFile(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
setupFile_ = value;
onChanged();
return this;
}
/**
* string setup_file = 2;
* @return This builder for chaining.
*/
public Builder clearSetupFile() {
setupFile_ = getDefaultInstance().getSetupFile();
onChanged();
return this;
}
/**
* string setup_file = 2;
* @param value The bytes for setupFile to set.
* @return This builder for chaining.
*/
public Builder setSetupFileBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
setupFile_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList configs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureConfigsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
configs_ = new com.google.protobuf.LazyStringArrayList(configs_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string configs = 3;
* @return A list containing the configs.
*/
public com.google.protobuf.ProtocolStringList
getConfigsList() {
return configs_.getUnmodifiableView();
}
/**
* repeated string configs = 3;
* @return The count of configs.
*/
public int getConfigsCount() {
return configs_.size();
}
/**
* repeated string configs = 3;
* @param index The index of the element to return.
* @return The configs at the given index.
*/
public java.lang.String getConfigs(int index) {
return configs_.get(index);
}
/**
* repeated string configs = 3;
* @param index The index of the value to return.
* @return The bytes of the configs at the given index.
*/
public com.google.protobuf.ByteString
getConfigsBytes(int index) {
return configs_.getByteString(index);
}
/**
* repeated string configs = 3;
* @param index The index to set the value at.
* @param value The configs to set.
* @return This builder for chaining.
*/
public Builder setConfigs(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigsIsMutable();
configs_.set(index, value);
onChanged();
return this;
}
/**
* repeated string configs = 3;
* @param value The configs to add.
* @return This builder for chaining.
*/
public Builder addConfigs(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigsIsMutable();
configs_.add(value);
onChanged();
return this;
}
/**
* repeated string configs = 3;
* @param values The configs to add.
* @return This builder for chaining.
*/
public Builder addAllConfigs(
java.lang.Iterable values) {
ensureConfigsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, configs_);
onChanged();
return this;
}
/**
* repeated string configs = 3;
* @return This builder for chaining.
*/
public Builder clearConfigs() {
configs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string configs = 3;
* @param value The bytes of the configs to add.
* @return This builder for chaining.
*/
public Builder addConfigsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureConfigsIsMutable();
configs_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList dependencies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDependenciesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
dependencies_ = new com.google.protobuf.LazyStringArrayList(dependencies_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated string dependencies = 4;
* @return A list containing the dependencies.
*/
public com.google.protobuf.ProtocolStringList
getDependenciesList() {
return dependencies_.getUnmodifiableView();
}
/**
* repeated string dependencies = 4;
* @return The count of dependencies.
*/
public int getDependenciesCount() {
return dependencies_.size();
}
/**
* repeated string dependencies = 4;
* @param index The index of the element to return.
* @return The dependencies at the given index.
*/
public java.lang.String getDependencies(int index) {
return dependencies_.get(index);
}
/**
* repeated string dependencies = 4;
* @param index The index of the value to return.
* @return The bytes of the dependencies at the given index.
*/
public com.google.protobuf.ByteString
getDependenciesBytes(int index) {
return dependencies_.getByteString(index);
}
/**
* repeated string dependencies = 4;
* @param index The index to set the value at.
* @param value The dependencies to set.
* @return This builder for chaining.
*/
public Builder setDependencies(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDependenciesIsMutable();
dependencies_.set(index, value);
onChanged();
return this;
}
/**
* repeated string dependencies = 4;
* @param value The dependencies to add.
* @return This builder for chaining.
*/
public Builder addDependencies(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDependenciesIsMutable();
dependencies_.add(value);
onChanged();
return this;
}
/**
* repeated string dependencies = 4;
* @param values The dependencies to add.
* @return This builder for chaining.
*/
public Builder addAllDependencies(
java.lang.Iterable values) {
ensureDependenciesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dependencies_);
onChanged();
return this;
}
/**
* repeated string dependencies = 4;
* @return This builder for chaining.
*/
public Builder clearDependencies() {
dependencies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* repeated string dependencies = 4;
* @param value The bytes of the dependencies to add.
* @return This builder for chaining.
*/
public Builder addDependenciesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureDependenciesIsMutable();
dependencies_.add(value);
onChanged();
return this;
}
@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:com.netflix.genie.proto.ExecutionResource)
}
// @@protoc_insertion_point(class_scope:com.netflix.genie.proto.ExecutionResource)
private static final com.netflix.genie.proto.ExecutionResource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.netflix.genie.proto.ExecutionResource();
}
public static com.netflix.genie.proto.ExecutionResource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecutionResource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecutionResource(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.netflix.genie.proto.ExecutionResource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}