
org.yamcs.protobuf.UpdateBandRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-api Show documentation
Show all versions of yamcs-api Show documentation
Used by external clients to communicate with Yamcs
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yamcs/protobuf/timeline/timeline.proto
package org.yamcs.protobuf;
/**
* Protobuf type {@code yamcs.protobuf.timeline.UpdateBandRequest}
*/
public final class UpdateBandRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.timeline.UpdateBandRequest)
UpdateBandRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateBandRequest.newBuilder() to construct.
private UpdateBandRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateBandRequest() {
instance_ = "";
id_ = "";
name_ = "";
description_ = "";
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
source_ = "";
filters_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateBandRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateBandRequest(
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: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
instance_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
id_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
name_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
description_ = bs;
break;
}
case 40: {
bitField0_ |= 0x00000010;
shared_ = input.readBool();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
tags_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000020;
}
tags_.add(bs);
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
properties_ = com.google.protobuf.MapField.newMapField(
PropertiesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000040;
}
com.google.protobuf.MapEntry
properties__ = input.readMessage(
PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
properties_.getMutableMap().put(
properties__.getKey(), properties__.getValue());
break;
}
case 66: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
source_ = bs;
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000100) != 0)) {
filters_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
filters_.add(
input.readMessage(org.yamcs.protobuf.ItemFilter.PARSER, extensionRegistry));
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_ & 0x00000020) != 0)) {
tags_ = tags_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000100) != 0)) {
filters_ = java.util.Collections.unmodifiableList(filters_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_UpdateBandRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 7:
return internalGetProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_UpdateBandRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.UpdateBandRequest.class, org.yamcs.protobuf.UpdateBandRequest.Builder.class);
}
private int bitField0_;
public static final int INSTANCE_FIELD_NUMBER = 1;
private volatile java.lang.Object instance_;
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return Whether the instance field is set.
*/
@java.lang.Override
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return The instance.
*/
@java.lang.Override
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
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();
if (bs.isValidUtf8()) {
instance_ = s;
}
return s;
}
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return The bytes for instance.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 2;
private volatile java.lang.Object id_;
/**
*
* Band identifier
*
*
* optional string id = 2;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Band identifier
*
*
* optional string id = 2;
* @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();
if (bs.isValidUtf8()) {
id_ = s;
}
return s;
}
}
/**
*
* Band identifier
*
*
* optional string id = 2;
* @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 NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
*
* Band name
*
*
* optional string name = 3;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Band name
*
*
* optional string name = 3;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* Band name
*
*
* optional string name = 3;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 4;
private volatile java.lang.Object description_;
/**
*
* Band description
*
*
* optional string description = 4;
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Band description
*
*
* optional string description = 4;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
if (bs.isValidUtf8()) {
description_ = s;
}
return s;
}
}
/**
*
* Band description
*
*
* optional string description = 4;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHARED_FIELD_NUMBER = 5;
private boolean shared_;
/**
*
* If true, all users have access to this band, otherwise only the user who has created it
*
*
* optional bool shared = 5;
* @return Whether the shared field is set.
*/
@java.lang.Override
public boolean hasShared() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* If true, all users have access to this band, otherwise only the user who has created it
*
*
* optional bool shared = 5;
* @return The shared.
*/
@java.lang.Override
public boolean getShared() {
return shared_;
}
public static final int TAGS_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList tags_;
/**
*
* Items containing these tags will be part of the timeline
*
*
* repeated string tags = 6;
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
/**
*
* Items containing these tags will be part of the timeline
*
*
* repeated string tags = 6;
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
* Items containing these tags will be part of the timeline
*
*
* repeated string tags = 6;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
* Items containing these tags will be part of the timeline
*
*
* repeated string tags = 6;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
public static final int PROPERTIES_FIELD_NUMBER = 7;
private static final class PropertiesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_UpdateBandRequest_PropertiesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> properties_;
private com.google.protobuf.MapField
internalGetProperties() {
if (properties_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PropertiesDefaultEntryHolder.defaultEntry);
}
return properties_;
}
public int getPropertiesCount() {
return internalGetProperties().getMap().size();
}
/**
*
* Additional properties used by yamcs-web to render this band
*
*
* map<string, string> properties = 7;
*/
@java.lang.Override
public boolean containsProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetProperties().getMap().containsKey(key);
}
/**
* Use {@link #getPropertiesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getProperties() {
return getPropertiesMap();
}
/**
*
* Additional properties used by yamcs-web to render this band
*
*
* map<string, string> properties = 7;
*/
@java.lang.Override
public java.util.Map getPropertiesMap() {
return internalGetProperties().getMap();
}
/**
*
* Additional properties used by yamcs-web to render this band
*
*
* map<string, string> properties = 7;
*/
@java.lang.Override
public java.lang.String getPropertiesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetProperties().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Additional properties used by yamcs-web to render this band
*
*
* map<string, string> properties = 7;
*/
@java.lang.Override
public java.lang.String getPropertiesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetProperties().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int SOURCE_FIELD_NUMBER = 8;
private volatile java.lang.Object source_;
/**
*
* Where the items shown on this band come from
*
*
* optional string source = 8;
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Where the items shown on this band come from
*
*
* optional string source = 8;
* @return The source.
*/
@java.lang.Override
public java.lang.String getSource() {
java.lang.Object ref = source_;
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();
if (bs.isValidUtf8()) {
source_ = s;
}
return s;
}
}
/**
*
* Where the items shown on this band come from
*
*
* optional string source = 8;
* @return The bytes for source.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILTERS_FIELD_NUMBER = 9;
private java.util.List filters_;
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
@java.lang.Override
public java.util.List getFiltersList() {
return filters_;
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.ItemFilterOrBuilder>
getFiltersOrBuilderList() {
return filters_;
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
@java.lang.Override
public int getFiltersCount() {
return filters_.size();
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
@java.lang.Override
public org.yamcs.protobuf.ItemFilter getFilters(int index) {
return filters_.get(index);
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
@java.lang.Override
public org.yamcs.protobuf.ItemFilterOrBuilder getFiltersOrBuilder(
int index) {
return filters_.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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(5, shared_);
}
for (int i = 0; i < tags_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tags_.getRaw(i));
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetProperties(),
PropertiesDefaultEntryHolder.defaultEntry,
7);
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, source_);
}
for (int i = 0; i < filters_.size(); i++) {
output.writeMessage(9, filters_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instance_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, shared_);
}
{
int dataSize = 0;
for (int i = 0; i < tags_.size(); i++) {
dataSize += computeStringSizeNoTag(tags_.getRaw(i));
}
size += dataSize;
size += 1 * getTagsList().size();
}
for (java.util.Map.Entry entry
: internalGetProperties().getMap().entrySet()) {
com.google.protobuf.MapEntry
properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, properties__);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, source_);
}
for (int i = 0; i < filters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, filters_.get(i));
}
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 org.yamcs.protobuf.UpdateBandRequest)) {
return super.equals(obj);
}
org.yamcs.protobuf.UpdateBandRequest other = (org.yamcs.protobuf.UpdateBandRequest) obj;
if (hasInstance() != other.hasInstance()) return false;
if (hasInstance()) {
if (!getInstance()
.equals(other.getInstance())) return false;
}
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (!getId()
.equals(other.getId())) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) return false;
}
if (hasShared() != other.hasShared()) return false;
if (hasShared()) {
if (getShared()
!= other.getShared()) return false;
}
if (!getTagsList()
.equals(other.getTagsList())) return false;
if (!internalGetProperties().equals(
other.internalGetProperties())) return false;
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource()
.equals(other.getSource())) return false;
}
if (!getFiltersList()
.equals(other.getFiltersList())) 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();
if (hasInstance()) {
hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
hash = (53 * hash) + getInstance().hashCode();
}
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
}
if (hasShared()) {
hash = (37 * hash) + SHARED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getShared());
}
if (getTagsCount() > 0) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTagsList().hashCode();
}
if (!internalGetProperties().getMap().isEmpty()) {
hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + internalGetProperties().hashCode();
}
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
if (getFiltersCount() > 0) {
hash = (37 * hash) + FILTERS_FIELD_NUMBER;
hash = (53 * hash) + getFiltersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.UpdateBandRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.UpdateBandRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.UpdateBandRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.UpdateBandRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.UpdateBandRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.UpdateBandRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.UpdateBandRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.UpdateBandRequest 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 org.yamcs.protobuf.UpdateBandRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.UpdateBandRequest 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 org.yamcs.protobuf.UpdateBandRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.UpdateBandRequest 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(org.yamcs.protobuf.UpdateBandRequest 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 yamcs.protobuf.timeline.UpdateBandRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.timeline.UpdateBandRequest)
org.yamcs.protobuf.UpdateBandRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_UpdateBandRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 7:
return internalGetProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 7:
return internalGetMutableProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_UpdateBandRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.UpdateBandRequest.class, org.yamcs.protobuf.UpdateBandRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.UpdateBandRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFiltersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
instance_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
id_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
description_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
shared_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
internalGetMutableProperties().clear();
source_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
if (filtersBuilder_ == null) {
filters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
} else {
filtersBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_UpdateBandRequest_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.UpdateBandRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.UpdateBandRequest.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.UpdateBandRequest build() {
org.yamcs.protobuf.UpdateBandRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.UpdateBandRequest buildPartial() {
org.yamcs.protobuf.UpdateBandRequest result = new org.yamcs.protobuf.UpdateBandRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.instance_ = instance_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.description_ = description_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.shared_ = shared_;
to_bitField0_ |= 0x00000010;
}
if (((bitField0_ & 0x00000020) != 0)) {
tags_ = tags_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.tags_ = tags_;
result.properties_ = internalGetProperties();
result.properties_.makeImmutable();
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.source_ = source_;
if (filtersBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)) {
filters_ = java.util.Collections.unmodifiableList(filters_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.filters_ = filters_;
} else {
result.filters_ = filtersBuilder_.build();
}
result.bitField0_ = to_bitField0_;
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 org.yamcs.protobuf.UpdateBandRequest) {
return mergeFrom((org.yamcs.protobuf.UpdateBandRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.UpdateBandRequest other) {
if (other == org.yamcs.protobuf.UpdateBandRequest.getDefaultInstance()) return this;
if (other.hasInstance()) {
bitField0_ |= 0x00000001;
instance_ = other.instance_;
onChanged();
}
if (other.hasId()) {
bitField0_ |= 0x00000002;
id_ = other.id_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000004;
name_ = other.name_;
onChanged();
}
if (other.hasDescription()) {
bitField0_ |= 0x00000008;
description_ = other.description_;
onChanged();
}
if (other.hasShared()) {
setShared(other.getShared());
}
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
internalGetMutableProperties().mergeFrom(
other.internalGetProperties());
if (other.hasSource()) {
bitField0_ |= 0x00000080;
source_ = other.source_;
onChanged();
}
if (filtersBuilder_ == null) {
if (!other.filters_.isEmpty()) {
if (filters_.isEmpty()) {
filters_ = other.filters_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureFiltersIsMutable();
filters_.addAll(other.filters_);
}
onChanged();
}
} else {
if (!other.filters_.isEmpty()) {
if (filtersBuilder_.isEmpty()) {
filtersBuilder_.dispose();
filtersBuilder_ = null;
filters_ = other.filters_;
bitField0_ = (bitField0_ & ~0x00000100);
filtersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFiltersFieldBuilder() : null;
} else {
filtersBuilder_.addAllMessages(other.filters_);
}
}
}
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 {
org.yamcs.protobuf.UpdateBandRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.UpdateBandRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instance_ = "";
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return Whether the instance field is set.
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return The instance.
*/
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
instance_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return The bytes for instance.
*/
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @param value The instance to set.
* @return This builder for chaining.
*/
public Builder setInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return This builder for chaining.
*/
public Builder clearInstance() {
bitField0_ = (bitField0_ & ~0x00000001);
instance_ = getDefaultInstance().getInstance();
onChanged();
return this;
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @param value The bytes for instance to set.
* @return This builder for chaining.
*/
public Builder setInstanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
private java.lang.Object id_ = "";
/**
*
* Band identifier
*
*
* optional string id = 2;
* @return Whether the id field is set.
*/
public boolean hasId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Band identifier
*
*
* optional string id = 2;
* @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();
if (bs.isValidUtf8()) {
id_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Band identifier
*
*
* optional string id = 2;
* @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;
}
}
/**
*
* Band identifier
*
*
* optional string id = 2;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
id_ = value;
onChanged();
return this;
}
/**
*
* Band identifier
*
*
* optional string id = 2;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000002);
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* Band identifier
*
*
* optional string id = 2;
* @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();
}
bitField0_ |= 0x00000002;
id_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Band name
*
*
* optional string name = 3;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Band name
*
*
* optional string name = 3;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Band name
*
*
* optional string name = 3;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Band name
*
*
* optional string name = 3;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
/**
*
* Band name
*
*
* optional string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000004);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Band name
*
*
* optional string name = 3;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Band description
*
*
* optional string description = 4;
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Band description
*
*
* optional string description = 4;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
description_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Band description
*
*
* optional string description = 4;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Band description
*
*
* optional string description = 4;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
description_ = value;
onChanged();
return this;
}
/**
*
* Band description
*
*
* optional string description = 4;
* @return This builder for chaining.
*/
public Builder clearDescription() {
bitField0_ = (bitField0_ & ~0x00000008);
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Band description
*
*
* optional string description = 4;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
description_ = value;
onChanged();
return this;
}
private boolean shared_ ;
/**
*
* If true, all users have access to this band, otherwise only the user who has created it
*
*
* optional bool shared = 5;
* @return Whether the shared field is set.
*/
@java.lang.Override
public boolean hasShared() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* If true, all users have access to this band, otherwise only the user who has created it
*
*
* optional bool shared = 5;
* @return The shared.
*/
@java.lang.Override
public boolean getShared() {
return shared_;
}
/**
*
* If true, all users have access to this band, otherwise only the user who has created it
*
*
* optional bool shared = 5;
* @param value The shared to set.
* @return This builder for chaining.
*/
public Builder setShared(boolean value) {
bitField0_ |= 0x00000010;
shared_ = value;
onChanged();
return this;
}
/**
*
* If true, all users have access to this band, otherwise only the user who has created it
*
*
* optional bool shared = 5;
* @return This builder for chaining.
*/
public Builder clearShared() {
bitField0_ = (bitField0_ & ~0x00000010);
shared_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTagsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
bitField0_ |= 0x00000020;
}
}
/**
*
* Items containing these tags will be part of the timeline
*
*
* repeated string tags = 6;
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_.getUnmodifiableView();
}
/**
*
* Items containing these tags will be part of the timeline
*
*
* repeated string tags = 6;
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
*
* Items containing these tags will be part of the timeline
*
*
* repeated string tags = 6;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
*
* Items containing these tags will be part of the timeline
*
*
* repeated string tags = 6;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
*
* Items containing these tags will be part of the timeline
*
*
* repeated string tags = 6;
* @param index The index to set the value at.
* @param value The tags to set.
* @return This builder for chaining.
*/
public Builder setTags(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
return this;
}
/**
*
* Items containing these tags will be part of the timeline
*
*
* repeated string tags = 6;
* @param value The tags to add.
* @return This builder for chaining.
*/
public Builder addTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
/**
*
* Items containing these tags will be part of the timeline
*
*
* repeated string tags = 6;
* @param values The tags to add.
* @return This builder for chaining.
*/
public Builder addAllTags(
java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
onChanged();
return this;
}
/**
*
* Items containing these tags will be part of the timeline
*
*
* repeated string tags = 6;
* @return This builder for chaining.
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* Items containing these tags will be part of the timeline
*
*
* repeated string tags = 6;
* @param value The bytes of the tags to add.
* @return This builder for chaining.
*/
public Builder addTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> properties_;
private com.google.protobuf.MapField
internalGetProperties() {
if (properties_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PropertiesDefaultEntryHolder.defaultEntry);
}
return properties_;
}
private com.google.protobuf.MapField
internalGetMutableProperties() {
onChanged();;
if (properties_ == null) {
properties_ = com.google.protobuf.MapField.newMapField(
PropertiesDefaultEntryHolder.defaultEntry);
}
if (!properties_.isMutable()) {
properties_ = properties_.copy();
}
return properties_;
}
public int getPropertiesCount() {
return internalGetProperties().getMap().size();
}
/**
*
* Additional properties used by yamcs-web to render this band
*
*
* map<string, string> properties = 7;
*/
@java.lang.Override
public boolean containsProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetProperties().getMap().containsKey(key);
}
/**
* Use {@link #getPropertiesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getProperties() {
return getPropertiesMap();
}
/**
*
* Additional properties used by yamcs-web to render this band
*
*
* map<string, string> properties = 7;
*/
@java.lang.Override
public java.util.Map getPropertiesMap() {
return internalGetProperties().getMap();
}
/**
*
* Additional properties used by yamcs-web to render this band
*
*
* map<string, string> properties = 7;
*/
@java.lang.Override
public java.lang.String getPropertiesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetProperties().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Additional properties used by yamcs-web to render this band
*
*
* map<string, string> properties = 7;
*/
@java.lang.Override
public java.lang.String getPropertiesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetProperties().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearProperties() {
internalGetMutableProperties().getMutableMap()
.clear();
return this;
}
/**
*
* Additional properties used by yamcs-web to render this band
*
*
* map<string, string> properties = 7;
*/
public Builder removeProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableProperties().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableProperties() {
return internalGetMutableProperties().getMutableMap();
}
/**
*
* Additional properties used by yamcs-web to render this band
*
*
* map<string, string> properties = 7;
*/
public Builder putProperties(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableProperties().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Additional properties used by yamcs-web to render this band
*
*
* map<string, string> properties = 7;
*/
public Builder putAllProperties(
java.util.Map values) {
internalGetMutableProperties().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object source_ = "";
/**
*
* Where the items shown on this band come from
*
*
* optional string source = 8;
* @return Whether the source field is set.
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Where the items shown on this band come from
*
*
* optional string source = 8;
* @return The source.
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
source_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Where the items shown on this band come from
*
*
* optional string source = 8;
* @return The bytes for source.
*/
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Where the items shown on this band come from
*
*
* optional string source = 8;
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
source_ = value;
onChanged();
return this;
}
/**
*
* Where the items shown on this band come from
*
*
* optional string source = 8;
* @return This builder for chaining.
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000080);
source_ = getDefaultInstance().getSource();
onChanged();
return this;
}
/**
*
* Where the items shown on this band come from
*
*
* optional string source = 8;
* @param value The bytes for source to set.
* @return This builder for chaining.
*/
public Builder setSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
source_ = value;
onChanged();
return this;
}
private java.util.List filters_ =
java.util.Collections.emptyList();
private void ensureFiltersIsMutable() {
if (!((bitField0_ & 0x00000100) != 0)) {
filters_ = new java.util.ArrayList(filters_);
bitField0_ |= 0x00000100;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.ItemFilter, org.yamcs.protobuf.ItemFilter.Builder, org.yamcs.protobuf.ItemFilterOrBuilder> filtersBuilder_;
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public java.util.List getFiltersList() {
if (filtersBuilder_ == null) {
return java.util.Collections.unmodifiableList(filters_);
} else {
return filtersBuilder_.getMessageList();
}
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public int getFiltersCount() {
if (filtersBuilder_ == null) {
return filters_.size();
} else {
return filtersBuilder_.getCount();
}
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public org.yamcs.protobuf.ItemFilter getFilters(int index) {
if (filtersBuilder_ == null) {
return filters_.get(index);
} else {
return filtersBuilder_.getMessage(index);
}
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public Builder setFilters(
int index, org.yamcs.protobuf.ItemFilter value) {
if (filtersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFiltersIsMutable();
filters_.set(index, value);
onChanged();
} else {
filtersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public Builder setFilters(
int index, org.yamcs.protobuf.ItemFilter.Builder builderForValue) {
if (filtersBuilder_ == null) {
ensureFiltersIsMutable();
filters_.set(index, builderForValue.build());
onChanged();
} else {
filtersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public Builder addFilters(org.yamcs.protobuf.ItemFilter value) {
if (filtersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFiltersIsMutable();
filters_.add(value);
onChanged();
} else {
filtersBuilder_.addMessage(value);
}
return this;
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public Builder addFilters(
int index, org.yamcs.protobuf.ItemFilter value) {
if (filtersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFiltersIsMutable();
filters_.add(index, value);
onChanged();
} else {
filtersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public Builder addFilters(
org.yamcs.protobuf.ItemFilter.Builder builderForValue) {
if (filtersBuilder_ == null) {
ensureFiltersIsMutable();
filters_.add(builderForValue.build());
onChanged();
} else {
filtersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public Builder addFilters(
int index, org.yamcs.protobuf.ItemFilter.Builder builderForValue) {
if (filtersBuilder_ == null) {
ensureFiltersIsMutable();
filters_.add(index, builderForValue.build());
onChanged();
} else {
filtersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public Builder addAllFilters(
java.lang.Iterable extends org.yamcs.protobuf.ItemFilter> values) {
if (filtersBuilder_ == null) {
ensureFiltersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, filters_);
onChanged();
} else {
filtersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public Builder clearFilters() {
if (filtersBuilder_ == null) {
filters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
filtersBuilder_.clear();
}
return this;
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public Builder removeFilters(int index) {
if (filtersBuilder_ == null) {
ensureFiltersIsMutable();
filters_.remove(index);
onChanged();
} else {
filtersBuilder_.remove(index);
}
return this;
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public org.yamcs.protobuf.ItemFilter.Builder getFiltersBuilder(
int index) {
return getFiltersFieldBuilder().getBuilder(index);
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public org.yamcs.protobuf.ItemFilterOrBuilder getFiltersOrBuilder(
int index) {
if (filtersBuilder_ == null) {
return filters_.get(index); } else {
return filtersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public java.util.List extends org.yamcs.protobuf.ItemFilterOrBuilder>
getFiltersOrBuilderList() {
if (filtersBuilder_ != null) {
return filtersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(filters_);
}
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public org.yamcs.protobuf.ItemFilter.Builder addFiltersBuilder() {
return getFiltersFieldBuilder().addBuilder(
org.yamcs.protobuf.ItemFilter.getDefaultInstance());
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public org.yamcs.protobuf.ItemFilter.Builder addFiltersBuilder(
int index) {
return getFiltersFieldBuilder().addBuilder(
index, org.yamcs.protobuf.ItemFilter.getDefaultInstance());
}
/**
*
* Filters to apply when retrieving items
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 9;
*/
public java.util.List
getFiltersBuilderList() {
return getFiltersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.ItemFilter, org.yamcs.protobuf.ItemFilter.Builder, org.yamcs.protobuf.ItemFilterOrBuilder>
getFiltersFieldBuilder() {
if (filtersBuilder_ == null) {
filtersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.ItemFilter, org.yamcs.protobuf.ItemFilter.Builder, org.yamcs.protobuf.ItemFilterOrBuilder>(
filters_,
((bitField0_ & 0x00000100) != 0),
getParentForChildren(),
isClean());
filters_ = null;
}
return filtersBuilder_;
}
@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:yamcs.protobuf.timeline.UpdateBandRequest)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.timeline.UpdateBandRequest)
private static final org.yamcs.protobuf.UpdateBandRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.UpdateBandRequest();
}
public static org.yamcs.protobuf.UpdateBandRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateBandRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateBandRequest(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 org.yamcs.protobuf.UpdateBandRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy