text:
YUI.add('gallery-clipboard', function(Y) {

    /**
     * The ClipBoard class is desinged to be a node plugin and a wrapper over the flash movie
     * to copy text contents to the OS clipboard. The class will place the flash movie below the given
     * node so that a user action can trigger the copy of contents to the OS clip board using
     * Flash's System.setClipboard method. Starting from flash 10, the clipboard can be set only
     * off a user initiated event. So the JS class shall only set the string to be copied and will
     * allow the flash movie's event to capture the user action and set the clipboard contents
     * @class ClipBoard
     * @constructor
     * @extends Y.Plugin.Base
     */
    function ClipBoard(config) {
        ClipBoard.superclass.constructor.apply(this, arguments);
    }

    /**
     * Template for embedding the flash movie in the object tag. Mainly for IE browsers
     * @property OBJECT_TEMPLATE
     * @static
     * @type String
     * @private
     */
    var OBJECT_TEMPLATE     = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'+
                        ' codebase="{__PROTOCOL__}download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" '+
                        'width="{__WIDTH__}" height="{__HEIGHT__}" id="{__MOVIEID__}" '+
                        'align="middle"><param name="allowScriptAccess" value="always" embed-type="menu"/>'+
                        '<param name="allowFullScreen" value="false" />'+
                        '<param name="movie" value="{__MOVIEPATH__}" />'+
                        '<param name="loop" value="false" /><param name="menu" value="false" />'+
                        '<param name="quality" value="best" /><param name="bgcolor" value="#ffffff" />'+
                        '<param name="flashvars" value="{__FLASHVARS__}"/><param name="wmode" '+
                        'value="transparent"/></object>',
    /**
     * Template for embedding the flash movie in the embed tag. For most other browsers
     * @property EMBED_TEMPLATE
     * @static
     * @type String
     * @private
     */
        EMBED_TEMPLATE      = '<embed id="{__MOVIEID__}" src="{__MOVIEPATH__}" loop="false" '+
                        'menu="false" quality="best" bgcolor="#ffffff" width="{__WIDTH__}" '+
                        'height="{__HEIGHT__}" name="{__MOVIEID__}" align="middle" '+
                        'allowScriptAccess="always" allowFullScreen="false" '+
                        'type="application/x-shockwave-flash" '+
                        'pluginspage="http://www.macromedia.com/go/getflashplayer" '+
                        'flashvars="{__FLASHVARS__}" wmode="transparent" embed-type="menu" />',
    /**
     * Name of the flash movie
     * @property SWF_MOVIE_NAME
     * @private
     * @static
     * @type String
     */
        SWF_MOVIE_NAME     = "ClipBoardCopy.swf?r=1",
        COMPONENT_NAME     = "clipboard",
        COMPONENT_NS       = "cp",
        CALLBACK_GLOBAL    = { obj : window, name : ""},
        GLOBAL_HANDLER     = "ClipboardInterfaceFn",
        PROTOCOL           = window.location.href.match(/^https/i) ? 'https://' : 'http://',
        FLASHVARS_TEMPLATE = "id={__MOVIEID__}&ns={__NS__}&width={__WIDTH__}&height={__HEIGHT__}"+
                             "&fn={__FN__}&domain={__DOMAIN__}",
        OFFSCREEN_LEFT     = "-2000px",
        FLASHMOVIE_LOADED  = false,
        /* Helpers */
        flashEventCache    = {},
        loadObj            = {},
        isEmpty            = function(s) {
            if(Y.Lang.isString(s) || Y.Lang.isArray(s))
                return (s.length == 0)?true:false;
            return false;
        },
        isUndefined        = Y.Lang.isUndefined,
        isNull             = Y.Lang.isNull,
        isNumber           = Y.Lang.isNumber,
        isString           = Y.Lang.isString,
        canBeRemoved       = function(e) {
            var cache = flashEventCache;
            for(var id in cache)
                for(var ev in cache[id]) {

                    if(ev === e)
                        return false;
                }
            return true;
        },
        unsetCache        = function(id, ev) {
            delete flashEventCache[id][ev];
        };

    ClipBoard.NAME = COMPONENT_NAME;
    ClipBoard.NS   = COMPONENT_NAME;
    ClipBoard.setCallBackGlobal = function( v ) {
        var tmp = [],
            n   = 0, i = 0,
            obj = window, name = '';

        if ( isString(v) && v !== "window" ) {
            tmp = ( v.indexOf(".") >= 0 )?v.split(".") : [v];
            n   = tmp.length;
            for (;i<n;i++) {
                if ( obj[tmp[i]] ) {
                    obj = obj[tmp[i]];
                    name = name + (( i == 0 )?tmp[i]:"."+tmp[i]);
                }
            }
        }
        CALLBACK_GLOBAL = { "obj" : obj, "name" : name };
        return CALLBACK_GLOBAL;
    };
    ClipBoard.ATTRS = {
        /**
         * The page attribute represents the topmost node where the flash movie will be embeded only
         * once. This is needed so that even if there are multiple copy nodes, we will use only a
         * one flash movie
         * my default, the page attribute is set to the page body
         * @attribute page
         * @type Node
         */
        page : {
            value : Y.one("body")
        },
        /**
         * The identifier for the flash movie
         * @attribute id
         * @type String
         */
        id : {
            value : ''
        },
        /**
         * The path to the swf movie. The movie might be set up on various domain. The movie path
         * can be a URL or a file path
         * @attribute moviepath
         * @type String
         */
        moviepath : {
            value : ''
        },
        /**
         * If there are custom global name space that the flash callback function has to be called on,
         * that can be passed here
         * @attribute global
         * @type Object
         */
        global : {
            readOnly : true,
            getter : function() {
                return { obj : CALLBACK_GLOBAL.obj, name : CALLBACK_GLOBAL.name };
            }
        },
        /**
         * The domain value that should be allowed in the flash movie
         * @attribute domain
         * @type String
         */
        domain : {
            value : "*.yahoo.com"
        },
        /**
         * The movieloaded attribute will be set for the given node when the flash movie is ready
         * @attribute movieloaded
         * @type Boolean
         */
        movieloaded : {
            value : false
        }
    };

    Y.extend(ClipBoard, Y.Plugin.Base, {
        /**
         * Initializer function to set up the flash movie if not already present on the "page",
         * setup the flash - js interface, and align the movie to the host node
         * @method initializer
         * @param config {Object} the configuration attributes
         * @return {Void}
         */
        initializer: function(config) {
            var _this  = this,
                global = _this.get("global"),
                fn     = !isEmpty(global["name"])?global["name"]+"."+GLOBAL_HANDLER:GLOBAL_HANDLER,
                dimen;
            if(isEmpty(_this.get("id")))
                this.set("id",Y.guid(COMPONENT_NAME+"_"));

            _this._host       = _this.get("host");
            _this._movie      = null;

            if(isEmpty(_this._host.get("id")))
                _this._host.set("id", _this.get("id"));
            else
                _this.set("id", _this._host.get("id"));

            dimen  = _this.getHostDimensions();

            if ( isUndefined(global["obj"][GLOBAL_HANDLER]) ) {
                global["obj"][GLOBAL_HANDLER]  = _this._flashInterface;
            }

            _this._host.publish(COMPONENT_NAME+":"+"load", {
                emitFacade : true,
                preventable : true,
                context     : _this._host,
                bubbles     : true,
                fireOnce    : true
            });

            Y.on(COMPONENT_NAME+":"+"load", function(a) {
                FLASHMOVIE_LOADED = true;
                loadObj.params = a;
                _this._host.fire(COMPONENT_NAME+":"+"load", a);
                _this.set("movieloaded", true);
            });

            _this._movie = _this._getFlashMovieObj(dimen, fn);

            _this._alignMovie(dimen, _this._host);

            _this.hide();
            /**
             * The setAttribute method is trapped by the plugin and if the value set is copy, then we
             * show the flash movie and then set the value to be copied. Now, when the user will
             * initiate the event on the flash movie, we will set the contents of the keyboard
             * @method setAttribute
             * @private
             * @param type {String} The type of attribute to be set
             * @param value {String} The attribute value to be set
             */
            _this.beforeHostMethod("setAttribute", function(type, value) {
                if(type === "copy") {
                    _this.copy(value);
                    _this.show();
                    _this.focus()
                }
            });
            /* we hook on to the host "on" method so that we can fire the clipboard:load event
              only when the user requests for it . This is a hack needed because the flash movie
              will fire the load event only once for the entire lifecycle of the page*/
            _this.afterHostMethod("on", function(ev) {
                if (ev === COMPONENT_NAME+":load" && FLASHMOVIE_LOADED) {
                    _this._host.fire(COMPONENT_NAME+":"+"load", loadObj.params);
                    _this.set("movieloaded", true);
                }
            });

            /* @TODO look at over-writing the 'on' and 'detach' methods for "clipboar:" namespaced
              events */
        },
        /**
         * Destructor method to clean up the flash movie clipboard
         * @TODO Not calling this destructor because its a node plugin and every time the node is destroyed
         * it will destroy the clipboard, need to check this further
         * @method _destructor
         * @private
         */
        _destructor : function() {
            var _this = this;
            Y.log("Destructor called for "+ _this._host.get("id"));
            _this.get("boundingBox").destroy(true);
            FLASHMOVIE_LOADED = false;
            loadObj = {};
            flashEventCache = {};
        },
        /**
         * Method to get the dimensions of the host node so that the flash movie can be
         * painted across the node.
         * @method getHostDimensions
         * @return {Object} { w : width, h : height, xy : NodeXY}
         */
        getHostDimensions : function() {
            var _this  = this,
                host   = _this._host,
                wh     = _this._getNodeSize(host);
            return {
                w  : parseInt(wh[0], 10),
                h  : parseInt(wh[1], 10),
                xy : host.getXY()
            };
        },
        /**
         * Method to align the flash movie on top of the node so that it can trap the user events
         * @method show
         * @return {Void}
         */
        show : function() {
            var _this = this;
            _this._alignMovie(_this.getHostDimensions());
        },
        /**
         * Alias method to the flash movie focus method
         * @method focus
         * @return {Void}
         */
        focus : function() {
            var m = this._movie;
            if(m.focus) m.focus();
        },
        /**
         * Method to hide the flash movie once the copy has been done
         * @method hide
         * @return {Void}
         */
        hide : function() {
            var _this = this,
                mb    = _this.get("boundingBox");
            mb.setStyles({ "left" : OFFSCREEN_LEFT });

        },
        /**
         * Method to set the copy string into to movie. This method has to be called before the
         * flash movie accepts the event to set the copy string to clip board. This method can
         * also be called by using node.setAttribute("copy", "this is a string" );
         * @method copy
         * @param str {String} the string to be copied
         */
        copy : function(str) {
            var _this = this;
            try {
                _this._movie._node.copy(str, _this.get("id"));
            } catch(e) {
                Y.fire(COMPONENT_NAME+":error", {"error": e.message});
                Y.log("Copy Event Error occured" + e.message);
            }
        },
        /**
         * Method to set an event on the flash movie. The set event call maintains an event cache
         * of all the events assigned on the flash movie for a given node. Since there is only one
         * flash movie on the page, the setEvent can maintain only a single event per node on the
         * flash movie.
         * @method setEvent
         * @param n {String} The flash movie Event name. Refer the
         * the adobe Action-script 3 flash events manual for all the events that
         * can be assigned to the flash movie.
         * @param cb {Function} The callback function to be called when the flash movie event occurs
         * @param docopy {Boolean} The boolean flag to decide whether the event you assign when triggered
         * must assign the copy text to the OS clipboard. Default is FALSE
         * @return {Boolean} TRUE if success, FALSE if failure
         */
        setEvent : function(n, cb, docopy) {
            try {
                var _this = this;
                    movie = _this._movie._node,
                    cache = flashEventCache,
                    obj   = {},
                    id    = this.get("id");
                if(isUndefined(cache[id]))
                    cache[id] = {};
                cache[id][n] = cb;
                obj[n] = {"docopy" : docopy?true:false};
                if ( movie.setupEvents ) {
                    movie.setupEvents(obj);
                }
            } catch(e) {
                Y.fire(COMPONENT_NAME+":error", {"error": e.message});
                Y.log("Setup Event Error occured" + e.message);
            }

        },
        /**
         * Method to remove the event on the flash movie. This method will makes sure that the
         * event is removed only if all the node instances using the flash movie are free of any
         * events binding. If there are any nodes that are listening to the flash movie event, then
         * till a remove event for that node is called, the events will not be removed from the
         * flash movie
         * @method removeEvent
         * @param n {String} The name of the event
         * @return {Boolean} TRUE if success, FALSE if failure
         */
        removeEvent : function(n) {
            try {
                var cache = flashEventCache,
                    _this = this, i = 0, l = 0, id = _this.get("id"),rm = [],
                    movie =  _this._movie._node;
                if(isString(n)) {
                    n = [n];
                }
                for(l=n.length;i<l;i++) {
                    unsetCache(id, n[i]);
                    if(canBeRemoved(n[i]))
                        rm.push(n[i]);
                }
                if ( rm.length > 0 && movie.removeEvents ) {
                    movie.removeEvents(rm);
                }
            } catch(e) {
                Y.fire(COMPONENT_NAME+":error", {"error": e.message});
                Y.log("Remove Event Error occured" + e.message);
            }
            return true;
        },
        /**
         * Method to align the movie to the given host with the specified dimensions
         * @method _alignMovie
         * @param d {Object} The dimensions object got from getHostDimensions
         * @param h {Node} The host node
         * @return {Node} The bounding box node
         * @private
         */
        _alignMovie : function(d, h) {
            var _this = this,
                host  = isUndefined(h)?_this._host:h,
                mb    = _this.get("boundingBox"),
                zin   = 1,
                hzin  = parseInt(host.getStyle("zIndex"), 10); /* host z-index  */
            if(isNumber(hzin))
                zin = hzin + 1;
            mb.setXY(d.xy);
            mb.setStyles({zIndex : zin});

            return mb;
        },
        /**
         * Method to create the flash object markup, create the Object or Embed element and append it
         * to the "page"
         * @method _getFlashMovieObj
         * @param d {Object} The dimensions object got from getHostDimensions
         * @param f {String} The global call back function name
         * @private
         */
        _getFlashMovieObj : function(d, f) {
            var _this = this,
                id    = COMPONENT_NAME,
                rep   = {
                "__PROTOCOL__" : PROTOCOL,
                "__MOVIEID__"  : id,
                "__WIDTH__"    : d.w,
                "__HEIGHT__"   : d.h,
                "__MOVIEPATH__": _this.get("moviepath")+SWF_MOVIE_NAME,
                "__NS__"       : ClipBoard.NS,
                "__FN__"       : f,
                "__DOMAIN__"   : _this.get("domain")
            },
            template = Y.UA.ie?OBJECT_TEMPLATE:EMBED_TEMPLATE,
            page     = _this.get("page"),
            movie    = _this.get("page").one("#"+id),
            wrapper;

            rep["__FLASHVARS__"] = Y.substitute(FLASHVARS_TEMPLATE, rep);

            if (isNull(movie)) {
                wrapper = Y.Node.create("

");
                wrapper.set("innerHTML", Y.substitute(template, rep));
                wrapper.setStyles({"width" : d.w, height:d.h, position:"absolute"});
                wrapper.set("className", COMPONENT_NAME+"-wrapper");
                page.appendChild(wrapper);
                movie = _this.get("page").one("#"+id);
                loadObj.host = _this._host;
                Y.log("Creating a new flash movie node and attaching to DOM");
            }
            this.set("boundingBox", movie.get("parentNode"));
            movie.setStyle("outline", "none");
            return movie;
        },
        /**
         * The main method that is set on the "global" that will be the callback interface between
         * the flash movie and javascript. All the flash movie events that are trapped and are of
         * interest will be passed into the falsh interface. Based on the type of event, the
         * method will dispatch the event to the most suitable node or handler
         * @method _flashInterface
         * @param ev {String} The event String
         * @param a {Object} The flash call back object
         * @return {Void}
         * @private
         */
        _flashInterface : function(ev, a) {
            try {
                var tr, node,
                    cache = flashEventCache;
                if(ev == COMPONENT_NAME+":event") {
                    tr   = a.transaction,
                    node = Y.one("#"+tr);
                    if(cache[tr][a.event])
                        cache[tr][a.event].call(node, a);
                } else {
                    Y.fire(ev, a);
                }
                Y.log("Flash Interface callback recieved :"+ev  );
            } catch(e) {
                Y.fire(COMPONENT_NAME+":error", Y.mix({"error": e.message}, a));
                Y.log("Flash Interface Error occured :" +e.message);
            }

        },
        /**
         * Return the size of the given node including border, padding and margin.
         *
         * @method _getNodeSize
         * @param {Node} node The node for which the size needs to be computed
         * @private
         */
        _getNodeSize: function (node) {
            var sz = [],
                gc = function(ppt, n) {
                    return parseInt(n.getComputedStyle(ppt), 10);
                };
            sz[0] = gc("marginLeft", node) + gc("paddingLeft", node) +
                     gc("borderLeftWidth", node) + gc("width", node) +
                     gc("borderRightWidth", node) + gc("paddingRight", node) +
                     gc("marginRight", node);
            sz[1] = gc("marginTop", node) + gc("paddingTop", node) +
                     gc("borderTopWidth", node) + gc("height", node) +
                     gc("borderBottomWidth", node) + gc("paddingBottom", node) +
                     gc("marginBottom", node);
            return sz;
        }
    });

    Y.ClipBoard = ClipBoard;

}, 'gallery-2011.09.14-20-40' ,{requires:['node', 'plugin', 'substitute'], skinnable:false});


text:
#include <scenegraph/physicalnode.h>
using namespace motorcar;

PhysicalNode::PhysicalNode(PhysicalNode *parent, const glm::mat4 &transform)
    :SceneGraphNode(parent, transform)
{
}

void PhysicalNode::setParentNode(PhysicalNode *parent)
{
    SceneGraphNode::setParentNode(parent);
}

PhysicalNode::PhysicalNode()
    :SceneGraphNode()
{
}

redpajama_set_name: RedPajamaGithub


text:
package com.errpro.design_patterns.strategy;

public class Test {
	public static void main(String[] args) {
		Computer c = new Computer();
		c.setPowerStrategy(new HighPerformanceStrategy());
		c.applyPowerStrategy();

		c.setPowerStrategy(new MediumStrategy());
		c.applyPowerStrategy();

		c.setPowerStrategy(new EnergySavingStrategy());
		c.applyPowerStrategy();
	}
}


text:
package github.frodeaa.bottle;

import blade.kit.http.HttpRequestException;
import blade.kit.json.JSONKit;
import blade.kit.log.Logger;
import com.blade.Blade;
import com.blade.route.RouteHandler;
import com.blade.web.http.HttpException;
import com.blade.web.http.Request;
import com.blade.web.http.Response;
import github.frodeaa.blade.sql2o.Db;

import java.util.Base64;
import java.util.List;
import java.util.UUID;

import static java.util.Collections.singletonMap;

public class AuthHandler implements RouteHandler {

    private Logger LOGGER = Logger.getLogger(AuthHandler.class);

    private String ip(Request requeset) {
        String forwardedFor = requeset.header("X-Forwarded-For");
        if (forwardedFor != null) {
            return forwardedFor.split(" ")[0];
        }
        return requeset.raw().getRemoteAddr();
    }

    @Override
    public void handle(Request request, Response response) {
        String authHeader = request.header("Authorization");

        String ip = ip(request);
        if (authHeader != null) {
            String[] auth = authHeader.split(" ");

            if (auth.length == 2 && "Basic".equals(auth[0])) {
                String[] userPass = new String(Base64.getDecoder().decode(auth[1])).split(":");
                List<User> users;
                try {
                    UUID userId = UUID.fromString(userPass[0]);
                    users = User.byId(userId, Blade.me().plugin(Db.class));
                } catch (IllegalArgumentException e) {
                    response.status(400).json(JSONKit.toJSONString(singletonMap("message", e.getMessage())));
                    return;
                }
                if (users.size() == 1 && users.get(0).checkPassword(userPass[1])) {
                    LOGGER.info(String.format("Request : %s\t%s\tauthenticated %s\t%s",
                            request.method(), request.path(), users.get(0).getExternal_id(), ip));
                    request.attribute("user", users.get(0));
                    return;
                }
            }
            LOGGER.info(String.format("Request : %s\t%s\tauthenticated failed %s\t%s",
                    request.method(), request.path(), "", ip));
            response.header("Access-Control-Allow-Origin", "*");
            response.status(403).json(JSONKit.toJSONString(singletonMap("status_code", 403)));
            request.abort();
        } else {
            response.header("WWW-Authenticate", "Basic realm=Bottle API");
            response.status(401).json(JSONKit.toJSONString(singletonMap("status_code", 401))).raw();
            request.abort();
        }
    }

}


text:
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/devtools/artifactregistry/v1beta2/file.proto

package com.google.devtools.artifactregistry.v1beta2;

/**
 *
 *
 *

 * Files store content that is potentially associated with Packages or Versions.
 *

 *
 * Protobuf type {@code google.devtools.artifactregistry.v1beta2.File}
 */
public final class File extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1beta2.File)
    FileOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use File.newBuilder() to construct.
  private File(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private File() {
    name_ = "";
    hashes_ = java.util.Collections.emptyList();
    owner_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new File();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.devtools.artifactregistry.v1beta2.FileProto
        .internal_static_google_devtools_artifactregistry_v1beta2_File_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.devtools.artifactregistry.v1beta2.FileProto
        .internal_static_google_devtools_artifactregistry_v1beta2_File_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.devtools.artifactregistry.v1beta2.File.class,
            com.google.devtools.artifactregistry.v1beta2.File.Builder.class);
  }

  public static final int NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object name_;
  /**
   *
   *
   *

   * The name of the file, for example:
   * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
   * If the file ID part contains slashes, they are escaped.
   *

   *
   * string name = 1;
   *
   * @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();
      name_ = s;
      return s;
    }
  }
  /**
   *
   *
   *

   * The name of the file, for example:
   * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
   * If the file ID part contains slashes, they are escaped.
   *

   *
   * string name = 1;
   *
   * @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 SIZE_BYTES_FIELD_NUMBER = 3;
  private long sizeBytes_;
  /**
   *
   *
   *

   * The size of the File in bytes.
   *

   *
   * int64 size_bytes = 3;
   *
   * @return The sizeBytes.
   */
  @java.lang.Override
  public long getSizeBytes() {
    return sizeBytes_;
  }

  public static final int HASHES_FIELD_NUMBER = 4;
  private java.util.List<com.google.devtools.artifactregistry.v1beta2.Hash> hashes_;
  /**
   *
   *
   *

   * The hashes of the file content.
   *

   *
   * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
   */
  @java.lang.Override
  public java.util.List<com.google.devtools.artifactregistry.v1beta2.Hash> getHashesList() {
    return hashes_;
  }
  /**
   *
   *
   *

   * The hashes of the file content.
   *

   *
   * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
   */
  @java.lang.Override
  public java.util.List<? extends com.google.devtools.artifactregistry.v1beta2.HashOrBuilder>
      getHashesOrBuilderList() {
    return hashes_;
  }
  /**
   *
   *
   *

   * The hashes of the file content.
   *

   *
   * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
   */
  @java.lang.Override
  public int getHashesCount() {
    return hashes_.size();
  }
  /**
   *
   *
   *

   * The hashes of the file content.
   *

   *
   * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
   */
  @java.lang.Override
  public com.google.devtools.artifactregistry.v1beta2.Hash getHashes(int index) {
    return hashes_.get(index);
  }
  /**
   *
   *
   *

   * The hashes of the file content.
   *

   *
   * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
   */
  @java.lang.Override
  public com.google.devtools.artifactregistry.v1beta2.HashOrBuilder getHashesOrBuilder(int index) {
    return hashes_.get(index);
  }

  public static final int CREATE_TIME_FIELD_NUMBER = 5;
  private com.google.protobuf.Timestamp createTime_;
  /**
   *
   *
   *

   * The time when the File was created.
   *

   *
   * .google.protobuf.Timestamp create_time = 5;
   *
   * @return Whether the createTime field is set.
   */
  @java.lang.Override
  public boolean hasCreateTime() {
    return createTime_ != null;
  }
  /**
   *
   *
   *

   * The time when the File was created.
   *

   *
   * .google.protobuf.Timestamp create_time = 5;
   *
   * @return The createTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getCreateTime() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }
  /**
   *
   *
   *

   * The time when the File was created.
   *

   *
   * .google.protobuf.Timestamp create_time = 5;
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    return getCreateTime();
  }

  public static final int UPDATE_TIME_FIELD_NUMBER = 6;
  private com.google.protobuf.Timestamp updateTime_;
  /**
   *
   *
   *

   * The time when the File was last updated.
   *

   *
   * .google.protobuf.Timestamp update_time = 6;
   *
   * @return Whether the updateTime field is set.
   */
  @java.lang.Override
  public boolean hasUpdateTime() {
    return updateTime_ != null;
  }
  /**
   *
   *
   *

   * The time when the File was last updated.
   *

   *
   * .google.protobuf.Timestamp update_time = 6;
   *
   * @return The updateTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getUpdateTime() {
    return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
  }
  /**
   *
   *
   *

   * The time when the File was last updated.
   *

   *
   * .google.protobuf.Timestamp update_time = 6;
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    return getUpdateTime();
  }

  public static final int OWNER_FIELD_NUMBER = 7;
  private volatile java.lang.Object owner_;
  /**
   *
   *
   *

   * The name of the Package or Version that owns this file, if any.
   *

   *
   * string owner = 7;
   *
   * @return The owner.
   */
  @java.lang.Override
  public java.lang.String getOwner() {
    java.lang.Object ref = owner_;
    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();
      owner_ = s;
      return s;
    }
  }
  /**
   *
   *
   *

   * The name of the Package or Version that owns this file, if any.
   *

   *
   * string owner = 7;
   *
   * @return The bytes for owner.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getOwnerBytes() {
    java.lang.Object ref = owner_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      owner_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (sizeBytes_ != 0L) {
      output.writeInt64(3, sizeBytes_);
    }
    for (int i = 0; i < hashes_.size(); i++) {
      output.writeMessage(4, hashes_.get(i));
    }
    if (createTime_ != null) {
      output.writeMessage(5, getCreateTime());
    }
    if (updateTime_ != null) {
      output.writeMessage(6, getUpdateTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(owner_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, owner_);
    }
    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(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (sizeBytes_ != 0L) {
      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, sizeBytes_);
    }
    for (int i = 0; i < hashes_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, hashes_.get(i));
    }
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime());
    }
    if (updateTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(owner_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, owner_);
    }
    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.google.devtools.artifactregistry.v1beta2.File)) {
      return super.equals(obj);
    }
    com.google.devtools.artifactregistry.v1beta2.File other =
        (com.google.devtools.artifactregistry.v1beta2.File) obj;

    if (!getName().equals(other.getName())) return false;
    if (getSizeBytes() != other.getSizeBytes()) return false;
    if (!getHashesList().equals(other.getHashesList())) return false;
    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (!getCreateTime().equals(other.getCreateTime())) return false;
    }
    if (hasUpdateTime() != other.hasUpdateTime()) return false;
    if (hasUpdateTime()) {
      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
    }
    if (!getOwner().equals(other.getOwner())) 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) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes());
    if (getHashesCount() > 0) {
      hash = (37 * hash) + HASHES_FIELD_NUMBER;
      hash = (53 * hash) + getHashesList().hashCode();
    }
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime().hashCode();
    }
    if (hasUpdateTime()) {
      hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getUpdateTime().hashCode();
    }
    hash = (37 * hash) + OWNER_FIELD_NUMBER;
    hash = (53 * hash) + getOwner().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.devtools.artifactregistry.v1beta2.File 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.google.devtools.artifactregistry.v1beta2.File parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.devtools.artifactregistry.v1beta2.File 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.google.devtools.artifactregistry.v1beta2.File parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.devtools.artifactregistry.v1beta2.File 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.google.devtools.artifactregistry.v1beta2.File 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;
  }
  /**
   *
   *
   *

   * Files store content that is potentially associated with Packages or Versions.
   *

   *
   * Protobuf type {@code google.devtools.artifactregistry.v1beta2.File}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1beta2.File)
      com.google.devtools.artifactregistry.v1beta2.FileOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.devtools.artifactregistry.v1beta2.FileProto
          .internal_static_google_devtools_artifactregistry_v1beta2_File_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.artifactregistry.v1beta2.FileProto
          .internal_static_google_devtools_artifactregistry_v1beta2_File_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.artifactregistry.v1beta2.File.class,
              com.google.devtools.artifactregistry.v1beta2.File.Builder.class);
    }

    // Construct using com.google.devtools.artifactregistry.v1beta2.File.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      name_ = "";

      sizeBytes_ = 0L;

      if (hashesBuilder_ == null) {
        hashes_ = java.util.Collections.emptyList();
      } else {
        hashes_ = null;
        hashesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      if (createTimeBuilder_ == null) {
        createTime_ = null;
      } else {
        createTime_ = null;
        createTimeBuilder_ = null;
      }
      if (updateTimeBuilder_ == null) {
        updateTime_ = null;
      } else {
        updateTime_ = null;
        updateTimeBuilder_ = null;
      }
      owner_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.devtools.artifactregistry.v1beta2.FileProto
          .internal_static_google_devtools_artifactregistry_v1beta2_File_descriptor;
    }

    @java.lang.Override
    public com.google.devtools.artifactregistry.v1beta2.File getDefaultInstanceForType() {
      return com.google.devtools.artifactregistry.v1beta2.File.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.devtools.artifactregistry.v1beta2.File build() {
      com.google.devtools.artifactregistry.v1beta2.File result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.devtools.artifactregistry.v1beta2.File buildPartial() {
      com.google.devtools.artifactregistry.v1beta2.File result =
          new com.google.devtools.artifactregistry.v1beta2.File(this);
      int from_bitField0_ = bitField0_;
      result.name_ = name_;
      result.sizeBytes_ = sizeBytes_;
      if (hashesBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          hashes_ = java.util.Collections.unmodifiableList(hashes_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.hashes_ = hashes_;
      } else {
        result.hashes_ = hashesBuilder_.build();
      }
      if (createTimeBuilder_ == null) {
        result.createTime_ = createTime_;
      } else {
        result.createTime_ = createTimeBuilder_.build();
      }
      if (updateTimeBuilder_ == null) {
        result.updateTime_ = updateTime_;
      } else {
        result.updateTime_ = updateTimeBuilder_.build();
      }
      result.owner_ = owner_;
      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.google.devtools.artifactregistry.v1beta2.File) {
        return mergeFrom((com.google.devtools.artifactregistry.v1beta2.File) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.devtools.artifactregistry.v1beta2.File other) {
      if (other == com.google.devtools.artifactregistry.v1beta2.File.getDefaultInstance())
        return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      if (other.getSizeBytes() != 0L) {
        setSizeBytes(other.getSizeBytes());
      }
      if (hashesBuilder_ == null) {
        if (!other.hashes_.isEmpty()) {
          if (hashes_.isEmpty()) {
            hashes_ = other.hashes_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureHashesIsMutable();
            hashes_.addAll(other.hashes_);
          }
          onChanged();
        }
      } else {
        if (!other.hashes_.isEmpty()) {
          if (hashesBuilder_.isEmpty()) {
            hashesBuilder_.dispose();
            hashesBuilder_ = null;
            hashes_ = other.hashes_;
            bitField0_ = (bitField0_ & ~0x00000001);
            hashesBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getHashesFieldBuilder()
                    : null;
          } else {
            hashesBuilder_.addAllMessages(other.hashes_);
          }
        }
      }
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (other.hasUpdateTime()) {
        mergeUpdateTime(other.getUpdateTime());
      }
      if (!other.getOwner().isEmpty()) {
        owner_ = other.owner_;
        onChanged();
      }
      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:
              {
                name_ = input.readStringRequireUtf8();

                break;
              } // case 10
            case 24:
              {
                sizeBytes_ = input.readInt64();

                break;
              } // case 24
            case 34:
              {
                com.google.devtools.artifactregistry.v1beta2.Hash m =
                    input.readMessage(
                        com.google.devtools.artifactregistry.v1beta2.Hash.parser(),
                        extensionRegistry);
                if (hashesBuilder_ == null) {
                  ensureHashesIsMutable();
                  hashes_.add(m);
                } else {
                  hashesBuilder_.addMessage(m);
                }
                break;
              } // case 34
            case 42:
              {
                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);

                break;
              } // case 42
            case 50:
              {
                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);

                break;
              } // case 50
            case 58:
              {
                owner_ = input.readStringRequireUtf8();

                break;
              } // case 58
            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 name_ = "";
    /**
     *
     *
     *

     * The name of the file, for example:
     * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
     * If the file ID part contains slashes, they are escaped.
     *

     *
     * string name = 1;
     *
     * @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();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     *

     * The name of the file, for example:
     * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
     * If the file ID part contains slashes, they are escaped.
     *

     *
     * string name = 1;
     *
     * @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;
      }
    }
    /**
     *
     *
     *

     * The name of the file, for example:
     * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
     * If the file ID part contains slashes, they are escaped.
     *

     *
     * string name = 1;
     *
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      name_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * The name of the file, for example:
     * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
     * If the file ID part contains slashes, they are escaped.
     *

     *
     * string name = 1;
     *
     * @return This builder for chaining.
     */
    public Builder clearName() {

      name_ = getDefaultInstance().getName();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * The name of the file, for example:
     * "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
     * If the file ID part contains slashes, they are escaped.
     *

     *
     * string name = 1;
     *
     * @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();
      }
      checkByteStringIsUtf8(value);

      name_ = value;
      onChanged();
      return this;
    }

    private long sizeBytes_;
    /**
     *
     *
     *

     * The size of the File in bytes.
     *

     *
     * int64 size_bytes = 3;
     *
     * @return The sizeBytes.
     */
    @java.lang.Override
    public long getSizeBytes() {
      return sizeBytes_;
    }
    /**
     *
     *
     *

     * The size of the File in bytes.
     *

     *
     * int64 size_bytes = 3;
     *
     * @param value The sizeBytes to set.
     * @return This builder for chaining.
     */
    public Builder setSizeBytes(long value) {

      sizeBytes_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * The size of the File in bytes.
     *

     *
     * int64 size_bytes = 3;
     *
     * @return This builder for chaining.
     */
    public Builder clearSizeBytes() {

      sizeBytes_ = 0L;
      onChanged();
      return this;
    }

    private java.util.List<com.google.devtools.artifactregistry.v1beta2.Hash> hashes_ =
        java.util.Collections.emptyList();

    private void ensureHashesIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        hashes_ =
            new java.util.ArrayList<com.google.devtools.artifactregistry.v1beta2.Hash>(hashes_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.devtools.artifactregistry.v1beta2.Hash,
            com.google.devtools.artifactregistry.v1beta2.Hash.Builder,
            com.google.devtools.artifactregistry.v1beta2.HashOrBuilder>
        hashesBuilder_;

    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public java.util.List<com.google.devtools.artifactregistry.v1beta2.Hash> getHashesList() {
      if (hashesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(hashes_);
      } else {
        return hashesBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public int getHashesCount() {
      if (hashesBuilder_ == null) {
        return hashes_.size();
      } else {
        return hashesBuilder_.getCount();
      }
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public com.google.devtools.artifactregistry.v1beta2.Hash getHashes(int index) {
      if (hashesBuilder_ == null) {
        return hashes_.get(index);
      } else {
        return hashesBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public Builder setHashes(int index, com.google.devtools.artifactregistry.v1beta2.Hash value) {
      if (hashesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHashesIsMutable();
        hashes_.set(index, value);
        onChanged();
      } else {
        hashesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public Builder setHashes(
        int index, com.google.devtools.artifactregistry.v1beta2.Hash.Builder builderForValue) {
      if (hashesBuilder_ == null) {
        ensureHashesIsMutable();
        hashes_.set(index, builderForValue.build());
        onChanged();
      } else {
        hashesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public Builder addHashes(com.google.devtools.artifactregistry.v1beta2.Hash value) {
      if (hashesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHashesIsMutable();
        hashes_.add(value);
        onChanged();
      } else {
        hashesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public Builder addHashes(int index, com.google.devtools.artifactregistry.v1beta2.Hash value) {
      if (hashesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureHashesIsMutable();
        hashes_.add(index, value);
        onChanged();
      } else {
        hashesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public Builder addHashes(
        com.google.devtools.artifactregistry.v1beta2.Hash.Builder builderForValue) {
      if (hashesBuilder_ == null) {
        ensureHashesIsMutable();
        hashes_.add(builderForValue.build());
        onChanged();
      } else {
        hashesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public Builder addHashes(
        int index, com.google.devtools.artifactregistry.v1beta2.Hash.Builder builderForValue) {
      if (hashesBuilder_ == null) {
        ensureHashesIsMutable();
        hashes_.add(index, builderForValue.build());
        onChanged();
      } else {
        hashesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public Builder addAllHashes(
        java.lang.Iterable<? extends com.google.devtools.artifactregistry.v1beta2.Hash> values) {
      if (hashesBuilder_ == null) {
        ensureHashesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hashes_);
        onChanged();
      } else {
        hashesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public Builder clearHashes() {
      if (hashesBuilder_ == null) {
        hashes_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        hashesBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public Builder removeHashes(int index) {
      if (hashesBuilder_ == null) {
        ensureHashesIsMutable();
        hashes_.remove(index);
        onChanged();
      } else {
        hashesBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public com.google.devtools.artifactregistry.v1beta2.Hash.Builder getHashesBuilder(int index) {
      return getHashesFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public com.google.devtools.artifactregistry.v1beta2.HashOrBuilder getHashesOrBuilder(
        int index) {
      if (hashesBuilder_ == null) {
        return hashes_.get(index);
      } else {
        return hashesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public java.util.List<? extends com.google.devtools.artifactregistry.v1beta2.HashOrBuilder>
        getHashesOrBuilderList() {
      if (hashesBuilder_ != null) {
        return hashesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(hashes_);
      }
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public com.google.devtools.artifactregistry.v1beta2.Hash.Builder addHashesBuilder() {
      return getHashesFieldBuilder()
          .addBuilder(com.google.devtools.artifactregistry.v1beta2.Hash.getDefaultInstance());
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public com.google.devtools.artifactregistry.v1beta2.Hash.Builder addHashesBuilder(int index) {
      return getHashesFieldBuilder()
          .addBuilder(
              index, com.google.devtools.artifactregistry.v1beta2.Hash.getDefaultInstance());
    }
    /**
     *
     *
     *

     * The hashes of the file content.
     *

     *
     * repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
     */
    public java.util.List<com.google.devtools.artifactregistry.v1beta2.Hash.Builder>
        getHashesBuilderList() {
      return getHashesFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.devtools.artifactregistry.v1beta2.Hash,
            com.google.devtools.artifactregistry.v1beta2.Hash.Builder,
            com.google.devtools.artifactregistry.v1beta2.HashOrBuilder>
        getHashesFieldBuilder() {
      if (hashesBuilder_ == null) {
        hashesBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.devtools.artifactregistry.v1beta2.Hash,
                com.google.devtools.artifactregistry.v1beta2.Hash.Builder,
                com.google.devtools.artifactregistry.v1beta2.HashOrBuilder>(
                hashes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
        hashes_ = null;
      }
      return hashesBuilder_;
    }

    private com.google.protobuf.Timestamp createTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        createTimeBuilder_;
    /**
     *
     *
     *

     * The time when the File was created.
     *

     *
     * .google.protobuf.Timestamp create_time = 5;
     *
     * @return Whether the createTime field is set.
     */
    public boolean hasCreateTime() {
      return createTimeBuilder_ != null || createTime_ != null;
    }
    /**
     *
     *
     *

     * The time when the File was created.
     *

     *
     * .google.protobuf.Timestamp create_time = 5;
     *
     * @return The createTime.
     */
    public com.google.protobuf.Timestamp getCreateTime() {
      if (createTimeBuilder_ == null) {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      } else {
        return createTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     *

     * The time when the File was created.
     *

     *
     * .google.protobuf.Timestamp create_time = 5;
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        createTime_ = value;
        onChanged();
      } else {
        createTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * The time when the File was created.
     *

     *
     * .google.protobuf.Timestamp create_time = 5;
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (createTimeBuilder_ == null) {
        createTime_ = builderForValue.build();
        onChanged();
      } else {
        createTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     *

     * The time when the File was created.
     *

     *
     * .google.protobuf.Timestamp create_time = 5;
     */
    public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (createTime_ != null) {
          createTime_ =
              com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
        } else {
          createTime_ = value;
        }
        onChanged();
      } else {
        createTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * The time when the File was created.
     *

     *
     * .google.protobuf.Timestamp create_time = 5;
     */
    public Builder clearCreateTime() {
      if (createTimeBuilder_ == null) {
        createTime_ = null;
        onChanged();
      } else {
        createTime_ = null;
        createTimeBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     *

     * The time when the File was created.
     *

     *
     * .google.protobuf.Timestamp create_time = 5;
     */
    public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {

      onChanged();
      return getCreateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     *

     * The time when the File was created.
     *

     *
     * .google.protobuf.Timestamp create_time = 5;
     */
    public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      if (createTimeBuilder_ != null) {
        return createTimeBuilder_.getMessageOrBuilder();
      } else {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      }
    }
    /**
     *
     *
     *

     * The time when the File was created.
     *

     *
     * .google.protobuf.Timestamp create_time = 5;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getCreateTimeFieldBuilder() {
      if (createTimeBuilder_ == null) {
        createTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getCreateTime(), getParentForChildren(), isClean());
        createTime_ = null;
      }
      return createTimeBuilder_;
    }

    private com.google.protobuf.Timestamp updateTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        updateTimeBuilder_;
    /**
     *
     *
     *

     * The time when the File was last updated.
     *

     *
     * .google.protobuf.Timestamp update_time = 6;
     *
     * @return Whether the updateTime field is set.
     */
    public boolean hasUpdateTime() {
      return updateTimeBuilder_ != null || updateTime_ != null;
    }
    /**
     *
     *
     *

     * The time when the File was last updated.
     *

     *
     * .google.protobuf.Timestamp update_time = 6;
     *
     * @return The updateTime.
     */
    public com.google.protobuf.Timestamp getUpdateTime() {
      if (updateTimeBuilder_ == null) {
        return updateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : updateTime_;
      } else {
        return updateTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     *

     * The time when the File was last updated.
     *

     *
     * .google.protobuf.Timestamp update_time = 6;
     */
    public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        updateTime_ = value;
        onChanged();
      } else {
        updateTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * The time when the File was last updated.
     *

     *
     * .google.protobuf.Timestamp update_time = 6;
     */
    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (updateTimeBuilder_ == null) {
        updateTime_ = builderForValue.build();
        onChanged();
      } else {
        updateTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     *

     * The time when the File was last updated.
     *

     *
     * .google.protobuf.Timestamp update_time = 6;
     */
    public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (updateTime_ != null) {
          updateTime_ =
              com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
        } else {
          updateTime_ = value;
        }
        onChanged();
      } else {
        updateTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     *

     * The time when the File was last updated.
     *

     *
     * .google.protobuf.Timestamp update_time = 6;
     */
    public Builder clearUpdateTime() {
      if (updateTimeBuilder_ == null) {
        updateTime_ = null;
        onChanged();
      } else {
        updateTime_ = null;
        updateTimeBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     *

     * The time when the File was last updated.
     *

     *
     * .google.protobuf.Timestamp update_time = 6;
     */
    public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {

      onChanged();
      return getUpdateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     *

     * The time when the File was last updated.
     *

     *
     * .google.protobuf.Timestamp update_time = 6;
     */
    public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      if (updateTimeBuilder_ != null) {
        return updateTimeBuilder_.getMessageOrBuilder();
      } else {
        return updateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : updateTime_;
      }
    }
    /**
     *
     *
     *

     * The time when the File was last updated.
     *

     *
     * .google.protobuf.Timestamp update_time = 6;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getUpdateTimeFieldBuilder() {
      if (updateTimeBuilder_ == null) {
        updateTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getUpdateTime(), getParentForChildren(), isClean());
        updateTime_ = null;
      }
      return updateTimeBuilder_;
    }

    private java.lang.Object owner_ = "";
    /**
     *
     *
     *

     * The name of the Package or Version that owns this file, if any.
     *

     *
     * string owner = 7;
     *
     * @return The owner.
     */
    public java.lang.String getOwner() {
      java.lang.Object ref = owner_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        owner_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     *

     * The name of the Package or Version that owns this file, if any.
     *

     *
     * string owner = 7;
     *
     * @return The bytes for owner.
     */
    public com.google.protobuf.ByteString getOwnerBytes() {
      java.lang.Object ref = owner_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        owner_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     *

     * The name of the Package or Version that owns this file, if any.
     *

     *
     * string owner = 7;
     *
     * @param value The owner to set.
     * @return This builder for chaining.
     */
    public Builder setOwner(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      owner_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * The name of the Package or Version that owns this file, if any.
     *

     *
     * string owner = 7;
     *
     * @return This builder for chaining.
     */
    public Builder clearOwner() {

      owner_ = getDefaultInstance().getOwner();
      onChanged();
      return this;
    }
    /**
     *
     *
     *

     * The name of the Package or Version that owns this file, if any.
     *

     *
     * string owner = 7;
     *
     * @param value The bytes for owner to set.
     * @return This builder for chaining.
     */
    public Builder setOwnerBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      owner_ = 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:google.devtools.artifactregistry.v1beta2.File)
  }

  // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1beta2.File)
  private static final com.google.devtools.artifactregistry.v1beta2.File DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1beta2.File();
  }

  public static com.google.devtools.artifactregistry.v1beta2.File getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<File> PARSER =
      new com.google.protobuf.AbstractParser<File>() {
        @java.lang.Override
        public File 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<File> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<File> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.devtools.artifactregistry.v1beta2.File getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}


text:
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;

namespace Amazon.CloudSearch.Model
{
    ///
    /// <para>The current status of the search domain.</para>
    ///
    public class DomainStatus
    {

        private string domainId;
        private string domainName;
        private bool? created;
        private bool? deleted;
        private int? numSearchableDocs;
        private ServiceEndpoint docService;
        private ServiceEndpoint searchService;
        private bool? requiresIndexDocuments;
        private bool? processing;
        private string searchInstanceType;
        private int? searchPartitionCount;
        private int? searchInstanceCount;

        ///
        /// An internally generated unique identifier for a domain.
        ///
        /// <para>
        /// Constraints:
        /// <list type="definition">
        ///     <item>
        ///         <term>Length</term>
        ///         <description>1 - 64</description>
        ///     </item>
        /// </list>
        /// </para>
        ///
        public string DomainId
        {
            get { return this.domainId; }
            set { this.domainId = value; }
        }

        ///
        /// Sets the DomainId property
        ///
        /// <param name="domainId">The value to set for the DomainId property </param>
        /// <returns>this instance</returns>
        [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
        public DomainStatus WithDomainId(string domainId)
        {
            this.domainId = domainId;
            return this;
        }

        // Check to see if DomainId property is set
        internal bool IsSetDomainId()
        {
            return this.domainId != null;
        }

        ///
        /// A string that represents the name of a domain. Domain names must be unique across the domains owned by an account within an AWS region.
        /// Domain names must start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen). Uppercase
        /// letters and underscores are not allowed.
        ///
        /// <para>
        /// Constraints:
        /// <list type="definition">
        ///     <item>
        ///         <term>Length</term>
        ///         <description>3 - 28</description>
        ///     </item>
        ///     <item>
        ///         <term>Pattern</term>
        ///         <description>[a-z][a-z0-9\-]+</description>
        ///     </item>
        /// </list>
        /// </para>
        ///
        public string DomainName
        {
            get { return this.domainName; }
            set { this.domainName = value; }
        }

        ///
        /// Sets the DomainName property
        ///
        /// <param name="domainName">The value to set for the DomainName property </param>
        /// <returns>this instance</returns>
        [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
        public DomainStatus WithDomainName(string domainName)
        {
            this.domainName = domainName;
            return this;
        }

        // Check to see if DomainName property is set
        internal bool IsSetDomainName()
        {
            return this.domainName != null;
        }

        ///
        /// True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created
        /// search domains are returned from DescribeDomains with a false value for Created until domain creation is complete.
        ///
        ///
        public bool Created
        {
            get { return this.created ?? default(bool); }
            set { this.created = value; }
        }

        ///
        /// Sets the Created property
        ///
        /// <param name="created">The value to set for the Created property </param>
        /// <returns>this instance</returns>
        [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
        public DomainStatus WithCreated(bool created)
        {
            this.created = created;
            return this;
        }

        // Check to see if Created property is set
        internal bool IsSetCreated()
        {
            return this.created.HasValue;
        }

        ///
        /// True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is
        /// called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until
        /// resource cleanup is complete.
        ///
        ///
        public bool Deleted
        {
            get { return this.deleted ?? default(bool); }
            set { this.deleted = value; }
        }

        ///
        /// Sets the Deleted property
        ///
        /// <param name="deleted">The value to set for the Deleted property </param>
        /// <returns>this instance</returns>
        [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
        public DomainStatus WithDeleted(bool deleted)
        {
            this.deleted = deleted;
            return this;
        }

        // Check to see if Deleted property is set
        internal bool IsSetDeleted()
        {
            return this.deleted.HasValue;
        }

        ///
        /// The number of documents that have been submitted to the domain and indexed.
        ///
        /// <para>
        /// Constraints:
        /// <list type="definition">
        ///     <item>
        ///         <term>Range</term>
        ///         <description>0 - </description>
        ///     </item>
        /// </list>
        /// </para>
        ///
        public int NumSearchableDocs
        {
            get { return this.numSearchableDocs ?? default(int); }
            set { this.numSearchableDocs = value; }
        }

        ///
        /// Sets the NumSearchableDocs property
        ///
        /// <param name="numSearchableDocs">The value to set for the NumSearchableDocs property </param>
        /// <returns>this instance</returns>
        [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
        public DomainStatus WithNumSearchableDocs(int numSearchableDocs)
        {
            this.numSearchableDocs = numSearchableDocs;
            return this;
        }

        // Check to see if NumSearchableDocs property is set
        internal bool IsSetNumSearchableDocs()
        {
            return this.numSearchableDocs.HasValue;
        }

        ///
        /// The service endpoint for updating documents in a search domain.
        ///
        ///
        public ServiceEndpoint DocService
        {
            get { return this.docService; }
            set { this.docService = value; }
        }

        ///
        /// Sets the DocService property
        ///
        /// <param name="docService">The value to set for the DocService property </param>
        /// <returns>this instance</returns>
        [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
        public DomainStatus WithDocService(ServiceEndpoint docService)
        {
            this.docService = docService;
            return this;
        }

        // Check to see if DocService property is set
        internal bool IsSetDocService()
        {
            return this.docService != null;
        }

        ///
        /// The service endpoint for requesting search results from a search domain.
        ///
        ///
        public ServiceEndpoint SearchService
        {
            get { return this.searchService; }
            set { this.searchService = value; }
        }

        ///
        /// Sets the SearchService property
        ///
        /// <param name="searchService">The value to set for the SearchService property </param>
        /// <returns>this instance</returns>
        [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
        public DomainStatus WithSearchService(ServiceEndpoint searchService)
        {
            this.searchService = searchService;
            return this;
        }

        // Check to see if SearchService property is set
        internal bool IsSetSearchService()
        {
            return this.searchService != null;
        }

        ///
        /// True if IndexDocuments needs to be called to activate the current domain configuration.
        ///
        ///
        public bool RequiresIndexDocuments
        {
            get { return this.requiresIndexDocuments ?? default(bool); }
            set { this.requiresIndexDocuments = value; }
        }

        ///
        /// Sets the RequiresIndexDocuments property
        ///
        /// <param name="requiresIndexDocuments">The value to set for the RequiresIndexDocuments property </param>
        /// <returns>this instance</returns>
        [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
        public DomainStatus WithRequiresIndexDocuments(bool requiresIndexDocuments)
        {
            this.requiresIndexDocuments = requiresIndexDocuments;
            return this;
        }

        // Check to see if RequiresIndexDocuments property is set
        internal bool IsSetRequiresIndexDocuments()
        {
            return this.requiresIndexDocuments.HasValue;
        }

        ///
        /// True if processing is being done to activate the current domain configuration.
        ///
        ///
        public bool Processing
        {
            get { return this.processing ?? default(bool); }
            set { this.processing = value; }
        }

        ///
        /// Sets the Processing property
        ///
        /// <param name="processing">The value to set for the Processing property </param>
        /// <returns>this instance</returns>
        [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
        public DomainStatus WithProcessing(bool processing)
        {
            this.processing = processing;
            return this;
        }

        // Check to see if Processing property is set
        internal bool IsSetProcessing()
        {
            return this.processing.HasValue;
        }

        ///
        /// The instance type (such as search.m1.small) that is being used to process search requests.
        ///
        ///
        public string SearchInstanceType
        {
            get { return this.searchInstanceType; }
            set { this.searchInstanceType = value; }
        }

        ///
        /// Sets the SearchInstanceType property
        ///
        /// <param name="searchInstanceType">The value to set for the SearchInstanceType property </param>
        /// <returns>this instance</returns>
        [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
        public DomainStatus WithSearchInstanceType(string searchInstanceType)
        {
            this.searchInstanceType = searchInstanceType;
            return this;
        }

        // Check to see if SearchInstanceType property is set
        internal bool IsSetSearchInstanceType()
        {
            return this.searchInstanceType != null;
        }

        ///
        /// The number of partitions across which the search index is spread.
        ///
        /// <para>
        /// Constraints:
        /// <list type="definition">
        ///     <item>
        ///         <term>Range</term>
        ///         <description>1 - </description>
        ///     </item>
        /// </list>
        /// </para>
        ///
        public int SearchPartitionCount
        {
            get { return this.searchPartitionCount ?? default(int); }
            set { this.searchPartitionCount = value; }
        }

        ///
        /// Sets the SearchPartitionCount property
        ///
        /// <param name="searchPartitionCount">The value to set for the SearchPartitionCount property </param>
        /// <returns>this instance</returns>
        [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
        public DomainStatus WithSearchPartitionCount(int searchPartitionCount)
        {
            this.searchPartitionCount = searchPartitionCount;
            return this;
        }

        // Check to see if SearchPartitionCount property is set
        internal bool IsSetSearchPartitionCount()
        {
            return this.searchPartitionCount.HasValue;
        }

        ///
        /// The number of search instances that are available to process search requests.
        ///
        /// <para>
        /// Constraints:
        /// <list type="definition">
        ///     <item>
        ///         <term>Range</term>
        ///         <description>1 - </description>
        ///     </item>
        /// </list>
        /// </para>
        ///
        public int SearchInstanceCount
        {
            get { return this.searchInstanceCount ?? default(int); }
            set { this.searchInstanceCount = value; }
        }

        ///
        /// Sets the SearchInstanceCount property
        ///
        /// <param name="searchInstanceCount">The value to set for the SearchInstanceCount property </param>
        /// <returns>this instance</returns>
        [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
        public DomainStatus WithSearchInstanceCount(int searchInstanceCount)
        {
            this.searchInstanceCount = searchInstanceCount;
            return this;
        }

        // Check to see if SearchInstanceCount property is set
        internal bool IsSetSearchInstanceCount()
        {
            return this.searchInstanceCount.HasValue;
        }
    }
}


text:
package com.bitpay.sdk.controller;

public class BitPayException extends Exception {

	public BitPayException(String message) {
		super(message);
	}

	private static final long serialVersionUID = 1L;

    public BitPayException(String s, Exception e) {
        super(s, e);
    }
}


text:
package com.netease.nim.demo.rts.doodle;

import android.content.Context;
import android.os.Handler;

import java.util.ArrayList;
import java.util.List;

/**
 * Transaction发包管理器
 * <p/>
 * Created by huangjun on 2015/6/24.
 */
class TransactionManager {

    private final int TIMER_TASK_PERIOD = 30;

    private String sessionId;

    private String toAccount;

    private Handler handler;

    private List<Transaction> cache = new ArrayList<>(1000);

    public TransactionManager(String sessionId, String toAccount, Context context) {
        this.sessionId = sessionId;
        this.toAccount = toAccount;
        this.handler = new Handler(context.getMainLooper());
        this.handler.postDelayed(timerTask, TIMER_TASK_PERIOD); // 立即开启定时器
    }

    public void end() {
        this.handler.removeCallbacks(timerTask);
    }

    public void registerTransactionObserver(TransactionObserver o) {
        TransactionCenter.getInstance().registerObserver(sessionId, o);
    }

    public void sendStartTransaction(float x, float y) {
        cache.add(new Transaction().makeStartTransaction(x, y));
    }

    public void sendMoveTransaction(float x, float y) {
        cache.add(new Transaction().makeMoveTransaction(x, y));
    }

    public void sendEndTransaction(float x, float y) {
        cache.add(new Transaction().makeEndTransaction(x, y));
    }

    public void sendRevokeTransaction() {
        cache.add(new Transaction().makeRevokeTransaction());
    }

    public void sendClearSelfTransaction() {
        cache.add(new Transaction().makeClearSelfTransaction());
    }

    public void sendClearAckTransaction() {
        cache.add(new Transaction().makeClearAckTransaction());
    }

    private Runnable timerTask = new Runnable() {
        @Override
        public void run() {
            handler.removeCallbacks(timerTask);
            {
                if (cache.size() > 0) {
                    sendCacheTransaction();
                }
            }
            handler.postDelayed(timerTask, TIMER_TASK_PERIOD);
        }
    };

    private void sendCacheTransaction() {
        TransactionCenter.getInstance().sendToRemote(sessionId, toAccount, this.cache);
        cache.clear();
    }
}


text:
package eu.cassandra.training.consumption;

/**
 * This class is used for the definition of a reactive activeOnly consumption
 * triplet.
 *
 * @author Kyriakos Chatzidimitriou
 *
 */
public class TripletReactive
{

  /** The reactive activeOnly of the triplet in VAR. */
  public double q;

  /** The slope of the triplet. */
  public double s;

  /** The duration of the triplet. */
  public int d;

  /** A simple constructor of a triplet */
  public TripletReactive ()
  {
    q = s = 0;
    d = 0;
  }
}


text:
<?php
/**
 * @link       http://superdweebie.com
 * @package    Sds
 * @license    MIT
 */
namespace Sds\DoctrineExtensions\Readonly;

use Sds\DoctrineExtensions\AbstractExtension;

/**
 * Defines the resouces this extension requires
 *
 * @since   1.0
 * @author  Tim Roediger <superdweebie@gmail.com>
 */
class Extension extends AbstractExtension {

    protected $subscribers = [
        'subscriber.readonly.mainsubscriber',
        'subscriber.readonly.annotationsubscriber',
    ];

    protected $serviceManagerConfig = [
        'invokables' => [
            'subscriber.readonly.mainsubscriber' => 'Sds\DoctrineExtensions\Readonly\MainSubscriber',
            'subscriber.readonly.annotationsubscriber' => 'Sds\DoctrineExtensions\Readonly\AnnotationSubscriber',
        ]
    ];

    /**
     *
     * @var array
     */
    protected $dependencies = [
        'extension.annotation' => true,
    ];
}


text:
module Azure end
module Azure::ARM end
module Azure::ARM::PowerBiEmbedded end