com.zepben.protobuf.metadata.ServiceInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evolve-grpc Show documentation
Show all versions of evolve-grpc Show documentation
Protobuf and gRPC definitions for the evolve platform
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: zepben/protobuf/metadata/metadata-data.proto
package com.zepben.protobuf.metadata;
/**
* Protobuf type {@code zepben.protobuf.metadata.ServiceInfo}
*/
public final class ServiceInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.metadata.ServiceInfo)
ServiceInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ServiceInfo.newBuilder() to construct.
private ServiceInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ServiceInfo() {
title_ = "";
version_ = "";
dataSources_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ServiceInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.metadata.MetadataData.internal_static_zepben_protobuf_metadata_ServiceInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.metadata.MetadataData.internal_static_zepben_protobuf_metadata_ServiceInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.metadata.ServiceInfo.class, com.zepben.protobuf.metadata.ServiceInfo.Builder.class);
}
public static final int TITLE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object title_ = "";
/**
*
**
* The name of the service.
*
*
* string title = 1;
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
java.lang.Object ref = title_;
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();
title_ = s;
return s;
}
}
/**
*
**
* The name of the service.
*
*
* string title = 1;
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object version_ = "";
/**
*
**
* The version of the service.
*
*
* string version = 2;
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
*
**
* The version of the service.
*
*
* string version = 2;
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATASOURCES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List dataSources_;
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
@java.lang.Override
public java.util.List getDataSourcesList() {
return dataSources_;
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
@java.lang.Override
public java.util.List extends com.zepben.protobuf.metadata.DataSourceOrBuilder>
getDataSourcesOrBuilderList() {
return dataSources_;
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
@java.lang.Override
public int getDataSourcesCount() {
return dataSources_.size();
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
@java.lang.Override
public com.zepben.protobuf.metadata.DataSource getDataSources(int index) {
return dataSources_.get(index);
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
@java.lang.Override
public com.zepben.protobuf.metadata.DataSourceOrBuilder getDataSourcesOrBuilder(
int index) {
return dataSources_.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 {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
}
for (int i = 0; i < dataSources_.size(); i++) {
output.writeMessage(3, dataSources_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
}
for (int i = 0; i < dataSources_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, dataSources_.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 com.zepben.protobuf.metadata.ServiceInfo)) {
return super.equals(obj);
}
com.zepben.protobuf.metadata.ServiceInfo other = (com.zepben.protobuf.metadata.ServiceInfo) obj;
if (!getTitle()
.equals(other.getTitle())) return false;
if (!getVersion()
.equals(other.getVersion())) return false;
if (!getDataSourcesList()
.equals(other.getDataSourcesList())) 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();
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
if (getDataSourcesCount() > 0) {
hash = (37 * hash) + DATASOURCES_FIELD_NUMBER;
hash = (53 * hash) + getDataSourcesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.metadata.ServiceInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.metadata.ServiceInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.metadata.ServiceInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.metadata.ServiceInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.metadata.ServiceInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.metadata.ServiceInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.metadata.ServiceInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.metadata.ServiceInfo 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.zepben.protobuf.metadata.ServiceInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.zepben.protobuf.metadata.ServiceInfo 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.zepben.protobuf.metadata.ServiceInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.metadata.ServiceInfo 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.zepben.protobuf.metadata.ServiceInfo 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 zepben.protobuf.metadata.ServiceInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.metadata.ServiceInfo)
com.zepben.protobuf.metadata.ServiceInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.metadata.MetadataData.internal_static_zepben_protobuf_metadata_ServiceInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.metadata.MetadataData.internal_static_zepben_protobuf_metadata_ServiceInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.metadata.ServiceInfo.class, com.zepben.protobuf.metadata.ServiceInfo.Builder.class);
}
// Construct using com.zepben.protobuf.metadata.ServiceInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
title_ = "";
version_ = "";
if (dataSourcesBuilder_ == null) {
dataSources_ = java.util.Collections.emptyList();
} else {
dataSources_ = null;
dataSourcesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.metadata.MetadataData.internal_static_zepben_protobuf_metadata_ServiceInfo_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.metadata.ServiceInfo getDefaultInstanceForType() {
return com.zepben.protobuf.metadata.ServiceInfo.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.metadata.ServiceInfo build() {
com.zepben.protobuf.metadata.ServiceInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.metadata.ServiceInfo buildPartial() {
com.zepben.protobuf.metadata.ServiceInfo result = new com.zepben.protobuf.metadata.ServiceInfo(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.zepben.protobuf.metadata.ServiceInfo result) {
if (dataSourcesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
dataSources_ = java.util.Collections.unmodifiableList(dataSources_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.dataSources_ = dataSources_;
} else {
result.dataSources_ = dataSourcesBuilder_.build();
}
}
private void buildPartial0(com.zepben.protobuf.metadata.ServiceInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.title_ = title_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.version_ = version_;
}
}
@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.zepben.protobuf.metadata.ServiceInfo) {
return mergeFrom((com.zepben.protobuf.metadata.ServiceInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.metadata.ServiceInfo other) {
if (other == com.zepben.protobuf.metadata.ServiceInfo.getDefaultInstance()) return this;
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
bitField0_ |= 0x00000002;
onChanged();
}
if (dataSourcesBuilder_ == null) {
if (!other.dataSources_.isEmpty()) {
if (dataSources_.isEmpty()) {
dataSources_ = other.dataSources_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureDataSourcesIsMutable();
dataSources_.addAll(other.dataSources_);
}
onChanged();
}
} else {
if (!other.dataSources_.isEmpty()) {
if (dataSourcesBuilder_.isEmpty()) {
dataSourcesBuilder_.dispose();
dataSourcesBuilder_ = null;
dataSources_ = other.dataSources_;
bitField0_ = (bitField0_ & ~0x00000004);
dataSourcesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDataSourcesFieldBuilder() : null;
} else {
dataSourcesBuilder_.addAllMessages(other.dataSources_);
}
}
}
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: {
title_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
version_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
com.zepben.protobuf.metadata.DataSource m =
input.readMessage(
com.zepben.protobuf.metadata.DataSource.parser(),
extensionRegistry);
if (dataSourcesBuilder_ == null) {
ensureDataSourcesIsMutable();
dataSources_.add(m);
} else {
dataSourcesBuilder_.addMessage(m);
}
break;
} // case 26
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 java.lang.Object title_ = "";
/**
*
**
* The name of the service.
*
*
* string title = 1;
* @return The title.
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The name of the service.
*
*
* string title = 1;
* @return The bytes for title.
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The name of the service.
*
*
* string title = 1;
* @param value The title to set.
* @return This builder for chaining.
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
title_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The name of the service.
*
*
* string title = 1;
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
**
* The name of the service.
*
*
* string title = 1;
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
title_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
*
**
* The version of the service.
*
*
* string version = 2;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The version of the service.
*
*
* string version = 2;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The version of the service.
*
*
* string version = 2;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
version_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The version of the service.
*
*
* string version = 2;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* The version of the service.
*
*
* string version = 2;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
version_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.util.List dataSources_ =
java.util.Collections.emptyList();
private void ensureDataSourcesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
dataSources_ = new java.util.ArrayList(dataSources_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.metadata.DataSource, com.zepben.protobuf.metadata.DataSource.Builder, com.zepben.protobuf.metadata.DataSourceOrBuilder> dataSourcesBuilder_;
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public java.util.List getDataSourcesList() {
if (dataSourcesBuilder_ == null) {
return java.util.Collections.unmodifiableList(dataSources_);
} else {
return dataSourcesBuilder_.getMessageList();
}
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public int getDataSourcesCount() {
if (dataSourcesBuilder_ == null) {
return dataSources_.size();
} else {
return dataSourcesBuilder_.getCount();
}
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public com.zepben.protobuf.metadata.DataSource getDataSources(int index) {
if (dataSourcesBuilder_ == null) {
return dataSources_.get(index);
} else {
return dataSourcesBuilder_.getMessage(index);
}
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public Builder setDataSources(
int index, com.zepben.protobuf.metadata.DataSource value) {
if (dataSourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataSourcesIsMutable();
dataSources_.set(index, value);
onChanged();
} else {
dataSourcesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public Builder setDataSources(
int index, com.zepben.protobuf.metadata.DataSource.Builder builderForValue) {
if (dataSourcesBuilder_ == null) {
ensureDataSourcesIsMutable();
dataSources_.set(index, builderForValue.build());
onChanged();
} else {
dataSourcesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public Builder addDataSources(com.zepben.protobuf.metadata.DataSource value) {
if (dataSourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataSourcesIsMutable();
dataSources_.add(value);
onChanged();
} else {
dataSourcesBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public Builder addDataSources(
int index, com.zepben.protobuf.metadata.DataSource value) {
if (dataSourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataSourcesIsMutable();
dataSources_.add(index, value);
onChanged();
} else {
dataSourcesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public Builder addDataSources(
com.zepben.protobuf.metadata.DataSource.Builder builderForValue) {
if (dataSourcesBuilder_ == null) {
ensureDataSourcesIsMutable();
dataSources_.add(builderForValue.build());
onChanged();
} else {
dataSourcesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public Builder addDataSources(
int index, com.zepben.protobuf.metadata.DataSource.Builder builderForValue) {
if (dataSourcesBuilder_ == null) {
ensureDataSourcesIsMutable();
dataSources_.add(index, builderForValue.build());
onChanged();
} else {
dataSourcesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public Builder addAllDataSources(
java.lang.Iterable extends com.zepben.protobuf.metadata.DataSource> values) {
if (dataSourcesBuilder_ == null) {
ensureDataSourcesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dataSources_);
onChanged();
} else {
dataSourcesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public Builder clearDataSources() {
if (dataSourcesBuilder_ == null) {
dataSources_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
dataSourcesBuilder_.clear();
}
return this;
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public Builder removeDataSources(int index) {
if (dataSourcesBuilder_ == null) {
ensureDataSourcesIsMutable();
dataSources_.remove(index);
onChanged();
} else {
dataSourcesBuilder_.remove(index);
}
return this;
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public com.zepben.protobuf.metadata.DataSource.Builder getDataSourcesBuilder(
int index) {
return getDataSourcesFieldBuilder().getBuilder(index);
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public com.zepben.protobuf.metadata.DataSourceOrBuilder getDataSourcesOrBuilder(
int index) {
if (dataSourcesBuilder_ == null) {
return dataSources_.get(index); } else {
return dataSourcesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public java.util.List extends com.zepben.protobuf.metadata.DataSourceOrBuilder>
getDataSourcesOrBuilderList() {
if (dataSourcesBuilder_ != null) {
return dataSourcesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dataSources_);
}
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public com.zepben.protobuf.metadata.DataSource.Builder addDataSourcesBuilder() {
return getDataSourcesFieldBuilder().addBuilder(
com.zepben.protobuf.metadata.DataSource.getDefaultInstance());
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public com.zepben.protobuf.metadata.DataSource.Builder addDataSourcesBuilder(
int index) {
return getDataSourcesFieldBuilder().addBuilder(
index, com.zepben.protobuf.metadata.DataSource.getDefaultInstance());
}
/**
*
**
* The DataSources that support this service.
*
*
* repeated .zepben.protobuf.metadata.DataSource dataSources = 3;
*/
public java.util.List
getDataSourcesBuilderList() {
return getDataSourcesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.metadata.DataSource, com.zepben.protobuf.metadata.DataSource.Builder, com.zepben.protobuf.metadata.DataSourceOrBuilder>
getDataSourcesFieldBuilder() {
if (dataSourcesBuilder_ == null) {
dataSourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.zepben.protobuf.metadata.DataSource, com.zepben.protobuf.metadata.DataSource.Builder, com.zepben.protobuf.metadata.DataSourceOrBuilder>(
dataSources_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
dataSources_ = null;
}
return dataSourcesBuilder_;
}
@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:zepben.protobuf.metadata.ServiceInfo)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.metadata.ServiceInfo)
private static final com.zepben.protobuf.metadata.ServiceInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.metadata.ServiceInfo();
}
public static com.zepben.protobuf.metadata.ServiceInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ServiceInfo 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 com.zepben.protobuf.metadata.ServiceInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}